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

Side by Side Diff: examples/pong/build.scons

Issue 7982038: Merge in r1190 (add pong). (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/branches/trout/src/
Patch Set: Created 9 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
« no previous file with comments | « examples/index.html ('k') | examples/pong/pong.h » ('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 import make_nacl_env 7 import make_nacl_env
8 import os 8 import os
9 9
10 nacl_env = make_nacl_env.NaClEnvironment( 10 nacl_env = make_nacl_env.NaClEnvironment(
11 use_c_plus_plus_libs=True, nacl_platform=os.getenv('NACL_TARGET_PLATFORM')) 11 use_c_plus_plus_libs=True, nacl_platform=os.getenv('NACL_TARGET_PLATFORM'))
12 nacl_env.Append( 12 nacl_env.Append(
13 # Add a CPPPATH that enables the full-path #include directives, such as 13 # Add a CPPPATH that enables the full-path #include directives, such as
14 # #include "examples/sine_synth/sine_synth.h" 14 # #include "examples/sine_synth/sine_synth.h"
15 CPPPATH=[os.path.dirname(os.path.dirname(os.getcwd()))], 15 CPPPATH=[os.path.dirname(os.path.dirname(os.getcwd()))],
16 # Strict ANSI compliance. 16 # Strict ANSI compliance.
17 EXTRA_CCFLAGS=['-pedantic'], 17 EXTRA_CCFLAGS=['-pedantic'],
18 ) 18 )
19 19
20 sources = ['pong.cc', 'pong_module.cc', 'view.cc'] 20 sources = ['pong.cc', 'pong_module.cc', 'view.cc']
21 21
22 nacl_env.AllNaClModules(sources, 'pong') 22 nacl_env.AllNaClModules(sources, 'pong')
23 23
24 # This target is used by the SDK build system to provide a prebuilt version 24 # This target is used by the SDK build system to provide a prebuilt version
25 # of the example in the SDK installer. 25 # of the example in the SDK installer.
26 nacl_env.InstallPrebuilt('pong') 26 nacl_env.InstallPrebuilt('pong')
OLDNEW
« no previous file with comments | « examples/index.html ('k') | examples/pong/pong.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698