| OLD | NEW |
| 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') |
| OLD | NEW |