OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'dependencies': [ | |
7 '../skia/skia.gyp:skia', | |
8 '../third_party/npapi/npapi.gyp:npapi', | |
9 '../webkit/support/webkit_support.gyp:glue', | |
10 ], | |
11 'include_dirs': [ | |
12 '<(INTERMEDIATE_DIR)', | |
13 ], | |
14 'sources': [ | |
15 # All .cc, .h, .m, and .mm files under plugins except for tests and | |
16 # mocks. | |
17 'plugin/plugin_channel.cc', | |
18 'plugin/plugin_channel.h', | |
19 'plugin/plugin_interpose_util_mac.mm', | |
20 'plugin/plugin_interpose_util_mac.h', | |
21 'plugin/plugin_main.cc', | |
22 'plugin/plugin_main_linux.cc', | |
23 'plugin/plugin_main_mac.mm', | |
24 'plugin/plugin_thread.cc', | |
25 'plugin/plugin_thread.h', | |
26 'plugin/webplugin_accelerated_surface_proxy_mac.cc', | |
27 'plugin/webplugin_accelerated_surface_proxy_mac.h', | |
28 'plugin/webplugin_delegate_stub.cc', | |
29 'plugin/webplugin_delegate_stub.h', | |
30 'plugin/webplugin_proxy.cc', | |
31 'plugin/webplugin_proxy.h', | |
32 'public/plugin/content_plugin_client.h', | |
33 ], | |
34 # These are layered in conditionals in the event other platforms | |
35 # end up using this module as well. | |
36 'conditions': [ | 6 'conditions': [ |
37 ['os_bsd==1', { | 7 ['enable_plugins==1', { |
38 'sources/': [ | 8 'dependencies': [ |
39 ['exclude', '^plugin/plugin_main_linux\\.cc$'], | 9 '../skia/skia.gyp:skia', |
| 10 '../third_party/npapi/npapi.gyp:npapi', |
| 11 '../webkit/support/webkit_support.gyp:glue', |
40 ], | 12 ], |
41 }], | |
42 ['OS=="win"', { | |
43 'include_dirs': [ | 13 'include_dirs': [ |
44 '<(DEPTH)/third_party/wtl/include', | 14 '<(INTERMEDIATE_DIR)', |
45 ], | 15 ], |
46 }], | 16 'sources': [ |
47 ['toolkit_uses_gtk == 1', { | 17 # All .cc, .h, .m, and .mm files under plugins except for tests and |
48 'dependencies': [ | 18 # mocks. |
49 '../build/linux/system.gyp:gtk', | 19 'plugin/plugin_channel.cc', |
| 20 'plugin/plugin_channel.h', |
| 21 'plugin/plugin_interpose_util_mac.mm', |
| 22 'plugin/plugin_interpose_util_mac.h', |
| 23 'plugin/plugin_main.cc', |
| 24 'plugin/plugin_main_linux.cc', |
| 25 'plugin/plugin_main_mac.mm', |
| 26 'plugin/plugin_thread.cc', |
| 27 'plugin/plugin_thread.h', |
| 28 'plugin/webplugin_accelerated_surface_proxy_mac.cc', |
| 29 'plugin/webplugin_accelerated_surface_proxy_mac.h', |
| 30 'plugin/webplugin_delegate_stub.cc', |
| 31 'plugin/webplugin_delegate_stub.h', |
| 32 'plugin/webplugin_proxy.cc', |
| 33 'plugin/webplugin_proxy.h', |
| 34 'public/plugin/content_plugin_client.h', |
50 ], | 35 ], |
51 'link_settings': { | 36 # These are layered in conditionals in the event other platforms |
52 'libraries': [ | 37 # end up using this module as well. |
53 '-lXext', | 38 'conditions': [ |
54 ], | 39 ['os_bsd==1', { |
55 }, | 40 'sources/': [ |
56 }], | 41 ['exclude', '^plugin/plugin_main_linux\\.cc$'], |
57 ['use_aura==1 and OS!="win"', { | 42 ], |
58 'link_settings': { | 43 }], |
59 'libraries': [ | 44 ['OS=="win"', { |
60 '-lXext', | 45 'include_dirs': [ |
61 ], | 46 '<(DEPTH)/third_party/wtl/include', |
62 }, | 47 ], |
| 48 }], |
| 49 ['toolkit_uses_gtk == 1', { |
| 50 'dependencies': [ |
| 51 '../build/linux/system.gyp:gtk', |
| 52 ], |
| 53 'link_settings': { |
| 54 'libraries': [ |
| 55 '-lXext', |
| 56 ], |
| 57 }, |
| 58 }], |
| 59 ['use_aura==1 and OS!="win"', { |
| 60 'link_settings': { |
| 61 'libraries': [ |
| 62 '-lXext', |
| 63 ], |
| 64 }, |
| 65 }], |
| 66 ], |
63 }], | 67 }], |
64 ], | 68 ], |
65 } | 69 } |
OLD | NEW |