| Index: icu_tools.gyp
|
| diff --git a/icu_tools.gyp b/icu_tools.gyp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8869ca31323bb8b45ed922dc1713e9cab81bdb11
|
| --- /dev/null
|
| +++ b/icu_tools.gyp
|
| @@ -0,0 +1,181 @@
|
| +# Copyright (c) 2015 The Chromium Authors. All rights reserved.
|
| +
|
| +{
|
| + 'includes': [
|
| + 'icu_tools.gypi',
|
| + 'icu.gypi',
|
| + ],
|
| + 'variables': {
|
| + 'use_system_icu%': 0,
|
| + 'icu_use_data_file_flag%': 0,
|
| + 'want_separate_host_toolset%': 1,
|
| + },
|
| + 'target_defaults': {
|
| + 'include_dirs':[
|
| + 'source/common',
|
| + 'source/tools/toolutil',
|
| + 'source/i18n',
|
| + ],
|
| + 'defines': [
|
| + 'U_STATIC_IMPLEMENTATION', # TODO: Support reuse of dll
|
| + # for faster builds?
|
| + 'U_USING_ICU_NAMESPACE=0',
|
| + 'U_HAVE_ELF_H=1',
|
| + # Without U_DEBUG=0 genrb will freak out on sr_Latn.txt
|
| + # because it cannot find a Seqence in sr.txt which will
|
| + # result in a NULL importRules which will fail a
|
| + # "validMemory" check.
|
| + 'U_DEBUG=0',
|
| + ],
|
| + 'conditions':[
|
| + ['OS=="linux" or OS=="android"', {
|
| + 'link_settings': {
|
| + 'libraries': [
|
| + '-ldl',
|
| + '-lm', # gencnval uses math functions.
|
| + '-lstdc++', # gencnval is a C program using C++.
|
| + ],
|
| + },
|
| + }],
|
| + ],
|
| + 'msvs_disabled_warnings': [
|
| + 4005, # macro redefinition
|
| + ],
|
| + },
|
| + 'targets': [
|
| + {
|
| + # Meta target. Can be deleted. Just used for simple testing.
|
| + 'target_name': 'icu_tools',
|
| + 'type': 'none',
|
| + 'dependencies': [
|
| + 'genbrk',
|
| + 'gencfu',
|
| + 'gencnval',
|
| + 'gendict',
|
| + 'genrb',
|
| + 'icupkg',
|
| + 'makeconv',
|
| + 'pkgdata',
|
| + ],
|
| + 'toolsets': [ 'host' ],
|
| + },
|
| + {
|
| + 'target_name': 'icu_tools_common',
|
| + 'type': 'static_library',
|
| + 'sources': [
|
| + '<@(icuuc_sources)',
|
| + '<@(icui18n_sources)',
|
| + 'source/stubdata/stubdata.c',
|
| + '<@(icutoolutil_sources)',
|
| + ],
|
| + 'defines': [
|
| + 'U_I18N_IMPLEMENTATION',
|
| + 'U_COMMON_IMPLEMENTATION',
|
| + 'U_STATIC_IMPLEMENTATION',
|
| + 'U_TOOLUTIL_IMPLEMENTATION',
|
| + 'HAVE_DLOPEN=0',
|
| + ],
|
| + 'direct_dependent_settings':
|
| + {
|
| + 'defines': [
|
| + 'U_DEBUG=0',
|
| + ],
|
| + },
|
| + # -frtti can't be in target_defaults since it will then be
|
| + # -added before -fno-rtti on the command line and the last
|
| + # -one decides the mode.
|
| + 'cflags_cc': [
|
| + '-frtti',
|
| + '-O2', # Always optimized so that Debug builds are fast too.
|
| + ],
|
| + 'xcode_settings': {
|
| + 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti
|
| + },
|
| + 'msvs_settings': {
|
| + 'VCCLCompilerTool': {
|
| + 'RuntimeTypeInfo': 'true',
|
| + 'Optimization': '2'
|
| + },
|
| + },
|
| + 'variables': {
|
| + 'clang_warning_flags': [
|
| + # ICU compares &var to NULL.
|
| + '-Wno-tautological-undefined-compare',
|
| + ],
|
| + },
|
| + 'toolsets': [ 'host' ],
|
| + },
|
| + {
|
| + 'target_name': 'genbrk',
|
| + 'type': 'executable',
|
| + 'dependencies': ['icu_tools_common'],
|
| + 'sources': [
|
| + '<@(genbrk_sources)',
|
| + ],
|
| + 'toolsets': [ 'host' ],
|
| + },
|
| + {
|
| + 'target_name': 'gencfu',
|
| + 'type': 'executable',
|
| + 'dependencies': ['icu_tools_common'],
|
| + 'sources': [
|
| + '<@(gencfu_sources)',
|
| + ],
|
| + 'toolsets': [ 'host' ],
|
| + },
|
| + {
|
| + 'target_name': 'gencnval',
|
| + 'type': 'executable',
|
| + 'dependencies': ['icu_tools_common'],
|
| + 'sources': [
|
| + '<@(gencnval_sources)',
|
| + ],
|
| + 'toolsets': [ 'host' ],
|
| + },
|
| + {
|
| + 'target_name': 'gendict',
|
| + 'type': 'executable',
|
| + 'dependencies': ['icu_tools_common'],
|
| + 'sources': [
|
| + '<@(gendict_sources)',
|
| + ],
|
| + 'toolsets': [ 'host' ],
|
| + },
|
| + {
|
| + 'target_name': 'genrb',
|
| + 'type': 'executable',
|
| + 'dependencies': ['icu_tools_common'],
|
| + 'sources': [
|
| + '<@(genrb_sources)',
|
| + ],
|
| + 'toolsets': [ 'host' ],
|
| + },
|
| + {
|
| + 'target_name': 'icupkg',
|
| + 'type': 'executable',
|
| + 'dependencies': ['icu_tools_common'],
|
| + 'sources': [
|
| + '<@(icupkg_sources)',
|
| + ],
|
| + 'toolsets': [ 'host' ],
|
| + },
|
| + {
|
| + 'target_name': 'makeconv',
|
| + 'type': 'executable',
|
| + 'dependencies': ['icu_tools_common'],
|
| + 'sources': [
|
| + '<@(makeconv_sources)',
|
| + ],
|
| + 'toolsets': ['host'],
|
| + },
|
| + {
|
| + 'target_name': 'pkgdata',
|
| + 'type': 'executable',
|
| + 'dependencies': ['icu_tools_common'],
|
| + 'sources': [
|
| + '<@(pkgdata_sources)',
|
| + ],
|
| + 'toolsets': [ 'host' ],
|
| + },
|
| + ], # targets
|
| +}
|
|
|