diff options
author | David Storch <david.storch@10gen.com> | 2016-02-09 17:41:07 -0500 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2016-02-16 12:57:15 -0500 |
commit | 22c684d6f89c01914c53441abd95d6913831cc96 (patch) | |
tree | e425dd9dc29f43e0470d4bd5dec631e013c18d1f /SConstruct | |
parent | f7414114d89d7c07ee1f2282290897ddbd27985c (diff) | |
download | mongo-22c684d6f89c01914c53441abd95d6913831cc96.tar.gz |
SERVER-22371 initial implementation of ICU build system integration
To build ICU with scons:
- Run ./src/third_party/scripts/icu_get_sources.sh to download ICU
sources into the third_party directory.
- Build $BUILD_DIR/third_party/shim_icu with the --icu=on flag.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 0e980fd51cf..c358f6724c7 100644 --- a/SConstruct +++ b/SConstruct @@ -351,6 +351,20 @@ add_option('use-system-asio', nargs=0, ) +add_option('icu', + choices=['on', 'off'], + const='on', + default='off', + help='Enable ICU', + nargs='?', + type='choice', +) + +add_option('use-system-icu', + help="use system version of ICU", + nargs=0, +) + add_option('use-system-intel_decimal128', help='use system version of intel decimal128', nargs=0, @@ -1454,6 +1468,11 @@ if get_option('wiredtiger') == 'on': if get_option('experimental-decimal-support') == 'on': env.SetConfigHeaderDefine("MONGO_CONFIG_EXPERIMENTAL_DECIMAL_SUPPORT") +icuEnabled = False +if get_option('icu') == 'on': + icuEnabled = True + env.SetConfigHeaderDefine("MONGO_CONFIG_ICU_ENABLED") + if env['TARGET_ARCH'] == 'i386': # If we are using GCC or clang to target 32 bit, set the ISA minimum to 'nocona', # and the tuning to 'generic'. The choice of 'nocona' is selected because it @@ -2538,6 +2557,7 @@ Export('module_sconscripts') Export("debugBuild optBuild") Export("wiredtiger") Export("endian") +Export("icuEnabled") def injectMongoIncludePaths(thisEnv): thisEnv.AppendUnique(CPPPATH=['$BUILD_DIR']) |