1 Star 0 Fork 0

zjh6/icu

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
icu_nacl.gyp 2.75 KB
一键复制 编辑 原始数据 按行查看 历史
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'includes': [
'icu.gypi',
'../../native_client/build/untrusted.gypi',
],
'target_defaults': {
'direct_dependent_settings': {
'defines': [
# Tell ICU to not insert |using namespace icu;| into its headers,
# so that chrome's source explicitly has to use |icu::|.
'U_USING_ICU_NAMESPACE=0',
# We don't use ICU plugins and dyload is only necessary for them.
# NaCl-related builds also fail looking for dlfcn.h when it's enabled.
'U_ENABLE_DYLOAD=0',
],
},
'defines': [
'U_USING_ICU_NAMESPACE=0',
'U_STATIC_IMPLEMENTATION',
],
'include_dirs': [
'source/common',
'source/i18n',
],
'pnacl_compile_flags': [
'-Wno-char-subscripts',
'-Wno-deprecated-declarations',
'-Wno-header-hygiene',
'-Wno-logical-op-parentheses',
'-Wno-return-type-c-linkage',
'-Wno-switch',
'-Wno-tautological-compare',
'-Wno-unused-variable'
],
},
'targets': [
{
'target_name': 'icudata_nacl',
'type': 'none',
'variables': {
'nlib_target': 'libicudata_nacl.a',
'build_glibc': 0,
'build_newlib': 0,
'build_pnacl_newlib': 1,
},
'sources': [
'source/stubdata/stubdata.c',
# Temporary work around for an incremental build NOT rebuilding
# icudata_nacl after an ICU version change.
# TODO(jungshik): Remove it once a fix for bug 384752 is in.
'source/common/unicode/uvernum.h',
],
},
{
'target_name': 'icui18n_nacl',
'type': 'none',
'variables': {
'nlib_target': 'libicui18n_nacl.a',
'build_glibc': 0,
'build_newlib': 0,
'build_pnacl_newlib': 1,
},
'sources': [
'<@(icui18n_sources)',
],
'defines': [
'U_I18N_IMPLEMENTATION',
],
'dependencies': [
'icuuc_nacl',
],
'direct_dependent_settings': {
'include_dirs': [
'source/i18n',
],
},
},
{
'target_name': 'icuuc_nacl',
'type': 'none',
'variables': {
'nlib_target': 'libicuuc_nacl.a',
'build_glibc': 0,
'build_newlib': 0,
'build_pnacl_newlib': 1,
},
'sources': [
'<@(icuuc_sources)',
],
'defines': [
'U_COMMON_IMPLEMENTATION',
],
'dependencies': [
'icudata_nacl',
],
'direct_dependent_settings': {
'include_dirs': [
'source/common',
],
'defines': [
'U_STATIC_IMPLEMENTATION',
],
},
},
],
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zjh6/icu.git
git@gitee.com:zjh6/icu.git
zjh6
icu
icu
master

搜索帮助