| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # This is a Pepper 2D example from ppapi/examples/2d. | 6 # This is a Pepper 2D example from ppapi/examples/2d. |
| 7 | 7 |
| 8 Import('env') | 8 Import('env') |
| 9 | 9 |
| 10 env.Prepend(CPPDEFINES=['XP_UNIX']) | 10 env.Prepend(CPPDEFINES=['XP_UNIX']) |
| 11 | 11 |
| 12 nexe_name = env.ProgramNameForNmf('ppapi_example_2d') | 12 nexe_name = env.ProgramNameForNmf('ppapi_example_2d') |
| 13 obj = env.ComponentObject( | 13 obj = env.ComponentObject( |
| 14 'graphics_2d_example', | 14 'graphics_2d_example', |
| 15 '$SOURCE_ROOT/ppapi/examples/2d/graphics_2d_example.c' | 15 '$SOURCE_ROOT/ppapi/examples/2d/graphics_2d_example.c' |
| 16 ) | 16 ) |
| 17 ppapi_example_2d_nexe = env.ComponentProgram(nexe_name, [obj], | 17 ppapi_example_2d_nexe = env.ComponentProgram(nexe_name, [obj], |
| 18 EXTRA_LIBS=['${PPAPI_LIBS}']) | 18 EXTRA_LIBS=['ppapi']) |
| 19 | 19 |
| 20 # Note that the html is required to run this program. | 20 # Note that the html is required to run this program. |
| 21 env.Publish(nexe_name, 'run', | 21 env.Publish(nexe_name, 'run', |
| 22 ['ppapi_example_2d.html', 'ppapi_example_2d.nmf' ]) | 22 ['ppapi_example_2d.html', 'ppapi_example_2d.nmf' ]) |
| OLD | NEW |