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

Side by Side Diff: ppapi/native_client/src/untrusted/pnacl_support_extension/nacl.scons

Issue 10914053: Relocating files in the nacl repo that belong in chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 # -*- python -*-
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 Import('env')
7
8 import os
9
10 # Support files for pnacl browser tests (as an unpacked chrome extension).
11 if not env.Bit('bitcode'):
12 Return()
13
14 # Override the IRT shim with the latest one built in scons-out.
15 # Otherwise, there may be a mismatch between the latest pepper headers
16 # and the IRT shim that we built in the toolchain tarball.
17 #
18 # We pick exactly that file for now, because the other files in
19 # ${LIB_DIR} are bitcode and we don't want to pollute the CRX with those.
20 arch = env['TARGET_FULLARCH']
21 lib_override = ''
22 lib_dep = []
23 if arch == 'x86-64':
24 lib_override = ('--lib_override=%s,${LIB_DIR}/libpnacl_irt_shim.a ' % arch)
25 lib_dep = [env.File('${LIB_DIR}/libpnacl_irt_shim.a')]
26
27 output_dir = env.GetPnaclExtensionRootNode().abspath
28
29 generated_crx = env.Command(
30 # Output (a directory with a bunch of files, like manifest.json)
31 env.GetPnaclExtensionNode(),
32 # Inputs -- just the command and any scons files. We don't model
33 # deps to files in the toolchain dir, since that doesn't seem to work.
34 ['${SOURCE_ROOT}/native_client/pnacl/' +
35 'pnacl_packaging/pnacl_component_crx_gen.py'] + lib_dep,
36 # Command.
37 ('${PYTHON} ${SOURCES[0]} ' +
38 '--dest=' + output_dir + ' ' +
39 # Override the libraries from the tarball with those in scons-out/x/lib
40 lib_override +
41 # Build only the unpacked extension, not zipped up files, etc.
42 '-u ' +
43 env.GetPnaclExtensionDummyVersion()))
44
45 # NOTE: Toolchain directory dependencies don't seem to work in SCons, so we
46 # end up setting this to 'AlwaysBuild'.
47 env.AlwaysBuild(generated_crx)
48
49 env.Alias('pnacl_support_extension', generated_crx)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698