Chromium Code Reviews| Index: icu.gyp |
| diff --git a/icu.gyp b/icu.gyp |
| index 9806c9bce0ebe563d371a21ec1f51ea6c06b5e09..a42d22f6842cd05456baaab28e97bd8fa3853cde 100644 |
| --- a/icu.gyp |
| +++ b/icu.gyp |
| @@ -117,30 +117,41 @@ |
| { |
| 'target_name': 'data_assembly', |
| 'type': 'none', |
| + 'data_assembly_inputs': [ |
|
Michael Achenbach
2016/07/22 07:34:08
Not enough gyp knowledge here. Can we just declare
jungshik at Google
2016/07/22 20:31:13
Yeah. It works. Thank you for the suggestion.
|
| + 'scripts/make_data_assembly.py', |
| + ], |
| 'conditions': [ |
| [ 'target_arch=="mips" or target_arch=="mips64"', { |
| 'data_assembly_sources': [ |
| 'common/icudtb.dat', |
| ], |
| 'data_assembly_inputs': [ |
| - 'scripts/make_data_assembly.py', |
| 'common/icudtb.dat', |
| ], |
| 'data_assembly_outputs': [ |
| '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S', |
| ], |
| - }], |
| - [ 'target_arch!="mips" and target_arch!="mips64"', { |
| - 'data_assembly_sources': [ |
| - 'common/icudtl.dat', |
| - ], |
| - 'data_assembly_inputs': [ |
| - 'scripts/make_data_assembly.py', |
| - 'common/icudtl.dat', |
| - ], |
| + }, { # 'target_arch!="mips" and target_arch!="mips64"' |
| 'data_assembly_outputs': [ |
| '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', |
| ], |
| + 'conditions': [ |
| + ['OS == "android"', { |
| + 'data_assembly_sources': [ |
| + 'android/icudtl.dat', |
| + ], |
| + 'data_assembly_inputs': [ |
| + 'android/icudtl.dat', |
| + ], |
| + } , { # else: OS!="android" |
| + 'data_assembly_sources': [ |
| + 'common/icudtl.dat', |
| + ], |
| + 'data_assembly_inputs': [ |
| + 'common/icudtl.dat', |
| + ], |
| + }], # OS==android |
| + ], |
| }], |
| ], |
| 'sources': [ |
| @@ -155,7 +166,15 @@ |
| 'outputs': [ |
| '<@(_data_assembly_outputs)', |
| ], |
| - 'action': ['python', '<@(_inputs)', '<@(_outputs)'], |
| + 'target_conditions': [ |
| + [ 'OS != "mac" and OS != "ios" and ' |
|
Michael Achenbach
2016/07/22 07:34:08
Optional: I have the feeling the condition might b
jungshik at Google
2016/07/22 20:31:13
Yes !! I was copying/moving the condition from th
|
| + '((OS != "android" and OS != "qnx") or ' |
| + '_toolset != "host" or host_os != "mac")', { |
| + 'action': ['python', '<@(_inputs)', '<@(_outputs)'], |
| + } , { |
| + 'action': ['python', '<@(_inputs)', '<@(_outputs)', '--mac'], |
| + }], |
| + ], |
| }, |
| ], |
| }, |
| @@ -169,20 +188,13 @@ |
| 'data_assembly#target', |
| ], |
| 'sources': [ |
| - # These are hand-generated, but will do for now. The linux |
| - # version is an identical copy of the (mac) icudtl_dat.S file, |
| - # modulo removal of the .private_extern and .const directives and |
| - # with no leading underscore on the icudt52_dat symbol. |
| - 'android/icudtl_dat.S', |
| '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', |
| '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S', |
| - 'mac/icudtl_dat.S', |
| ], |
| 'conditions': [ |
| [ 'target_arch=="mips" or target_arch=="mips64"', { |
| 'sources!': ['<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S'], |
| - }], |
| - [ 'target_arch!="mips" and target_arch!="mips64"', { |
| + }, { |
| 'sources!': ['<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S'], |
| }], |
| [ 'use_system_icu==1 and want_separate_host_toolset==1', { |
| @@ -208,12 +220,6 @@ |
| }, |
| ], |
| }], |
| - [ '(OS == "mac" or OS == "ios") and icu_use_data_file_flag==0', { |
| - 'type': 'none', |
| - 'dependencies!': [ |
| - 'data_assembly#target', |
| - ], |
| - }], |
| [ 'icu_use_data_file_flag==1', { |
| 'type': 'none', |
| 'dependencies!': [ |
| @@ -239,22 +245,12 @@ |
| }], # icu_use_data_file_flag |
| ], # conditions |
| 'target_conditions': [ |
| - [ 'OS == "win" or OS == "mac" or OS == "ios" or ' |
| - '(OS == "android" and (_toolset != "host" or host_os != "linux")) or ' |
| - '(OS == "qnx" and (_toolset == "host" and host_os != "linux"))', { |
| + [ 'OS == "win"', { |
| 'sources!': [ |
| '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', |
| '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S' |
| ], |
| }], |
| - [ 'OS != "android" or _toolset == "host"', { |
| - 'sources!': ['android/icudtl_dat.S'], |
| - }], |
| - [ 'OS != "mac" and OS != "ios" and ' |
| - '((OS != "android" and OS != "qnx") or ' |
| - '_toolset != "host" or host_os != "mac")', { |
| - 'sources!': ['mac/icudtl_dat.S'], |
| - }], |
| ], # target_conditions |
| }, |
| { |