OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 2 |
| 3 { |
| 4 'includes': [ |
| 5 'icu_tools.gypi', |
| 6 'icu.gypi', |
| 7 ], |
| 8 'variables': { |
| 9 'use_system_icu%': 0, |
| 10 'icu_use_data_file_flag%': 0, |
| 11 'want_separate_host_toolset%': 1, |
| 12 }, |
| 13 'target_defaults': { |
| 14 'include_dirs':[ |
| 15 'source/common', |
| 16 'source/tools/toolutil', |
| 17 'source/i18n', |
| 18 ], |
| 19 'defines': [ |
| 20 'U_STATIC_IMPLEMENTATION', # TODO: Support reuse of dll |
| 21 # for faster builds? |
| 22 'U_USING_ICU_NAMESPACE=0', |
| 23 'U_HAVE_ELF_H=1', |
| 24 # Without U_DEBUG=0 genrb will freak out on sr_Latn.txt |
| 25 # because it cannot find a Seqence in sr.txt which will |
| 26 # result in a NULL importRules which will fail a |
| 27 # "validMemory" check. |
| 28 'U_DEBUG=0', |
| 29 ], |
| 30 'conditions':[ |
| 31 ['OS=="linux" or OS=="android"', { |
| 32 'link_settings': { |
| 33 'libraries': [ |
| 34 '-ldl', |
| 35 '-lm', # gencnval uses math functions. |
| 36 '-lstdc++', # gencnval is a C program using C++. |
| 37 ], |
| 38 }, |
| 39 }], |
| 40 ], |
| 41 'msvs_disabled_warnings': [ |
| 42 4005, # macro redefinition |
| 43 ], |
| 44 }, |
| 45 'targets': [ |
| 46 { |
| 47 # Meta target. Can be deleted. Just used for simple testing. |
| 48 'target_name': 'icu_tools', |
| 49 'type': 'none', |
| 50 'dependencies': [ |
| 51 'genbrk', |
| 52 'gencfu', |
| 53 'gencnval', |
| 54 'gendict', |
| 55 'genrb', |
| 56 'icupkg', |
| 57 'makeconv', |
| 58 'pkgdata', |
| 59 ], |
| 60 'toolsets': [ 'host' ], |
| 61 }, |
| 62 { |
| 63 'target_name': 'icu_tools_common', |
| 64 'type': 'static_library', |
| 65 'sources': [ |
| 66 '<@(icuuc_sources)', |
| 67 '<@(icui18n_sources)', |
| 68 'source/stubdata/stubdata.c', |
| 69 '<@(icutoolutil_sources)', |
| 70 ], |
| 71 'defines': [ |
| 72 'U_I18N_IMPLEMENTATION', |
| 73 'U_COMMON_IMPLEMENTATION', |
| 74 'U_STATIC_IMPLEMENTATION', |
| 75 'U_TOOLUTIL_IMPLEMENTATION', |
| 76 'HAVE_DLOPEN=0', |
| 77 ], |
| 78 'direct_dependent_settings': |
| 79 { |
| 80 'defines': [ |
| 81 'U_DEBUG=0', |
| 82 ], |
| 83 }, |
| 84 # -frtti can't be in target_defaults since it will then be |
| 85 # -added before -fno-rtti on the command line and the last |
| 86 # -one decides the mode. |
| 87 'cflags_cc': [ |
| 88 '-frtti', |
| 89 '-O2', # Always optimized so that Debug builds are fast too. |
| 90 ], |
| 91 'xcode_settings': { |
| 92 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti |
| 93 }, |
| 94 'msvs_settings': { |
| 95 'VCCLCompilerTool': { |
| 96 'RuntimeTypeInfo': 'true', |
| 97 'Optimization': '2' |
| 98 }, |
| 99 }, |
| 100 'variables': { |
| 101 'clang_warning_flags': [ |
| 102 # ICU compares &var to NULL. |
| 103 '-Wno-tautological-undefined-compare', |
| 104 ], |
| 105 }, |
| 106 'toolsets': [ 'host' ], |
| 107 }, |
| 108 { |
| 109 'target_name': 'genbrk', |
| 110 'type': 'executable', |
| 111 'dependencies': ['icu_tools_common'], |
| 112 'sources': [ |
| 113 '<@(genbrk_sources)', |
| 114 ], |
| 115 'toolsets': [ 'host' ], |
| 116 }, |
| 117 { |
| 118 'target_name': 'gencfu', |
| 119 'type': 'executable', |
| 120 'dependencies': ['icu_tools_common'], |
| 121 'sources': [ |
| 122 '<@(gencfu_sources)', |
| 123 ], |
| 124 'toolsets': [ 'host' ], |
| 125 }, |
| 126 { |
| 127 'target_name': 'gencnval', |
| 128 'type': 'executable', |
| 129 'dependencies': ['icu_tools_common'], |
| 130 'sources': [ |
| 131 '<@(gencnval_sources)', |
| 132 ], |
| 133 'toolsets': [ 'host' ], |
| 134 }, |
| 135 { |
| 136 'target_name': 'gendict', |
| 137 'type': 'executable', |
| 138 'dependencies': ['icu_tools_common'], |
| 139 'sources': [ |
| 140 '<@(gendict_sources)', |
| 141 ], |
| 142 'toolsets': [ 'host' ], |
| 143 }, |
| 144 { |
| 145 'target_name': 'genrb', |
| 146 'type': 'executable', |
| 147 'dependencies': ['icu_tools_common'], |
| 148 'sources': [ |
| 149 '<@(genrb_sources)', |
| 150 ], |
| 151 'toolsets': [ 'host' ], |
| 152 }, |
| 153 { |
| 154 'target_name': 'icupkg', |
| 155 'type': 'executable', |
| 156 'dependencies': ['icu_tools_common'], |
| 157 'sources': [ |
| 158 '<@(icupkg_sources)', |
| 159 ], |
| 160 'toolsets': [ 'host' ], |
| 161 }, |
| 162 { |
| 163 'target_name': 'makeconv', |
| 164 'type': 'executable', |
| 165 'dependencies': ['icu_tools_common'], |
| 166 'sources': [ |
| 167 '<@(makeconv_sources)', |
| 168 ], |
| 169 'toolsets': ['host'], |
| 170 }, |
| 171 { |
| 172 'target_name': 'pkgdata', |
| 173 'type': 'executable', |
| 174 'dependencies': ['icu_tools_common'], |
| 175 'sources': [ |
| 176 '<@(pkgdata_sources)', |
| 177 ], |
| 178 'toolsets': [ 'host' ], |
| 179 }, |
| 180 ], # targets |
| 181 } |
OLD | NEW |