diff options
author | 2015-05-18 13:15:56 -0700 | |
---|---|---|
committer | 2015-05-18 13:15:56 -0700 | |
commit | 7be0ce0ab123bbad8ec22b67b8593f1bdd5179e0 (patch) | |
tree | b2796abf3fe1e4e4c22b539232c04d10ab3c91c0 /gyp/icu.gyp | |
parent | 38fd5fe289ec696632cdd8eed6ddf742dc315261 (diff) |
SkPDF: Add Sfntly to DEPS, gyp
Note: this can be disabled via:
GYP_DEFINES='skia_pdf_use_sfntly=0
Warning: dm is 34% slower and uses 9% more memory. This is
okay.
Motivation: We want to test this code path in DM, since it is
always used by Chromium and Android.
BUG=skia:3563
Committed: https://skia.googlesource.com/skia/+/6a53b04e26749ea61f690ece408f2a1c0a5ad5bb
Review URL: https://codereview.chromium.org/1134683006
Diffstat (limited to 'gyp/icu.gyp')
-rw-r--r-- | gyp/icu.gyp | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/gyp/icu.gyp b/gyp/icu.gyp new file mode 100644 index 0000000000..d955b19af5 --- /dev/null +++ b/gyp/icu.gyp @@ -0,0 +1,117 @@ +# Copyright (c) 2012 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': [ + 'common_variables.gypi', + ], + 'variables': { + 'component%': 'static_library', + 'icu_directory': '../third_party/externals/icu' + }, + 'targets': [ + { + 'target_name': 'icuuc', + 'type': '<(component)', + 'sources': [ + '<!@(python find.py ../third_party/externals/icu/source/common "*.c*")' + ], + 'defines': [ + 'U_COMMON_IMPLEMENTATION', + 'U_HIDE_DATA_SYMBOL', + 'U_USING_ICU_NAMESPACE=0', + 'HAVE_DLOPEN=0', + 'UCONFIG_NO_NON_HTML5_CONVERSION=1', + ], + 'include_dirs': [ '<(icu_directory)/source/common', ], + 'direct_dependent_settings': { + 'defines': [ + 'U_USING_ICU_NAMESPACE=0', + 'U_ENABLE_DYLOAD=0', + ], + 'include_dirs': [ '<(icu_directory)/source/common', ], + 'conditions': [ + [ + 'component=="static_library"', { + 'defines': [ + 'U_STATIC_IMPLEMENTATION', + ], + } + ], + ], + }, + 'cflags': [ '-w' ], + 'cflags_cc': [ '-frtti', ], + 'conditions': [ + [ + 'component=="static_library"', { + 'defines': [ 'U_STATIC_IMPLEMENTATION', ], + } + ], + [ + 'OS == "win"', { + 'sources': [ + '<(icu_directory)/source/stubdata/stubdata.c', + ], + 'copies': [ + { + 'destination': '<(PRODUCT_DIR)', + 'files': [ '<(icu_directory)/windows/icudt.dll', ], + }, + ], + 'msvs_disabled_warnings': [4005, 4068, 4244, 4355, 4996, 4267], + 'msvs_settings': { + 'VCCLCompilerTool': { + 'RuntimeTypeInfo': 'true', + 'AdditionalOptions!': [ '/GR-' ], + 'AdditionalOptions': [ '/EHsc', '/GR', '/w', ], + }, + }, + 'all_dependent_settings': { + 'msvs_settings': { + 'VCLinkerTool': { + 'AdditionalDependencies': [ + 'advapi32.lib', + ], + }, + }, + }, + } + ], + [ + 'OS == "win" and skia_clang_build', { + 'msvs_settings': { + 'VCCLCompilerTool': { + 'AdditionalOptions': [ + # See http://bugs.icu-project.org/trac/ticket/11122 + '-Wno-inline-new-delete', + '-Wno-implicit-exception-spec-mismatch', + ], + }, + }, + } + ], + [ + 'skia_os == "android"', { + 'sources': [ '<(icu_directory)/android/icudtl_dat.S', ], + } + ], + [ + 'skia_os in ["linux", "chromeos"]', { + 'sources': [ '<(icu_directory)/linux/icudtl_dat.S', ], + } + ], + [ + 'skia_os == "mac"', { + 'sources': [ '<(icu_directory)/mac/icudtl_dat.S', ], + 'xcode_settings': { + 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti + 'WARNING_CFLAGS': [ '-w' ], + }, + } + ], + ], # conditions + }, + ], # targets +} |