summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2014-11-22 17:34:31 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2014-11-22 17:55:59 +0100
commitfcbbc7a050e9f03a8a8384b58774f6c151c0cbce (patch)
tree9fbaed794a40e7318c28cb3306f4a73a3b6a69f5 /tools
parent21130c7d6fcaee666f33735768c060be2e06614a (diff)
parent2d17193f20930bfe594d7008fe5c08f813f03c7b (diff)
downloadandroid-node-v8-fcbbc7a050e9f03a8a8384b58774f6c151c0cbce.tar.gz
android-node-v8-fcbbc7a050e9f03a8a8384b58774f6c151c0cbce.tar.bz2
android-node-v8-fcbbc7a050e9f03a8a8384b58774f6c151c0cbce.zip
Merge remote-tracking branch 'joyent/v0.12' into v0.12
Conflicts: Makefile deps/v8/src/base/platform/platform.h PR-URL: https://github.com/node-forward/node/pull/65 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/icu/icu-generic.gyp65
-rwxr-xr-xtools/icu/icutrim.py4
2 files changed, 35 insertions, 34 deletions
diff --git a/tools/icu/icu-generic.gyp b/tools/icu/icu-generic.gyp
index bc0a660cbf..220d2c16a6 100644
--- a/tools/icu/icu-generic.gyp
+++ b/tools/icu/icu-generic.gyp
@@ -26,6 +26,9 @@
'UCONFIG_NO_REGULAR_EXPRESSIONS=1',
'U_ENABLE_DYLOAD=0',
'U_STATIC_IMPLEMENTATION=1',
+ # Don't need std::string in API.
+ # Also, problematic: <http://bugs.icu-project.org/trac/ticket/11333>
+ 'U_HAVE_STD_STRING=0',
# TODO(srl295): reenable following pending
# https://code.google.com/p/v8/issues/detail?id=3345
# (saves some space)
@@ -90,7 +93,7 @@
{
'target_name': 'icui18n',
'type': '<(library)',
- 'toolsets': [ 'host', 'target' ],
+ 'toolsets': [ 'target' ],
'sources': [
'<@(icu_src_i18n)'
],
@@ -108,28 +111,6 @@
},
'export_dependent_settings': [ 'icuucx' ],
},
- # this library is only built for derb..
- {
- 'target_name': 'icuio',
- 'type': '<(library)',
- 'toolsets': [ 'host' ],
- 'sources': [
- '<@(icu_src_io)'
- ],
- 'include_dirs': [
- '../../deps/icu/source/io',
- ],
- 'defines': [
- 'U_IO_IMPLEMENTATION=1',
- ],
- 'dependencies': [ 'icuucx', 'icui18n', 'icu_implementation', 'icu_uconfig' ],
- 'direct_dependent_settings': {
- 'include_dirs': [
- '../../deps/icu/source/io',
- ],
- },
- 'export_dependent_settings': [ 'icuucx', 'icui18n' ],
- },
# This exports actual ICU data
{
'target_name': 'icudata',
@@ -288,7 +269,7 @@
{
'target_name': 'icustubdata',
'type': '<(library)',
- 'toolsets': [ 'host', 'target' ],
+ 'toolsets': [ 'target' ],
'dependencies': [ 'icu_implementation' ],
'sources': [
'<@(icu_src_stubdata)'
@@ -313,7 +294,7 @@
'target_name': 'icuucx',
'type': '<(library)',
'dependencies': [ 'icu_implementation', 'icu_uconfig' ],
- 'toolsets': [ 'host', 'target' ],
+ 'toolsets': [ 'target' ],
'sources': [
'<@(icu_src_common)'
],
@@ -342,23 +323,43 @@
'target_name': 'icutools',
'type': '<(library)',
'toolsets': [ 'host' ],
- 'dependencies': [ 'icuucx', 'icui18n', 'icustubdata' ],
+ 'dependencies': [ 'icu_implementation', 'icu_uconfig' ],
'sources': [
- '<@(icu_src_tools)'
+ '<@(icu_src_tools)',
+ '<@(icu_src_common)',
+ '<@(icu_src_i18n)',
+ '<@(icu_src_io)',
+ '<@(icu_src_stubdata)',
],
'include_dirs': [
+ '../../deps/icu/source/common',
+ '../../deps/icu/source/i18n',
+ '../../deps/icu/source/io',
'../../deps/icu/source/tools/toolutil',
],
'defines': [
+ 'U_COMMON_IMPLEMENTATION=1',
+ 'U_I18N_IMPLEMENTATION=1',
+ 'U_IO_IMPLEMENTATION=1',
'U_TOOLUTIL_IMPLEMENTATION=1',
#'DEBUG=0', # http://bugs.icu-project.org/trac/ticket/10977
],
'direct_dependent_settings': {
'include_dirs': [
+ '../../deps/icu/source/common',
+ '../../deps/icu/source/i18n',
+ '../../deps/icu/source/io',
'../../deps/icu/source/tools/toolutil',
],
+ 'conditions': [
+ [ 'OS=="win"', {
+ 'link_settings': {
+ 'libraries': [ '-lAdvAPI32.Lib', '-lUser32.lib' ],
+ },
+ }],
+ ],
},
- 'export_dependent_settings': [ 'icuucx', 'icui18n', 'icustubdata' ],
+ 'export_dependent_settings': [ 'icu_implementation', 'icu_uconfig' ],
},
# This tool is needed to rebuild .res files from .txt,
# or to build index (res_index.txt) files for small-icu
@@ -366,7 +367,7 @@
'target_name': 'genrb',
'type': 'executable',
'toolsets': [ 'host' ],
- 'dependencies': [ 'icutools', 'icuucx', 'icui18n' ],
+ 'dependencies': [ 'icutools' ],
'sources': [
'<@(icu_src_genrb)'
],
@@ -382,7 +383,7 @@
'target_name': 'iculslocs',
'toolsets': [ 'host' ],
'type': 'executable',
- 'dependencies': [ 'icutools', 'icuucx', 'icui18n', 'icuio' ],
+ 'dependencies': [ 'icutools' ],
'sources': [
'iculslocs.cc',
'no-op.cc',
@@ -394,7 +395,7 @@
'target_name': 'icupkg',
'toolsets': [ 'host' ],
'type': 'executable',
- 'dependencies': [ 'icutools', 'icuucx', 'icui18n' ],
+ 'dependencies': [ 'icutools' ],
'sources': [
'<@(icu_src_icupkg)',
'no-op.cc',
@@ -405,7 +406,7 @@
'target_name': 'genccode',
'toolsets': [ 'host' ],
'type': 'executable',
- 'dependencies': [ 'icutools', 'icuucx', 'icui18n' ],
+ 'dependencies': [ 'icutools' ],
'sources': [
'<@(icu_src_genccode)',
'no-op.cc',
diff --git a/tools/icu/icutrim.py b/tools/icu/icutrim.py
index 29a05aa462..7f0fb3752e 100755
--- a/tools/icu/icutrim.py
+++ b/tools/icu/icutrim.py
@@ -154,8 +154,8 @@ if(config.has_key("comment")):
print "%s: %s" % (options.filterfile, config["comment"])
## STEP 1 - copy the data file, swapping endianness
-endian_letter = "l"
-
+## The first letter of endian_letter will be 'b' or 'l' for big or little
+endian_letter = options.endian[0]
runcmd("icupkg", "-t%s %s %s""" % (endian_letter, options.datfile, outfile))