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

Side by Side Diff: native_client_sdk/src/build_tools/build.scons

Issue 8975001: Pepper: Change '*_sources' variables in ppapi_sources.gypi to '*_source_files'. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: argh Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ppapi/native_client/src/shared/ppapi/build.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #! -*- python -*- 1 #! -*- python -*-
2 # 2 #
3 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 3 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Build file for running scripts in the build_tools directory 7 """Build file for running scripts in the build_tools directory
8 8
9 Adapted from scons documentation: http://www.scons.org/wiki/UnitTests 9 Adapted from scons documentation: http://www.scons.org/wiki/UnitTests
10 and from ../project_templates/test.scons 10 and from ../project_templates/test.scons
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 # Load ppapi_cpp.gypi 158 # Load ppapi_cpp.gypi
159 ppapi_cpp_gypi = gyp_extract.LoadGypFile(os.path.join(ppapi_base, 159 ppapi_cpp_gypi = gyp_extract.LoadGypFile(os.path.join(ppapi_base,
160 'ppapi_cpp.gypi')) 160 'ppapi_cpp.gypi'))
161 161
162 # Load ppapi_gl.gypi 162 # Load ppapi_gl.gypi
163 ppapi_gl_gypi = gyp_extract.LoadGypFile(os.path.join(ppapi_base, 163 ppapi_gl_gypi = gyp_extract.LoadGypFile(os.path.join(ppapi_base,
164 'ppapi_gl.gypi')) 164 'ppapi_gl.gypi'))
165 165
166 # From ppapi_cpp.gypi:ppapi_c:c/[^/]*\.h 166 # From ppapi_cpp.gypi:ppapi_c:c/[^/]*\.h
167 c_headers = GypSources(ppapi_sources_map['c_sources'], 'c/[^/]*\.h') 167 c_headers = GypSources(ppapi_sources_map['c_source_files'], 'c/[^/]*\.h')
168 168
169 # From ppapi_cpp.gypi:ppapi_c:c/dev/[^/]*\.h 169 # From ppapi_cpp.gypi:ppapi_c:c/dev/[^/]*\.h
170 c_dev_headers = GypSources(ppapi_sources_map['c_sources'], 'c/dev/[^/]*\.h') 170 c_dev_headers = GypSources(ppapi_sources_map['c_source_files'],
171 'c/dev/[^/]*\.h')
171 172
172 # From ppapi_cpp.gypi:ppapi_cpp_objects:cpp/[^/]*\.h 173 # From ppapi_cpp.gypi:ppapi_cpp_objects:cpp/[^/]*\.h
173 # From ppapi_cpp.gypi:ppapi_cpp:cpp/[^/]*\.h 174 # From ppapi_cpp.gypi:ppapi_cpp:cpp/[^/]*\.h
174 cpp_headers = ( 175 cpp_headers = (
175 GypSources(ppapi_sources_map['cpp_sources'], 'cpp/[^/]*\.h') + 176 GypSources(ppapi_sources_map['cpp_source_files'], 'cpp/[^/]*\.h') +
176 gyp_extract.GypTargetSources( 177 gyp_extract.GypTargetSources(
177 ppapi_cpp_gypi, 'ppapi_cpp', 'cpp/[^/]*\.h') 178 ppapi_cpp_gypi, 'ppapi_cpp', 'cpp/[^/]*\.h')
178 ) 179 )
179 180
180 # From ppapi_cpp.gypi:ppapi_cpp_objects:cpp/dev/[^/]*\.h 181 # From ppapi_cpp.gypi:ppapi_cpp_objects:cpp/dev/[^/]*\.h
181 cpp_dev_headers = GypSources(ppapi_sources_map['cpp_sources'], 182 cpp_dev_headers = GypSources(ppapi_sources_map['cpp_source_files'],
182 'cpp/dev/[^/]*\.h') 183 'cpp/dev/[^/]*\.h')
183 184
184 # From ppapi_gl.gypi:ppapi_gles2:.*\.h 185 # From ppapi_gl.gypi:ppapi_gles2:.*\.h
185 gles2_headers = gyp_extract.GypTargetSources( 186 gles2_headers = gyp_extract.GypTargetSources(
186 ppapi_gl_gypi, 'ppapi_gles2', '.*\.h') 187 ppapi_gl_gypi, 'ppapi_gles2', '.*\.h')
187 188
188 189
189 c_header_install = env.AddHeaderToSdk( 190 c_header_install = env.AddHeaderToSdk(
190 [os.path.join(ppapi_base, h) for h in c_headers], os.path.join('ppapi', 'c')) 191 [os.path.join(ppapi_base, h) for h in c_headers], os.path.join('ppapi', 'c'))
191 c_dev_header_install = env.AddHeaderToSdk( 192 c_dev_header_install = env.AddHeaderToSdk(
192 [os.path.join(ppapi_base, h) for h in c_dev_headers], 193 [os.path.join(ppapi_base, h) for h in c_dev_headers],
193 os.path.join('ppapi', 'c', 'dev')) 194 os.path.join('ppapi', 'c', 'dev'))
194 cpp_header_install = env.AddHeaderToSdk( 195 cpp_header_install = env.AddHeaderToSdk(
195 [os.path.join(ppapi_base, h) for h in cpp_headers], 196 [os.path.join(ppapi_base, h) for h in cpp_headers],
196 os.path.join('ppapi', 'cpp')) 197 os.path.join('ppapi', 'cpp'))
197 cpp_dev_header_install = env.AddHeaderToSdk( 198 cpp_dev_header_install = env.AddHeaderToSdk(
198 [os.path.join(ppapi_base, h) for h in cpp_dev_headers], 199 [os.path.join(ppapi_base, h) for h in cpp_dev_headers],
199 os.path.join('ppapi', 'cpp', 'dev')) 200 os.path.join('ppapi', 'cpp', 'dev'))
200 201
201 # TODO(dspringer): Remove these lines when trusted ppapi builds are no longer 202 # TODO(dspringer): Remove these lines when trusted ppapi builds are no longer
202 # needed for debugging. 203 # needed for debugging.
203 # -------- 8< Cut here -------- 204 # -------- 8< Cut here --------
204 # From ppapi_cpp.gypi:ppapi_cpp_objects:cpp/[^/]*\.cc 205 # From ppapi_cpp.gypi:ppapi_cpp_objects:cpp/[^/]*\.cc
205 # From ppapi_cpp.gypi:ppapi_cpp:cpp/[^/]*\.cc 206 # From ppapi_cpp.gypi:ppapi_cpp:cpp/[^/]*\.cc
206 cpp_trusted_sources = ( 207 cpp_trusted_sources = (
207 GypSources(ppapi_sources_map['cpp_sources'], 'cpp/[^/]*\.cc') + 208 GypSources(ppapi_sources_map['cpp_source_files'], 'cpp/[^/]*\.cc') +
208 gyp_extract.GypTargetSources( 209 gyp_extract.GypTargetSources(
209 ppapi_cpp_gypi, 'ppapi_cpp', 'cpp/[^/]*\.cc') 210 ppapi_cpp_gypi, 'ppapi_cpp', 'cpp/[^/]*\.cc')
210 ) 211 )
211 212
212 cpp_trusted_source_install = env.AddHeaderToSdk( 213 cpp_trusted_source_install = env.AddHeaderToSdk(
213 [os.path.join(ppapi_base, cpp) for cpp in cpp_trusted_sources], 214 [os.path.join(ppapi_base, cpp) for cpp in cpp_trusted_sources],
214 subdir=os.path.join('ppapi', 'cpp'), 215 subdir=os.path.join('ppapi', 'cpp'),
215 base_dirs=[os.path.join(env['ROOT_DIR'], 'third_party')]) 216 base_dirs=[os.path.join(env['ROOT_DIR'], 'third_party')])
216 # -------- 8< Cut here -------- 217 # -------- 8< Cut here --------
217 218
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 for dir in env['NACL_TOOLCHAIN_ROOTS'].values(): 295 for dir in env['NACL_TOOLCHAIN_ROOTS'].values():
295 all_tools += [os.path.join(dir, tool) for tool in tools] 296 all_tools += [os.path.join(dir, tool) for tool in tools]
296 297
297 nacl_tools_cmd = env.Command(all_tools, 298 nacl_tools_cmd = env.Command(all_tools,
298 ['make_nacl_tools.py', 299 ['make_nacl_tools.py',
299 os.path.join(env['SRC_DIR'], 'DEPS')], 300 os.path.join(env['SRC_DIR'], 'DEPS')],
300 build_nacl_tools) 301 build_nacl_tools)
301 env.Depends(nacl_tools_cmd, env.GetHeadersNode()) 302 env.Depends(nacl_tools_cmd, env.GetHeadersNode())
302 env.Depends(env.GetToolchainNode(), nacl_tools_cmd) 303 env.Depends(env.GetToolchainNode(), nacl_tools_cmd)
303 env.AddCleanAction([], build_nacl_tools, ['toolchain', 'bot'], nacl_tools_cmd) 304 env.AddCleanAction([], build_nacl_tools, ['toolchain', 'bot'], nacl_tools_cmd)
OLDNEW
« no previous file with comments | « no previous file | ppapi/native_client/src/shared/ppapi/build.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698