OLD | NEW |
| (Empty) |
1 # -*- python -*- | |
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | |
3 # Use of this source code is governed by a BSD-style license that can be | |
4 # found in the LICENSE file. | |
5 | |
6 { | |
7 'includes': [ | |
8 'plugin.gypi', | |
9 ], | |
10 'target_defaults': { | |
11 'variables': { | |
12 'target_base': 'none', | |
13 }, | |
14 'include_dirs': [ | |
15 '<(DEPTH)/ppapi', | |
16 ], | |
17 'target_conditions': [ | |
18 ['target_base=="ppNaClPlugin"', { | |
19 'sources': [ | |
20 '<@(common_sources)', | |
21 ], | |
22 'xcode_settings': { | |
23 'WARNING_CFLAGS!': [ | |
24 # TODO(bradnelson): remove -pedantic when --std=c++98 in common.gypi | |
25 '-pedantic', | |
26 ], | |
27 'WARNING_CFLAGS': [ | |
28 '-Wno-deprecated', | |
29 '-Wno-deprecated-declarations', | |
30 ], | |
31 }, | |
32 'conditions': [ | |
33 ['OS=="win"', { | |
34 'sources': [ | |
35 'win/nacl_plugin.rc', | |
36 ], | |
37 'msvs_settings': { | |
38 'VCCLCompilerTool': { | |
39 'ExceptionHandling': '2', # /EHsc | |
40 }, | |
41 'VCLinkerTool': { | |
42 'AdditionalLibraryDirectories': [ | |
43 '$(OutDir)/lib', | |
44 ], | |
45 }, | |
46 }, | |
47 }], | |
48 ], | |
49 }], | |
50 ], | |
51 }, | |
52 'targets': [], | |
53 'conditions': [ | |
54 ['nacl_standalone==1', { | |
55 'targets': [ | |
56 { | |
57 'target_name': 'ppGoogleNaClPlugin', | |
58 'type': 'shared_library', | |
59 'variables': { | |
60 'target_base': 'ppNaClPlugin', | |
61 }, | |
62 'dependencies': [ | |
63 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio', | |
64 '<(DEPTH)/native_client/src/shared/imc/imc.gyp:imc', | |
65 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform', | |
66 '<(DEPTH)/native_client/src/shared/ppapi/ppapi.gyp:ppapi_cpp_nacl', | |
67 '<(DEPTH)/ppapi/native_client/src/shared/ppapi_proxy/ppapi_proxy.gyp
:nacl_ppapi_browser', | |
68 '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:nonnacl_srpc', | |
69 '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:nonnacl_srpc', | |
70 '<(DEPTH)/native_client/src/third_party_mod/jsoncpp/jsoncpp.gyp:json
cpp', | |
71 '<(DEPTH)/native_client/src/trusted/desc/desc.gyp:nrd_xfer', | |
72 '<(DEPTH)/native_client/src/trusted/nonnacl_util/nonnacl_util.gyp:no
nnacl_util', | |
73 '<(DEPTH)/native_client/src/trusted/platform_qualify/platform_qualif
y.gyp:platform_qual_lib', | |
74 '<(DEPTH)/native_client/src/trusted/gio/gio_wrapped_desc.gyp:gio_wra
pped_desc', | |
75 '<(DEPTH)/native_client/src/trusted/simple_service/simple_service.gy
p:simple_service', | |
76 '<(DEPTH)/native_client/src/trusted/reverse_service/reverse_service.
gyp:reverse_service', | |
77 '<(DEPTH)/native_client/src/trusted/weak_ref/weak_ref.gyp:weak_ref', | |
78 ], | |
79 }], | |
80 }], | |
81 ['nacl_standalone==0', { | |
82 'targets': [ | |
83 { | |
84 'target_name': 'ppGoogleNaClPluginChrome', | |
85 'type': 'loadable_module', | |
86 'sources': [ | |
87 '<@(common_sources)', | |
88 'browser_utils.cc', | |
89 ], | |
90 'xcode_settings': { | |
91 'OTHER_LDFLAGS': [ | |
92 '-Wl,-exported_symbols_list <(DEPTH)/native_client/src/trusted/p
lugin/ppapi.def' | |
93 ], | |
94 }, | |
95 'dependencies': [ | |
96 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio', | |
97 '<(DEPTH)/native_client/src/shared/imc/imc.gyp:imc', | |
98 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform', | |
99 '<(DEPTH)/native_client/src/shared/ppapi/ppapi.gyp:ppapi_cpp_nacl', | |
100 '<(DEPTH)/ppapi/native_client/src/shared/ppapi_proxy/ppapi_proxy.gyp
:nacl_ppapi_browser', | |
101 '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:nonnacl_srpc', | |
102 '<(DEPTH)/native_client/src/third_party_mod/jsoncpp/jsoncpp.gyp:json
cpp', | |
103 '<(DEPTH)/native_client/src/trusted/desc/desc.gyp:nrd_xfer', | |
104 '<(DEPTH)/native_client/src/trusted/nonnacl_util/nonnacl_util.gyp:no
nnacl_util', | |
105 '<(DEPTH)/native_client/src/trusted/platform_qualify/platform_qualif
y.gyp:platform_qual_lib', | |
106 '<(DEPTH)/native_client/src/trusted/gio/gio_wrapped_desc.gyp:gio_wra
pped_desc', | |
107 '<(DEPTH)/native_client/src/trusted/simple_service/simple_service.gy
p:simple_service', | |
108 '<(DEPTH)/native_client/src/trusted/reverse_service/reverse_service.
gyp:reverse_service', | |
109 '<(DEPTH)/native_client/src/trusted/weak_ref/weak_ref.gyp:weak_ref', | |
110 ], | |
111 'conditions': [ | |
112 ['OS=="mac"', { | |
113 'mac_bundle': 1, | |
114 'product_name': 'ppGoogleNaClPluginChrome', | |
115 'product_extension': 'plugin', | |
116 }], | |
117 ['OS=="mac" and mac_breakpad==1', { | |
118 'variables': { | |
119 # A real .dSYM is needed for dump_syms to operate on. | |
120 'mac_real_dsym': 1, | |
121 }, | |
122 }], | |
123 ['OS=="win"', { | |
124 'dependencies': [ | |
125 '<(DEPTH)/native_client/src/trusted/handle_pass/handle_pass.gyp:
browserhandle', | |
126 '<(DEPTH)/native_client/src/trusted/handle_pass/handle_pass.gyp:
handle_lookup', | |
127 '<(DEPTH)/native_client/src/trusted/handle_pass/handle_pass.gyp:
ldrhandle', | |
128 ], | |
129 }], | |
130 ], | |
131 }, | |
132 ], | |
133 }], | |
134 ], | |
135 } | |
OLD | NEW |