OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'include': [ |
| 7 '../native_client/build/untrusted.gypi', |
| 8 ], |
6 'target_defaults': { | 9 'target_defaults': { |
7 'variables': { | 10 'variables': { |
8 'nacl_target': 0, | 11 'nacl_target': 0, |
9 }, | 12 }, |
10 'target_conditions': [ | 13 'target_conditions': [ |
11 # This part is shared between the targets defined below. Only files and | 14 # This part is shared between the targets defined below. Only files and |
12 # settings relevant for building the Win64 target should be added here. | 15 # settings relevant for building the Win64 target should be added here. |
13 ['nacl_target==1', { | 16 ['nacl_target==1', { |
14 'include_dirs': [ | 17 'include_dirs': [ |
15 '<(INTERMEDIATE_DIR)', | 18 '<(INTERMEDIATE_DIR)', |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 ], | 58 ], |
56 }, | 59 }, |
57 'conditions': [ | 60 'conditions': [ |
58 ['disable_nacl!=1', { | 61 ['disable_nacl!=1', { |
59 'targets': [ | 62 'targets': [ |
60 { | 63 { |
61 'target_name': 'nacl', | 64 'target_name': 'nacl', |
62 'type': 'static_library', | 65 'type': 'static_library', |
63 'variables': { | 66 'variables': { |
64 'nacl_target': 1, | 67 'nacl_target': 1, |
65 'irt_build_cmd': [ | |
66 'python', 'build_nacl_irt.py', '--outdir', '<(PRODUCT_DIR)', | |
67 ], | |
68 'irt_inputs_cmd': | |
69 'python build_nacl_irt.py --inputs', | |
70 }, | 68 }, |
71 'dependencies': [ | 69 'dependencies': [ |
72 'chrome_resources.gyp:chrome_resources', | 70 'chrome_resources.gyp:chrome_resources', |
73 'chrome_resources.gyp:chrome_strings', | 71 'chrome_resources.gyp:chrome_strings', |
74 'common', | 72 'common', |
| 73 '../ppapi/native_client/native_client.gyp:nacl_irt', |
75 '../webkit/support/webkit_support.gyp:glue', | 74 '../webkit/support/webkit_support.gyp:glue', |
76 '../ppapi/native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPl
uginChrome', | 75 '../ppapi/native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPl
uginChrome', |
77 '../native_client/src/trusted/service_runtime/service_runtime.gyp:se
l', | 76 '../native_client/src/trusted/service_runtime/service_runtime.gyp:se
l', |
78 '../native_client/src/trusted/platform_qualify/platform_qualify.gyp:
platform_qual_lib', | 77 '../native_client/src/trusted/platform_qualify/platform_qualify.gyp:
platform_qual_lib', |
79 ], | 78 ], |
80 'direct_dependent_settings': { | 79 'direct_dependent_settings': { |
81 'defines': [ | 80 'defines': [ |
82 'NACL_BLOCK_SHIFT=5', | 81 'NACL_BLOCK_SHIFT=5', |
83 'NACL_BLOCK_SIZE=32', | 82 'NACL_BLOCK_SIZE=32', |
84 '<@(nacl_defines)', | 83 '<@(nacl_defines)', |
85 ], | 84 ], |
86 }, | 85 }, |
87 'conditions': [ | |
88 ['OS=="win"', { | |
89 # Windows needs both the x86-32 and x86-64 IRT. | |
90 'actions': [ | |
91 { | |
92 'action_name': 'nacl_irt', | |
93 'message': 'Building NaCl IRT', | |
94 'inputs': [ | |
95 '<!@(<(irt_inputs_cmd) --platform=x86-32 --platform=x86-64)'
, | |
96 ], | |
97 'outputs': ['<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', | |
98 '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe'], | |
99 'action': [ | |
100 '<@(irt_build_cmd)', | |
101 '--platform', 'x86-32', | |
102 '--platform', 'x86-64', | |
103 ], | |
104 }, | |
105 ], | |
106 }], | |
107 ['OS!="win" and target_arch=="ia32"', { | |
108 # Linux-x86-32 and OSX need only the x86-32 IRT. | |
109 'actions': [ | |
110 { | |
111 'action_name': 'nacl_irt', | |
112 'message': 'Building NaCl IRT', | |
113 'inputs': [ | |
114 '<!@(<(irt_inputs_cmd) --platform=x86-32)', | |
115 ], | |
116 'outputs': ['<(PRODUCT_DIR)/nacl_irt_x86_32.nexe'], | |
117 'action': [ | |
118 '<@(irt_build_cmd)', '--platform', 'x86-32', | |
119 ], | |
120 }, | |
121 ], | |
122 }], | |
123 ['OS!="win" and target_arch=="x64"', { | |
124 # Linux-x86-64 needs only the x86-64 IRT. | |
125 'actions': [ | |
126 { | |
127 'action_name': 'nacl_irt', | |
128 'message': 'Building NaCl IRT', | |
129 'inputs': [ | |
130 '<!@(<(irt_inputs_cmd) --platform=x86-64)', | |
131 ], | |
132 'outputs': ['<(PRODUCT_DIR)/nacl_irt_x86_64.nexe'], | |
133 'action': [ | |
134 '<@(irt_build_cmd)', '--platform', 'x86-64', | |
135 ], | |
136 }, | |
137 ], | |
138 }], | |
139 ['OS!="win" and target_arch=="arm"', { | |
140 'actions': [ | |
141 { | |
142 'action_name': 'nacl_irt', | |
143 'message': 'Building NaCl IRT', | |
144 'inputs': [ | |
145 '<!@(<(irt_inputs_cmd) --platform=arm)', | |
146 ], | |
147 'outputs': ['<(PRODUCT_DIR)/nacl_irt_arm.nexe'], | |
148 'action': [ | |
149 '<@(irt_build_cmd)', '--platform', 'arm', | |
150 ], | |
151 }, | |
152 ], | |
153 }], | |
154 ], | |
155 }, | 86 }, |
156 ], | 87 ], |
157 'conditions': [ | 88 'conditions': [ |
158 ['OS=="win"', { | 89 ['OS=="win"', { |
159 'targets': [ | 90 'targets': [ |
160 { | 91 { |
161 'target_name': 'nacl_win64', | 92 'target_name': 'nacl_win64', |
162 'type': 'static_library', | 93 'type': 'static_library', |
163 'variables': { | 94 'variables': { |
164 'nacl_target': 1, | 95 'nacl_target': 1, |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 'target_name': 'nacl_win64', | 338 'target_name': 'nacl_win64', |
408 'type': 'none', | 339 'type': 'none', |
409 'sources': [], | 340 'sources': [], |
410 }, | 341 }, |
411 ], | 342 ], |
412 }], | 343 }], |
413 ], | 344 ], |
414 }], | 345 }], |
415 ], | 346 ], |
416 } | 347 } |
OLD | NEW |