OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
1 | 5 |
2 { | 6 { |
3 'targets': [ | 7 'targets': [ |
4 { | 8 { |
5 'target_name': 'pepper_test_plugin', | 9 'target_name': 'pepper_test_plugin', |
6 'type': 'shared_library', | |
7 'dependencies': [ | 10 'dependencies': [ |
8 '../../../third_party/npapi/npapi.gyp:npapi', | 11 '../../../third_party/npapi/npapi.gyp:npapi', |
9 ], | 12 ], |
10 'include_dirs': [ | 13 'include_dirs': [ |
11 '../../..', # Root of Chrome Checkout | 14 '../../..', # Root of Chrome Checkout |
12 ], | 15 ], |
| 16 'xcode_settings': { |
| 17 'INFOPLIST_FILE': 'Info.plist', |
| 18 }, |
| 19 'sources': [ |
| 20 'command_buffer_pepper.cc', |
| 21 'command_buffer_pepper.h', |
| 22 'main.cc', |
| 23 'plugin_object.cc', |
| 24 'plugin_object.h', |
| 25 'test_object.cc', |
| 26 'test_object.h', |
| 27 'event_handler.cc', |
| 28 'event_handler.h' |
| 29 ], |
13 'conditions': [ | 30 'conditions': [ |
14 ['OS=="win"', { | 31 ['OS=="win"', { |
15 'product_name': 'pepper_test_plugin', | 32 'product_name': 'pepper_test_plugin', |
| 33 'type': 'shared_library', |
16 'msvs_guid': 'EE00E36E-9E8C-4DFB-925E-FBE32CEDB91A', | 34 'msvs_guid': 'EE00E36E-9E8C-4DFB-925E-FBE32CEDB91A', |
17 'dependencies': [ | 35 'dependencies': [ |
18 '../../../gpu/gpu.gyp:gles2_demo_lib', | 36 '../../../gpu/gpu.gyp:gles2_demo_lib', |
19 ], | 37 ], |
20 'sources': [ | 38 'sources': [ |
21 'pepper_test_plugin.def', | 39 'pepper_test_plugin.def', |
22 'pepper_test_plugin.rc', | 40 'pepper_test_plugin.rc', |
23 ], | 41 ], |
| 42 'run_as': { |
| 43 'action': [ |
| 44 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', |
| 45 '--no-sandbox', |
| 46 '--internal-pepper', |
| 47 '--enable-gpu-plugin', |
| 48 '--load-plugin=$(TargetPath)', |
| 49 'file://$(ProjectDir)test_page.html', |
| 50 ], |
| 51 }, |
24 }], | 52 }], |
25 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm")', { | 53 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm")', { |
| 54 'product_name': 'pepper_test_plugin', |
26 # Shared libraries need -fPIC on x86-64 | 55 # Shared libraries need -fPIC on x86-64 |
27 'cflags': ['-fPIC'], | 56 'cflags': ['-fPIC'], |
28 'defines': ['INDEPENDENT_PLUGIN'], | 57 'defines': ['INDEPENDENT_PLUGIN'], |
29 }, { | 58 }, { |
30 'dependencies': [ | 59 'dependencies': [ |
31 '../../../base/base.gyp:base', | 60 '../../../base/base.gyp:base', |
32 '../../../skia/skia.gyp:skia', | 61 '../../../skia/skia.gyp:skia', |
33 ], | 62 ], |
34 }], | 63 }], |
| 64 ['OS=="mac"', { |
| 65 'type': 'loadable_module', |
| 66 'mac_bundle': 1, |
| 67 'product_name': 'PepperTestPlugin', |
| 68 'product_extension': 'plugin', |
| 69 'defines': ['INDEPENDENT_PLUGIN'], |
| 70 'sources+': [ |
| 71 'Info.plist' |
| 72 ], |
| 73 }], |
35 ], | 74 ], |
36 'sources': [ | 75 # See README for instructions on how to run and debug on the Mac. |
37 'command_buffer_pepper.cc', | 76 #'conditions' : [ |
38 'command_buffer_pepper.h', | 77 # ['OS=="mac"', { |
39 'main.cc', | 78 # 'target_name' : 'Chromium', |
40 'plugin_object.cc', | 79 # 'type' : 'executable', |
41 'plugin_object.h', | 80 # 'xcode_settings' : { |
42 'test_object.cc', | 81 # 'ARGUMENTS' : '--renderer-startup-dialog --internal-pepper --no-san
dbox file://${SRCROOT}/test_page.html' |
43 'test_object.h', | 82 # }, |
44 'event_handler.cc', | 83 # }], |
45 'event_handler.h' | 84 #], |
46 ], | 85 }, |
47 'run_as': { | |
48 'action': [ | |
49 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', | |
50 '--no-sandbox', | |
51 '--internal-pepper', | |
52 '--enable-gpu-plugin', | |
53 '--load-plugin=$(TargetPath)', | |
54 'file://$(ProjectDir)test_page.html', | |
55 ], | |
56 }, | |
57 } | |
58 ], | 86 ], |
59 } | 87 } |
OLD | NEW |