Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: icu_untrusted.gyp

Issue 109553005: Compile ICU for [P]NaCl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/icu46
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « icu.gypi ('k') | patches/platform.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu_untrusted.gyp
diff --git a/icu_untrusted.gyp b/icu_untrusted.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..26c52934ad24615584d7f6c7d5b163f77e975ae8
--- /dev/null
+++ b/icu_untrusted.gyp
@@ -0,0 +1,108 @@
+# 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',
+ ],
+ },
+ '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_untrusted',
+ 'type': 'none',
+ 'variables': {
+ 'nlib_target': 'libicudata_untrusted.a',
+ 'build_glibc': 0,
+ 'build_newlib': 0,
+ 'build_pnacl_newlib': 1,
+ },
+ 'sources': [
+ 'source/stubdata/stubdata.c',
+ ],
+ 'dependencies': [
+ '../../native_client/tools.gyp:prep_toolchain',
+ ],
+ },
+ {
+ 'target_name': 'icui18n_untrusted',
+ 'type': 'none',
+ 'variables': {
+ 'nlib_target': 'libicui18n_untrusted.a',
+ 'build_glibc': 0,
+ 'build_newlib': 0,
+ 'build_pnacl_newlib': 1,
+ },
+ 'sources': [
+ '<@(icui18n_sources)',
+ ],
+ 'defines': [
+ 'U_I18N_IMPLEMENTATION',
+ ],
+ 'dependencies': [
+ '../../native_client/tools.gyp:prep_toolchain',
+ 'icuuc_untrusted',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ 'source/i18n',
+ ],
+ },
+ },
+ {
+ 'target_name': 'icuuc_untrusted',
+ 'type': 'none',
+ 'variables': {
+ 'nlib_target': 'libicuuc_untrusted.a',
+ 'build_glibc': 0,
+ 'build_newlib': 0,
+ 'build_pnacl_newlib': 1,
+ },
+ 'sources': [
+ '<@(icuuc_sources)',
+ ],
+ 'defines': [
+ 'U_COMMON_IMPLEMENTATION',
+ ],
+ 'dependencies': [
+ '../../native_client/tools.gyp:prep_toolchain',
+ 'icudata_untrusted',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ 'source/common',
+ ],
+ 'defines': [
+ 'U_STATIC_IMPLEMENTATION',
+ ],
+ },
+ },
+ ],
+}
« no previous file with comments | « icu.gypi ('k') | patches/platform.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698