Skip to content

Commit

Permalink
qtlite: Add a new option -no-pcre
Browse files Browse the repository at this point in the history
pcre only used by QRegularExpression.

Change-Id: I704bdb46ed8956f875e1f5fcc0fa2e06122fd87e
Reviewed-by: Lars Knoll <[email protected]>
  • Loading branch information
msvetkin committed Feb 22, 2019
1 parent 4658905 commit 0f43171
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config_help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ Core options:
-inotify ............. Enable inotify support
-iconv ............... Enable iconv(3) support [posix/sun/gnu/no] (Unix only)
-icu ................. Enable ICU support [auto]
-pcre ................ Select used libpcre2 [system/qt]
-pcre ................ Select used libpcre2 [system/qt/no]
-pps ................. Enable PPS support [auto] (QNX only)
-zlib ................ Select used zlib [system/qt]

Expand Down
19 changes: 12 additions & 7 deletions src/corelib/configure.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"icu": "boolean",
"inotify": "boolean",
"journald": "boolean",
"pcre": { "type": "enum", "values": [ "qt", "system" ] },
"pcre": { "type": "enum", "values": [ "no", "qt", "system" ] },
"posix-ipc": { "type": "boolean", "name": "ipc_posix" },
"pps": { "type": "boolean", "name": "qqnx_pps" },
"slog2": "boolean",
Expand Down Expand Up @@ -662,15 +662,18 @@
"condition": "features.textcodec",
"output": [ "publicFeature", "feature" ]
},
"pcre2": {
"label": "PCRE2",
"disable": "input.pcre == 'no' || input.pcre == 'system'",
"enable": "input.pcre == 'qt'",
"output": [ "privateConfig" ]
},
"system-pcre2": {
"label": "Using system PCRE2",
"disable": "input.pcre == 'qt'",
"label": " Using system PCRE2",
"disable": "input.pcre == 'no' || input.pcre == 'qt'",
"enable": "input.pcre == 'system'",
"condition": "libs.pcre2",
"output": [
"privateFeature",
{ "type": "privateConfig", "negative": true, "name": "pcre2" }
]
"output": [ "privateFeature" ]
},
"poll_ppoll": {
"label": "Native ppoll()",
Expand Down Expand Up @@ -749,6 +752,7 @@
"label": "QRegularExpression",
"purpose": "Provides an API to Perl-compatible regular expressions.",
"section": "Kernel",
"condition": "features.system-pcre2 || features.pcre2",
"output": [ "publicFeature", "feature" ]
},
"sharedmemory": {
Expand Down Expand Up @@ -1048,6 +1052,7 @@ Please apply the patch corresponding to your Standard Library vendor, found in
"args": "qqnx_pps",
"condition": "config.qnx"
},
"pcre2",
"system-pcre2"
]
}
Expand Down

0 comments on commit 0f43171

Please sign in to comment.