OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | |
8 'target_name': 'ppapi_example', | |
9 'dependencies': [ | |
10 'ppapi.gyp:ppapi_cpp' | |
11 ], | |
12 'xcode_settings': { | |
13 'INFOPLIST_FILE': 'example/Info.plist', | |
14 }, | |
15 'sources': [ | |
16 'example/example.cc', | |
17 ], | |
18 'conditions': [ | |
19 ['OS=="win"', { | |
20 'type': 'shared_library', | |
21 'sources': [ | |
22 'example/example.rc', | |
23 ], | |
24 'run_as': { | |
25 'action': [ | |
26 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', | |
27 '--register-pepper-plugins=$(TargetPath);application/x-ppapi-examp
le', | |
28 'file://$(ProjectDir)/example/example.html', | |
29 ], | |
30 }, | |
31 }], | |
32 ['os_posix == 1 and OS != "mac"', { | |
33 'type': 'shared_library', | |
34 'cflags': ['-fvisibility=hidden'], | |
35 # -gstabs, used in the official builds, causes an ICE. Simply remove | |
36 # it. | |
37 'cflags!': ['-gstabs'], | |
38 }], | |
39 ['OS=="mac"', { | |
40 'type': 'loadable_module', | |
41 'mac_bundle': 1, | |
42 'product_name': 'PPAPIExample', | |
43 'product_extension': 'plugin', | |
44 'sources+': [ | |
45 'example/Info.plist' | |
46 ], | |
47 }], | |
48 ], | |
49 # See README for instructions on how to run and debug on the Mac. | |
50 #'conditions' : [ | |
51 # ['OS=="mac"', { | |
52 # 'target_name' : 'Chromium', | |
53 # 'type' : 'executable', | |
54 # 'xcode_settings' : { | |
55 # 'ARGUMENTS' : '--renderer-startup-dialog --internal-pepper --no-san
dbox file://${SRCROOT}/test_page.html' | |
56 # }, | |
57 # }], | |
58 #], | |
59 }, | |
60 { | 7 { |
61 'target_name': 'ppapi_tests', | 8 'target_name': 'ppapi_tests', |
62 'type': 'loadable_module', | 9 'type': 'loadable_module', |
63 'include_dirs': [ | 10 'include_dirs': [ |
64 'lib/gl/include', | 11 'lib/gl/include', |
65 ], | 12 ], |
66 'defines': [ | 13 'defines': [ |
67 'GL_GLEXT_PROTOTYPES', | 14 'GL_GLEXT_PROTOTYPES', |
68 ], | 15 ], |
69 'sources': [ | 16 'sources': [ |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 'dependencies': [ | 382 'dependencies': [ |
436 'ppapi_example_skeleton', | 383 'ppapi_example_skeleton', |
437 'ppapi.gyp:ppapi_cpp', | 384 'ppapi.gyp:ppapi_cpp', |
438 ], | 385 ], |
439 'sources': [ | 386 'sources': [ |
440 'examples/printing/printing.cc', | 387 'examples/printing/printing.cc', |
441 ], | 388 ], |
442 }, | 389 }, |
443 ], | 390 ], |
444 } | 391 } |
OLD | NEW |