1 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 { 6 'includes': [ 7 'icu.gypi', 8 '../../native_client/build/untrusted.gypi', 9 ], 10 'target_defaults': { 11 'direct_dependent_settings': { 12 'defines': [ 13 # Tell ICU to not insert |using namespace icu;| into its headers, 14 # so that chrome's source explicitly has to use |icu::|. 15 'U_USING_ICU_NAMESPACE=0', 16 ], 17 }, 18 'defines': [ 19 'U_USING_ICU_NAMESPACE=0', 20 'U_STATIC_IMPLEMENTATION', 21 ], 22 'include_dirs': [ 23 'source/common', 24 'source/i18n', 25 ], 26 'pnacl_compile_flags': [ 27 '-Wno-char-subscripts', 28 '-Wno-deprecated-declarations', 29 '-Wno-header-hygiene', 30 '-Wno-logical-op-parentheses', 31 '-Wno-return-type-c-linkage', 32 '-Wno-switch', 33 '-Wno-tautological-compare', 34 '-Wno-unused-variable' 35 ], 36 }, 37 'targets': [ 38 { 39 'target_name': 'icudata_nacl', 40 'type': 'none', 41 'variables': { 42 'nlib_target': 'libicudata_nacl.a', 43 'build_glibc': 0, 44 'build_newlib': 0, 45 'build_pnacl_newlib': 1, 46 }, 47 'sources': [ 48 'source/stubdata/stubdata.c', 49 ], 50 'dependencies': [ 51 '../../native_client/tools.gyp:prep_toolchain', 52 ], 53 }, 54 { 55 'target_name': 'icui18n_nacl', 56 'type': 'none', 57 'variables': { 58 'nlib_target': 'libicui18n_nacl.a', 59 'build_glibc': 0, 60 'build_newlib': 0, 61 'build_pnacl_newlib': 1, 62 }, 63 'sources': [ 64 '<@(icui18n_sources)', 65 ], 66 'defines': [ 67 'U_I18N_IMPLEMENTATION', 68 ], 69 'dependencies': [ 70 '../../native_client/tools.gyp:prep_toolchain', 71 'icuuc_nacl', 72 ], 73 'direct_dependent_settings': { 74 'include_dirs': [ 75 'source/i18n', 76 ], 77 }, 78 }, 79 { 80 'target_name': 'icuuc_nacl', 81 'type': 'none', 82 'variables': { 83 'nlib_target': 'libicuuc_nacl.a', 84 'build_glibc': 0, 85 'build_newlib': 0, 86 'build_pnacl_newlib': 1, 87 }, 88 'sources': [ 89 '<@(icuuc_sources)', 90 ], 91 'defines': [ 92 'U_COMMON_IMPLEMENTATION', 93 ], 94 'dependencies': [ 95 '../../native_client/tools.gyp:prep_toolchain', 96 'icudata_nacl', 97 ], 98 'direct_dependent_settings': { 99 'include_dirs': [ 100 'source/common', 101 ], 102 'defines': [ 103 'U_STATIC_IMPLEMENTATION', 104 ], 105 }, 106 }, 107 ], 108 } 109