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

Side by Side Diff: ppapi/ppapi_nacl_test_common.gypi

Issue 890033003: Revert of [NaCl SDK] Remove create_nmf dependency on NACL_SDK_ROOT env var (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « ppapi/ppapi_nacl.gyp ('k') | 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) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 '../build/common_untrusted.gypi', 7 '../build/common_untrusted.gypi',
8 ], 8 ],
9 'target_defaults': { 9 'target_defaults': {
10 # We need to override the variables in untrusted.gypi outside of a 10 # We need to override the variables in untrusted.gypi outside of a
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 '-lppapi_cpp', 103 '-lppapi_cpp',
104 '-lppapi', 104 '-lppapi',
105 '-pthread', 105 '-pthread',
106 ], 106 ],
107 'extra_args': [ 107 'extra_args': [
108 '--strip-all', 108 '--strip-all',
109 ], 109 ],
110 'create_nmf': '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py', 110 'create_nmf': '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py',
111 'create_nmf_args_portable%': [], 111 'create_nmf_args_portable%': [],
112 'create_nonsfi_test_nmf': '<(DEPTH)/ppapi/tests/create_nonsfi_test_nmf .py', 112 'create_nonsfi_test_nmf': '<(DEPTH)/ppapi/tests/create_nonsfi_test_nmf .py',
113 'create_nmf_args': [
114 '--no-default-libpath',
115 '--objdump=>(nacl_glibc_tc_root)/bin/x86_64-nacl-objdump',
116 ],
117 }, 113 },
118 'target_conditions': [ 114 'target_conditions': [
119 ['generate_nmf==1 and build_newlib==1', { 115 ['generate_nmf==1 and build_newlib==1', {
120 'actions': [ 116 'actions': [
121 { 117 {
122 'action_name': 'Generate NEWLIB NMF', 118 'action_name': 'Generate NEWLIB NMF',
123 'inputs': ['>(create_nmf)'], 119 'inputs': ['>(create_nmf)'],
124 'outputs': ['>(nmf_newlib)'], 120 'outputs': ['>(nmf_newlib)'],
125 'action': [ 121 'action': [
126 'python', 122 'python',
127 '>(create_nmf)', 123 '>(create_nmf)',
128 '>@(create_nmf_args)',
129 '--output=>(nmf_newlib)', 124 '--output=>(nmf_newlib)',
130 '>@(create_nmf_args_portable)', 125 '>@(create_nmf_args_portable)',
131 ], 126 ],
132 'target_conditions': [ 127 'target_conditions': [
133 ['enable_x86_64==1', { 128 ['enable_x86_64==1', {
134 'inputs': ['>(out_newlib64)'], 129 'inputs': ['>(out_newlib64)'],
135 'action': ['>(out_newlib64)'], 130 'action': ['>(out_newlib64)'],
136 }], 131 }],
137 ['enable_x86_32==1', { 132 ['enable_x86_32==1', {
138 'inputs': ['>(out_newlib32)'], 133 'inputs': ['>(out_newlib32)'],
(...skipping 10 matching lines...) Expand all
149 ], 144 ],
150 }, 145 },
151 ], 146 ],
152 }], 147 }],
153 ['"<(target_arch)"!="arm" and "<(target_arch)"!="mipsel" and generate_ nmf==1 and disable_glibc==0 and build_glibc==1', { 148 ['"<(target_arch)"!="arm" and "<(target_arch)"!="mipsel" and generate_ nmf==1 and disable_glibc==0 and build_glibc==1', {
154 'variables': { 149 'variables': {
155 # NOTE: Use /lib, not /lib64 here; it is a symbolic link which 150 # NOTE: Use /lib, not /lib64 here; it is a symbolic link which
156 # doesn't work on Windows. 151 # doesn't work on Windows.
157 'libdir_glibc64': '>(nacl_glibc_tc_root)/x86_64-nacl/lib', 152 'libdir_glibc64': '>(nacl_glibc_tc_root)/x86_64-nacl/lib',
158 'libdir_glibc32': '>(nacl_glibc_tc_root)/x86_64-nacl/lib32', 153 'libdir_glibc32': '>(nacl_glibc_tc_root)/x86_64-nacl/lib32',
154 'nacl_objdump': '>(nacl_glibc_tc_root)/bin/x86_64-nacl-objdump',
159 }, 155 },
160 'actions': [ 156 'actions': [
161 { 157 {
162 'action_name': 'Generate GLIBC NMF and copy libs', 158 'action_name': 'Generate GLIBC NMF and copy libs',
163 'inputs': ['>(create_nmf)'], 159 'inputs': ['>(create_nmf)'],
164 # NOTE: There is no explicit dependency for the lib32 160 # NOTE: There is no explicit dependency for the lib32
165 # and lib64 directories created in the PRODUCT_DIR. 161 # and lib64 directories created in the PRODUCT_DIR.
166 # They are created as a side-effect of NMF creation. 162 # They are created as a side-effect of NMF creation.
167 'outputs': ['>(nmf_glibc)'], 163 'outputs': ['>(nmf_glibc)'],
168 'action': [ 164 'action': [
169 'python', 165 'python',
170 '>@(_inputs)', 166 '>@(_inputs)',
171 '>@(create_nmf_args)', 167 '--objdump=>(nacl_objdump)',
172 '--output=>(nmf_glibc)', 168 '--output=>(nmf_glibc)',
173 '--path-prefix=>(nexe_target)_libs', 169 '--path-prefix=>(nexe_target)_libs',
174 '--stage-dependencies=<(nacl_glibc_out_dir)', 170 '--stage-dependencies=<(nacl_glibc_out_dir)',
175 '>@(create_nmf_args_portable)', 171 '>@(create_nmf_args_portable)',
176 ], 172 ],
177 'target_conditions': [ 173 'target_conditions': [
178 ['enable_x86_64==1', { 174 ['enable_x86_64==1', {
179 'inputs': ['>(out_glibc64)'], 175 'inputs': ['>(out_glibc64)'],
180 'action': [ 176 'action': [
181 '--library-path=>(libdir_glibc64)', 177 '--library-path=>(libdir_glibc64)',
(...skipping 16 matching lines...) Expand all
198 'actions': [ 194 'actions': [
199 { 195 {
200 'action_name': 'Generate PNACL NEWLIB NMF', 196 'action_name': 'Generate PNACL NEWLIB NMF',
201 # NOTE: create_nmf must be first, it is the script python 197 # NOTE: create_nmf must be first, it is the script python
202 # executes below. 198 # executes below.
203 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib)'], 199 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib)'],
204 'outputs': ['>(nmf_pnacl_newlib)'], 200 'outputs': ['>(nmf_pnacl_newlib)'],
205 'action': [ 201 'action': [
206 'python', 202 'python',
207 '>(create_nmf)', 203 '>(create_nmf)',
208 '>@(create_nmf_args)',
209 '--output=>(nmf_pnacl_newlib)', 204 '--output=>(nmf_pnacl_newlib)',
210 '>(out_pnacl_newlib)', 205 '>(out_pnacl_newlib)',
211 '>@(create_nmf_args_portable)', 206 '>@(create_nmf_args_portable)',
212 ], 207 ],
213 }, 208 },
214 ], 209 ],
215 }], 210 }],
216 ['generate_nmf==1 and build_pnacl_newlib==1 and disable_pnacl==0 and ( enable_x86_32_nonsfi==1 or enable_arm_nonsfi==1)', { 211 ['generate_nmf==1 and build_pnacl_newlib==1 and disable_pnacl==0 and ( enable_x86_32_nonsfi==1 or enable_arm_nonsfi==1)', {
217 'actions': [ 212 'actions': [
218 { 213 {
(...skipping 23 matching lines...) Expand all
242 }], 237 }],
243 ], 238 ],
244 }, 239 },
245 ], 240 ],
246 }], 241 }],
247 ], 242 ],
248 }], 243 }],
249 ], 244 ],
250 }, 245 },
251 } 246 }
OLDNEW
« no previous file with comments | « ppapi/ppapi_nacl.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698