| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'includes': [ | 6 'includes': [ |
| 7 'icu.gypi', | 7 'icu.gypi', |
| 8 ], | 8 ], |
| 9 'variables': { | 9 'variables': { |
| 10 'use_system_icu%': 0, | 10 'use_system_icu%': 0, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 'include_dirs': [ | 66 'include_dirs': [ |
| 67 'source/common', | 67 'source/common', |
| 68 'source/i18n', | 68 'source/i18n', |
| 69 ], | 69 ], |
| 70 'msvs_disabled_warnings': [4005, 4068, 4355, 4996, 4267], | 70 'msvs_disabled_warnings': [4005, 4068, 4355, 4996, 4267], |
| 71 }, | 71 }, |
| 72 'conditions': [ | 72 'conditions': [ |
| 73 ['use_system_icu==0 or want_separate_host_toolset==1', { | 73 ['use_system_icu==0 or want_separate_host_toolset==1', { |
| 74 'targets': [ | 74 'targets': [ |
| 75 { | 75 { |
| 76 'target_name': 'copy_icudtl_dat', |
| 77 'type': 'none', |
| 78 # icudtl.dat is the same for both host/target, so this only supports a |
| 79 # single toolset. If a target requires that the .dat file be copied |
| 80 # to the output directory, it should explicitly depend on this target |
| 81 # with the host toolset (like copy_icudtl_dat#host). |
| 82 'toolsets': [ 'host' ], |
| 83 'copies': [{ |
| 84 'destination': '<(PRODUCT_DIR)', |
| 85 'conditions': [ |
| 86 ['OS == "android"', { |
| 87 'files': [ |
| 88 'android/icudtl.dat', |
| 89 ], |
| 90 } , { # else: OS != android |
| 91 'files': [ |
| 92 'source/data/in/icudtl.dat', |
| 93 ], |
| 94 }], |
| 95 ], |
| 96 }], |
| 97 }, |
| 98 { |
| 76 'target_name': 'icudata', | 99 'target_name': 'icudata', |
| 77 'type': 'static_library', | 100 'type': 'static_library', |
| 78 'defines': [ | 101 'defines': [ |
| 79 'U_HIDE_DATA_SYMBOL', | 102 'U_HIDE_DATA_SYMBOL', |
| 80 ], | 103 ], |
| 81 'sources': [ | 104 'sources': [ |
| 82 # These are hand-generated, but will do for now. The linux | 105 # These are hand-generated, but will do for now. The linux |
| 83 # version is an identical copy of the (mac) icudtl_dat.S file, | 106 # version is an identical copy of the (mac) icudtl_dat.S file, |
| 84 # modulo removal of the .private_extern and .const directives and | 107 # modulo removal of the .private_extern and .const directives and |
| 85 # with no leading underscore on the icudt52_dat symbol. | 108 # with no leading underscore on the icudt52_dat symbol. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 110 }], | 133 }], |
| 111 [ 'icu_use_data_file_flag==1', { | 134 [ 'icu_use_data_file_flag==1', { |
| 112 # Remove any assembly data file. | 135 # Remove any assembly data file. |
| 113 'sources/': [['exclude', 'icudtl_dat']], | 136 'sources/': [['exclude', 'icudtl_dat']], |
| 114 # Compile in the stub data symbol. | 137 # Compile in the stub data symbol. |
| 115 'sources': ['source/stubdata/stubdata.c'], | 138 'sources': ['source/stubdata/stubdata.c'], |
| 116 | 139 |
| 117 # Make sure any binary depending on this gets the data file. | 140 # Make sure any binary depending on this gets the data file. |
| 118 'conditions': [ | 141 'conditions': [ |
| 119 ['OS != "ios"', { | 142 ['OS != "ios"', { |
| 120 'copies': [{ | 143 'dependencies': [ |
| 121 'destination': '<(PRODUCT_DIR)', | 144 'copy_icudtl_dat#host', |
| 122 'conditions': [ | 145 ], |
| 123 ['OS == "android"', { | |
| 124 'files': [ | |
| 125 'android/icudtl.dat', | |
| 126 ], | |
| 127 } , { # else: OS != android | |
| 128 'files': [ | |
| 129 'source/data/in/icudtl.dat', | |
| 130 ], | |
| 131 }], | |
| 132 ], | |
| 133 }], | |
| 134 } , { # else: OS=="ios" | 146 } , { # else: OS=="ios" |
| 135 'link_settings': { | 147 'link_settings': { |
| 136 'mac_bundle_resources': [ | 148 'mac_bundle_resources': [ |
| 137 'source/data/in/icudtl.dat', | 149 'source/data/in/icudtl.dat', |
| 138 ], | 150 ], |
| 139 }, | 151 }, |
| 140 }], # OS!=ios | 152 }], # OS!=ios |
| 141 ], # conditions | 153 ], # conditions |
| 142 }], # icu_use_data_file_flag | 154 }], # icu_use_data_file_flag |
| 143 ], # conditions | 155 ], # conditions |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 }, | 602 }, |
| 591 'includes': [ | 603 'includes': [ |
| 592 '../../build/shim_headers.gypi', | 604 '../../build/shim_headers.gypi', |
| 593 ], | 605 ], |
| 594 'toolsets': ['target'], | 606 'toolsets': ['target'], |
| 595 }, | 607 }, |
| 596 ], # targets | 608 ], # targets |
| 597 }], | 609 }], |
| 598 ], # conditions | 610 ], # conditions |
| 599 } | 611 } |
| OLD | NEW |