OLD | NEW |
| (Empty) |
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 | |
5 { | |
6 'targets': [ | |
7 { | |
8 'target_name': 'npapi_layout_test_plugin', | |
9 'type': 'loadable_module', | |
10 'variables': { | |
11 'chromium_code': 1, | |
12 }, | |
13 'mac_bundle': 1, | |
14 'msvs_guid': 'BE6D5659-A8D5-4890-A42C-090DD10EF62C', | |
15 'sources': [ | |
16 'PluginObject.cpp', | |
17 'TestObject.cpp', | |
18 'main.cpp', | |
19 'npapi_layout_test_plugin.def', | |
20 'npapi_layout_test_plugin.rc', | |
21 ], | |
22 'include_dirs': [ | |
23 '../../..', | |
24 ], | |
25 'dependencies': [ | |
26 '<(DEPTH)/third_party/npapi/npapi.gyp:npapi', | |
27 ], | |
28 'msvs_disabled_warnings': [ 4996 ], | |
29 'mac_bundle_resources': [ | |
30 'Info.r', | |
31 ], | |
32 'xcode_settings': { | |
33 'INFOPLIST_FILE': '<(DEPTH)/webkit/tools/npapi_layout_test_plugin/Info.p
list', | |
34 }, | |
35 'conditions': [ | |
36 ['inside_chromium_build==0', { | |
37 'dependencies': ['../../../../JavaScriptCore/JavaScriptCore.gyp/JavaSc
riptCore.gyp:wtf'], | |
38 },{ | |
39 'dependencies': ['<(DEPTH)/third_party/WebKit/JavaScriptCore/JavaScrip
tCore.gyp/JavaScriptCore.gyp:wtf'], | |
40 }], | |
41 ['OS!="win"', { | |
42 'sources!': [ | |
43 'npapi_layout_test_plugin.def', | |
44 'npapi_layout_test_plugin.rc', | |
45 ], | |
46 }, { # OS == "win" | |
47 'variables': { | |
48 # This is not a relative pathname. Avoid pathname relativization | |
49 # by sticking it in a variable that isn't recognized as one | |
50 # containing pathnames, and by using the >(late) form of variable | |
51 # expansion. | |
52 'winmm_lib': 'winmm.lib', | |
53 }, | |
54 'link_settings': { | |
55 'libraries': [ | |
56 '>(winmm_lib)', | |
57 ], | |
58 }, | |
59 }], | |
60 ['OS=="mac"', { | |
61 'product_name': 'TestNetscapePlugIn', | |
62 'product_extension': 'plugin', | |
63 'link_settings': { | |
64 'libraries': [ | |
65 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', | |
66 ], | |
67 }, | |
68 }], | |
69 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and (
target_arch=="x64" or target_arch=="arm")', { | |
70 # Shared libraries need -fPIC on x86-64 | |
71 'cflags': ['-fPIC'] | |
72 }], | |
73 ], | |
74 }, | |
75 ], | |
76 } | |
77 | |
78 # Local Variables: | |
79 # tab-width:2 | |
80 # indent-tabs-mode:nil | |
81 # End: | |
82 # vim: set expandtab tabstop=2 shiftwidth=2: | |
OLD | NEW |