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