OLD | NEW |
| (Empty) |
1 #! -*- python -*- | |
2 # | |
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 | |
5 # found in the LICENSE file. | |
6 | |
7 import make_nacl_env | |
8 import os | |
9 | |
10 EXPERIMENTAL_DIR = os.path.dirname(os.getcwd()) | |
11 | |
12 nacl_env = make_nacl_env.NaClEnvironment( | |
13 use_c_plus_plus_libs=True, nacl_platform=os.getenv('NACL_TARGET_PLATFORM')) | |
14 nacl_env.Append( | |
15 # Add a CPPPATH that enables the full-path #include directives, such as | |
16 # #include "examples/sine_synth/sine_synth.h" | |
17 CPPPATH=[ | |
18 EXPERIMENTAL_DIR, | |
19 os.path.dirname(EXPERIMENTAL_DIR), | |
20 os.path.join(os.path.dirname(EXPERIMENTAL_DIR), 'third_party'), | |
21 ], | |
22 # Strict ANSI compliance. | |
23 EXTRA_CCFLAGS=['-pedantic'], | |
24 ) | |
25 | |
26 sources = [ | |
27 'algorithms.cc', | |
28 'graph.cc', | |
29 'parser.cc', | |
30 'taskmap.cc', | |
31 'webgtt.cc', | |
32 ] | |
33 | |
34 nacl_env.AllNaClModules(sources, 'webgtt') | |
OLD | NEW |