OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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 { | 6 { |
7 'targets': [ | 7 'targets': [ |
8 { | 8 { |
9 'target_name': 'pepper_test_plugin', | 9 'target_name': 'pepper_test_plugin', |
10 'dependencies': [ | 10 'dependencies': [ |
(...skipping 12 matching lines...) Expand all Loading... |
23 'test_object.cc', | 23 'test_object.cc', |
24 'test_object.h', | 24 'test_object.h', |
25 'event_handler.cc', | 25 'event_handler.cc', |
26 'event_handler.h' | 26 'event_handler.h' |
27 ], | 27 ], |
28 'conditions': [ | 28 'conditions': [ |
29 ['OS=="win"', { | 29 ['OS=="win"', { |
30 'product_name': 'pepper_test_plugin', | 30 'product_name': 'pepper_test_plugin', |
31 'type': 'shared_library', | 31 'type': 'shared_library', |
32 'msvs_guid': 'EE00E36E-9E8C-4DFB-925E-FBE32CEDB91A', | 32 'msvs_guid': 'EE00E36E-9E8C-4DFB-925E-FBE32CEDB91A', |
33 'dependencies': [ | |
34 '../../../gpu/gpu.gyp:gles2_demo_lib', | |
35 '../../../gpu/gpu.gyp:pgl', | |
36 ], | |
37 'sources': [ | 33 'sources': [ |
38 'pepper_test_plugin.def', | 34 'pepper_test_plugin.def', |
39 'pepper_test_plugin.rc', | 35 'pepper_test_plugin.rc', |
40 ], | 36 ], |
41 'run_as': { | 37 'run_as': { |
42 'action': [ | 38 'action': [ |
43 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', | 39 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', |
44 '--no-sandbox', | 40 '--no-sandbox', |
45 '--internal-pepper', | 41 '--internal-pepper', |
46 '--enable-gpu-plugin', | 42 '--enable-gpu-plugin', |
47 '--load-plugin=$(TargetPath)', | 43 '--load-plugin=$(TargetPath)', |
48 'file://$(ProjectDir)test_page.html', | 44 'file://$(ProjectDir)test_page.html', |
49 ], | 45 ], |
50 }, | 46 }, |
51 }], | 47 }], |
52 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm")', { | 48 ['OS=="linux"', { |
| 49 'type': 'shared_library', |
| 50 'cflags': ['-fvisibility=hidden'], |
| 51 }], |
| 52 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm") and linux_f
pic!=1', { |
53 'product_name': 'pepper_test_plugin', | 53 'product_name': 'pepper_test_plugin', |
54 # Shared libraries need -fPIC on x86-64 | 54 # Shared libraries need -fPIC on x86-64 |
55 'cflags': ['-fPIC'], | 55 'cflags': ['-fPIC'], |
56 'defines': ['INDEPENDENT_PLUGIN'], | 56 'defines': ['INDEPENDENT_PLUGIN'], |
57 }, { | 57 }, { |
58 'dependencies': [ | 58 'dependencies': [ |
59 '../../../base/base.gyp:base', | 59 '../../../base/base.gyp:base', |
60 '../../../skia/skia.gyp:skia', | 60 '../../../skia/skia.gyp:skia', |
61 ], | 61 ], |
| 62 'conditions': [ |
| 63 ['OS!="mac"', { |
| 64 'dependencies': [ |
| 65 '../../../gpu/gpu.gyp:gles2_demo_lib', |
| 66 '../../../gpu/gpu.gyp:pgl', |
| 67 ], |
| 68 }], |
| 69 ] |
62 }], | 70 }], |
63 ['OS=="mac"', { | 71 ['OS=="mac"', { |
64 'type': 'loadable_module', | 72 'type': 'loadable_module', |
65 'mac_bundle': 1, | 73 'mac_bundle': 1, |
66 'product_name': 'PepperTestPlugin', | 74 'product_name': 'PepperTestPlugin', |
67 'product_extension': 'plugin', | 75 'product_extension': 'plugin', |
68 'defines': ['INDEPENDENT_PLUGIN'], | 76 'defines': ['INDEPENDENT_PLUGIN'], |
69 'sources+': [ | 77 'sources+': [ |
70 'Info.plist' | 78 'Info.plist' |
71 ], | 79 ], |
72 }], | 80 }], |
73 ], | 81 ], |
74 # See README for instructions on how to run and debug on the Mac. | 82 # See README for instructions on how to run and debug on the Mac. |
75 #'conditions' : [ | 83 #'conditions' : [ |
76 # ['OS=="mac"', { | 84 # ['OS=="mac"', { |
77 # 'target_name' : 'Chromium', | 85 # 'target_name' : 'Chromium', |
78 # 'type' : 'executable', | 86 # 'type' : 'executable', |
79 # 'xcode_settings' : { | 87 # 'xcode_settings' : { |
80 # 'ARGUMENTS' : '--renderer-startup-dialog --internal-pepper --no-san
dbox file://${SRCROOT}/test_page.html' | 88 # 'ARGUMENTS' : '--renderer-startup-dialog --internal-pepper --no-san
dbox file://${SRCROOT}/test_page.html' |
81 # }, | 89 # }, |
82 # }], | 90 # }], |
83 #], | 91 #], |
84 }, | 92 }, |
85 ], | 93 ], |
86 } | 94 } |
OLD | NEW |