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

Side by Side Diff: icu.gyp

Issue 2434153002: gyp: Add support for all big endian platforms (Closed)
Patch Set: Created 4 years, 2 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 27 matching lines...) Expand all
38 ], 38 ],
39 'conditions': [ 39 'conditions': [
40 ['component=="static_library"', { 40 ['component=="static_library"', {
41 'defines': [ 41 'defines': [
42 'U_STATIC_IMPLEMENTATION', 42 'U_STATIC_IMPLEMENTATION',
43 ], 43 ],
44 }], 44 }],
45 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ 45 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
46 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ 46 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \
47 (target_arch=="arm" or target_arch=="ia32" or \ 47 (target_arch=="arm" or target_arch=="ia32" or \
48 target_arch=="mipsel" or target_arch=="mips")', { 48 target_arch=="mipsel" or target_arch=="mips" or \
49 target_arch=="ppc" or target_arch=="s390")', {
49 'target_conditions': [ 50 'target_conditions': [
50 ['_toolset=="host"', { 51 ['_toolset=="host"', {
51 'cflags': [ '-m32' ], 52 'conditions': [
52 'ldflags': [ '-m32' ], 53 ['host_arch=="s390" or host_arch=="s390x"', {
53 'asflags': [ '-32' ], 54 'cflags': [ '-m31' ],
55 'ldflags': [ '-m31' ],
56 'asflags': [ '-31' ],
57 },{
58 'cflags': [ '-m32' ],
59 'ldflags': [ '-m32' ],
60 'asflags': [ '-32' ],
61 }],
62 ],
54 'xcode_settings': { 63 'xcode_settings': {
55 'ARCHS': [ 'i386' ], 64 'ARCHS': [ 'i386' ],
56 }, 65 },
57 }], 66 }],
58 ], 67 ],
59 }], 68 }],
60 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ 69 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
61 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ 70 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \
62 (target_arch=="arm64" or target_arch=="x64" or \ 71 (target_arch=="arm64" or target_arch=="x64" or \
63 target_arch=="mips64el" or target_arch=="mips64")', { 72 target_arch=="mips64el" or target_arch=="mips64" or \
73 target_arch=="ppc64" or target_arch=="s390x")', {
64 'target_conditions': [ 74 'target_conditions': [
65 ['_toolset=="host"', { 75 ['_toolset=="host"', {
66 'cflags': [ '-m64' ], 76 'cflags': [ '-m64' ],
67 'ldflags': [ '-m64' ], 77 'ldflags': [ '-m64' ],
68 'asflags': [ '-64' ], 78 'asflags': [ '-64' ],
69 'xcode_settings': { 79 'xcode_settings': {
70 'ARCHS': [ 'x86_64' ], 80 'ARCHS': [ 'x86_64' ],
71 }, 81 },
72 }], 82 }],
73 ], 83 ],
(...skipping 19 matching lines...) Expand all
93 'copies': [{ 103 'copies': [{
94 'destination': '<(PRODUCT_DIR)', 104 'destination': '<(PRODUCT_DIR)',
95 'conditions': [ 105 'conditions': [
96 ['OS == "android"', { 106 ['OS == "android"', {
97 'files': [ 107 'files': [
98 'android/icudtl.dat', 108 'android/icudtl.dat',
99 ], 109 ],
100 } , { # else: OS != android 110 } , { # else: OS != android
101 'conditions': [ 111 'conditions': [
102 # Big Endian 112 # Big Endian
103 [ 'target_arch=="mips" or target_arch=="mips64"', { 113 [ 'v8_host_byteorder=="big"', {
jungshik at Google 2016/10/21 08:01:04 Given that gyp is not used any more for chromium.
104 'files': [ 114 'files': [
105 'common/icudtb.dat', 115 'common/icudtb.dat',
106 ], 116 ],
107 } , { # else: ! Big Endian = Little Endian 117 } , { # else: ! Big Endian = Little Endian
108 'files': [ 118 'files': [
109 'common/icudtl.dat', 119 'common/icudtl.dat',
110 ], 120 ],
111 }], 121 }],
112 ], 122 ],
113 }], 123 }],
114 ], 124 ],
115 }], 125 }],
116 }, 126 },
117 { 127 {
118 'target_name': 'data_assembly', 128 'target_name': 'data_assembly',
119 'type': 'none', 129 'type': 'none',
120 'conditions': [ 130 'conditions': [
121 [ 'target_arch=="mips" or target_arch=="mips64"', { # Big Endian 131 [ 'v8_host_byteorder=="big"', { # Big Endian
122 'data_assembly_inputs': [ 132 'data_assembly_inputs': [
123 'common/icudtb.dat', 133 'common/icudtb.dat',
124 ], 134 ],
125 'data_assembly_outputs': [ 135 'data_assembly_outputs': [
126 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S', 136 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S',
127 ], 137 ],
128 }, { # Little Endian 138 }, { # Little Endian
129 'data_assembly_outputs': [ 139 'data_assembly_outputs': [
130 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', 140 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S',
131 ], 141 ],
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 'U_HIDE_DATA_SYMBOL', 184 'U_HIDE_DATA_SYMBOL',
175 ], 185 ],
176 'dependencies': [ 186 'dependencies': [
177 'data_assembly#target', 187 'data_assembly#target',
178 ], 188 ],
179 'sources': [ 189 'sources': [
180 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', 190 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S',
181 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S', 191 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S',
182 ], 192 ],
183 'conditions': [ 193 'conditions': [
184 [ 'target_arch=="mips" or target_arch=="mips64"', { 194 [ 'v8_host_byteorder=="big"', {
185 'sources!': ['<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_da t.S'], 195 'sources!': ['<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_da t.S'],
186 }, { 196 }, {
187 'sources!': ['<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_da t.S'], 197 'sources!': ['<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_da t.S'],
188 }], 198 }],
189 [ 'use_system_icu==1 and want_separate_host_toolset==1', { 199 [ 'use_system_icu==1 and want_separate_host_toolset==1', {
190 'toolsets': ['host'], 200 'toolsets': ['host'],
191 }], 201 }],
192 [ 'use_system_icu==0 and want_separate_host_toolset==1', { 202 [ 'use_system_icu==0 and want_separate_host_toolset==1', {
193 'toolsets': ['host', 'target'], 203 'toolsets': ['host', 'target'],
194 }], 204 }],
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 }, 682 },
673 'includes': [ 683 'includes': [
674 'shim_headers.gypi', 684 'shim_headers.gypi',
675 ], 685 ],
676 'toolsets': ['target'], 686 'toolsets': ['target'],
677 }, 687 },
678 ], # targets 688 ], # targets
679 }], 689 }],
680 ], # conditions 690 ], # conditions
681 } 691 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698