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 { | 7 { |
8 'target_name': 'ppapi_example', | 8 'target_name': 'ppapi_example', |
9 'dependencies': [ | 9 'dependencies': [ |
10 'ppapi.gyp:ppapi_cpp' | 10 'ppapi.gyp:ppapi_cpp' |
11 ], | 11 ], |
12 'xcode_settings': { | |
13 'INFOPLIST_FILE': 'example/Info.plist', | |
14 }, | |
15 'sources': [ | 12 'sources': [ |
16 'example/example.cc', | 13 'example/example.cc', |
17 ], | 14 ], |
18 'conditions': [ | 15 'conditions': [ |
19 ['OS=="win"', { | 16 ['OS=="win"', { |
20 'type': 'shared_library', | 17 'type': 'shared_library', |
21 'sources': [ | 18 'sources': [ |
22 'example/example.rc', | 19 'example/example.rc', |
23 ], | 20 ], |
24 'run_as': { | 21 'run_as': { |
25 'action': [ | 22 'action': [ |
26 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', | 23 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', |
27 '--register-pepper-plugins=$(TargetPath);application/x-ppapi-examp
le', | 24 '--register-pepper-plugins=$(TargetPath);application/x-ppapi-examp
le', |
28 'file://$(ProjectDir)/example/example.html', | 25 'file://$(ProjectDir)/example/example.html', |
29 ], | 26 ], |
30 }, | 27 }, |
31 }], | 28 }], |
32 ['os_posix == 1 and OS != "mac"', { | 29 ['os_posix == 1 and OS != "mac"', { |
33 'type': 'shared_library', | 30 'type': 'shared_library', |
34 'cflags': ['-fvisibility=hidden'], | 31 'cflags': ['-fvisibility=hidden'], |
35 # -gstabs, used in the official builds, causes an ICE. Simply remove | 32 # -gstabs, used in the official builds, causes an ICE. Simply remove |
36 # it. | 33 # it. |
37 'cflags!': ['-gstabs'], | 34 'cflags!': ['-gstabs'], |
38 }], | 35 }], |
39 ['OS=="mac"', { | 36 ['OS=="mac"', { |
40 'type': 'loadable_module', | 37 'type': 'loadable_module', |
41 'mac_bundle': 1, | 38 'mac_bundle': 1, |
42 'product_name': 'PPAPIExample', | 39 'product_name': 'PPAPIExample', |
43 'product_extension': 'plugin', | 40 'product_extension': 'plugin', |
44 'sources+': [ | |
45 'example/Info.plist' | |
46 ], | |
47 }], | 41 }], |
48 ], | 42 ], |
49 # See README for instructions on how to run and debug on the Mac. | 43 # See README for instructions on how to run and debug on the Mac. |
50 #'conditions' : [ | 44 #'conditions' : [ |
51 # ['OS=="mac"', { | 45 # ['OS=="mac"', { |
52 # 'target_name' : 'Chromium', | 46 # 'target_name' : 'Chromium', |
53 # 'type' : 'executable', | 47 # 'type' : 'executable', |
54 # 'xcode_settings' : { | 48 # 'xcode_settings' : { |
55 # 'ARGUMENTS' : '--renderer-startup-dialog --internal-pepper --no-san
dbox file://${SRCROOT}/test_page.html' | 49 # 'ARGUMENTS' : '--renderer-startup-dialog --internal-pepper --no-san
dbox file://${SRCROOT}/test_page.html' |
56 # }, | 50 # }, |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 'dependencies': [ | 429 'dependencies': [ |
436 'ppapi_example_skeleton', | 430 'ppapi_example_skeleton', |
437 'ppapi.gyp:ppapi_cpp', | 431 'ppapi.gyp:ppapi_cpp', |
438 ], | 432 ], |
439 'sources': [ | 433 'sources': [ |
440 'examples/printing/printing.cc', | 434 'examples/printing/printing.cc', |
441 ], | 435 ], |
442 }, | 436 }, |
443 ], | 437 ], |
444 } | 438 } |
OLD | NEW |