From a0bd8c7893d9f8c93db6c6640dd5135e42b60303 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 18 Jun 2020 15:14:30 +0200 Subject: CMake: Fix pcre2 compilation with intelcet part 2 I somehow forgot that we build the pcre2 sources not only as part of the bootstrap library and qmake, but also as separate library as well. Apply the flags to the bundled library. Amends 976fa5134aea52741df7b25a196fa36251dc932f Amends fa98adbd04de9d44ce921436b92589a41f285dcd Change-Id: Ia1db3a8bd731c7e3ee4d7109be8e2ef98c594070 Reviewed-by: Joerg Bornemann --- src/3rdparty/pcre2/.prev_CMakeLists.txt | 76 +++++++++++++++++++++++++++++++++ src/3rdparty/pcre2/CMakeLists.txt | 4 ++ 2 files changed, 80 insertions(+) create mode 100644 src/3rdparty/pcre2/.prev_CMakeLists.txt (limited to 'src/3rdparty/pcre2') diff --git a/src/3rdparty/pcre2/.prev_CMakeLists.txt b/src/3rdparty/pcre2/.prev_CMakeLists.txt new file mode 100644 index 0000000000..1a63de4d54 --- /dev/null +++ b/src/3rdparty/pcre2/.prev_CMakeLists.txt @@ -0,0 +1,76 @@ +# Generated from pcre2.pro. + +##################################################################### +## BundledPcre2 Generic Library: +##################################################################### + +qt_add_3rdparty_library(BundledPcre2 + QMAKE_LIB_NAME pcre2 + STATIC + SOURCES + src/config.h + src/pcre2.h + src/pcre2_auto_possess.c + src/pcre2_chartables.c + src/pcre2_compile.c + src/pcre2_config.c + src/pcre2_context.c + src/pcre2_dfa_match.c + src/pcre2_error.c + src/pcre2_extuni.c + src/pcre2_find_bracket.c + src/pcre2_internal.h + src/pcre2_intmodedep.h + src/pcre2_jit_compile.c + src/pcre2_maketables.c + src/pcre2_match.c + src/pcre2_match_data.c + src/pcre2_newline.c + src/pcre2_ord2utf.c + src/pcre2_pattern_info.c + src/pcre2_script_run.c + src/pcre2_serialize.c + src/pcre2_string_utils.c + src/pcre2_study.c + src/pcre2_substitute.c + src/pcre2_substring.c + src/pcre2_tables.c + src/pcre2_ucd.c + src/pcre2_ucp.h + src/pcre2_valid_utf.c + src/pcre2_xclass.c + DEFINES + HAVE_CONFIG_H + PUBLIC_DEFINES + PCRE2_CODE_UNIT_WIDTH=16 + PUBLIC_INCLUDE_DIRECTORIES + $ +) +qt_disable_warnings(BundledPcre2) +qt_set_symbol_visibility_hidden(BundledPcre2) + +## Scopes: +##################################################################### + +qt_extend_target(BundledPcre2 CONDITION QNX OR UIKIT + DEFINES + PCRE2_DISABLE_JIT +) + +qt_extend_target(BundledPcre2 CONDITION (TEST_architecture_arch STREQUAL "arm") AND WIN32 + DEFINES + PCRE2_DISABLE_JIT +) + +qt_extend_target(BundledPcre2 CONDITION (TEST_architecture_arch STREQUAL "arm64") AND WIN32 + DEFINES + PCRE2_DISABLE_JIT +) + +qt_extend_target(BundledPcre2 CONDITION WIN32 + PUBLIC_DEFINES + PCRE2_STATIC +) + +#### Keys ignored in scope 7:.:.:pcre2.pri:QT_FEATURE_intelcet: +# QMAKE_CFLAGS = "$$QMAKE_CFLAGS_SHSTK" diff --git a/src/3rdparty/pcre2/CMakeLists.txt b/src/3rdparty/pcre2/CMakeLists.txt index 1a63de4d54..22291cabed 100644 --- a/src/3rdparty/pcre2/CMakeLists.txt +++ b/src/3rdparty/pcre2/CMakeLists.txt @@ -74,3 +74,7 @@ qt_extend_target(BundledPcre2 CONDITION WIN32 #### Keys ignored in scope 7:.:.:pcre2.pri:QT_FEATURE_intelcet: # QMAKE_CFLAGS = "$$QMAKE_CFLAGS_SHSTK" + +# special case begin +qt_internal_apply_intel_cet(BundledPcre2 PRIVATE) +# special case end -- cgit v1.2.3