OLD | NEW |
| (Empty) |
1 { | |
2 'includes': [ | |
3 'extensions_tests.gypi', | |
4 ], | |
5 'variables': { | |
6 # Product name is used for Mac bundle. | |
7 'app_shell_product_name': 'App Shell', | |
8 # The version is high enough to be supported by Omaha (at least 31) | |
9 # but fake enough to be obviously not a Chrome release. | |
10 'app_shell_version': '38.1234.5678.9', | |
11 'chromium_code': 1, | |
12 }, | |
13 'targets': [ | |
14 { | |
15 'target_name': 'extensions_unittests', | |
16 'type': 'executable', | |
17 'dependencies': [ | |
18 '../base/base.gyp:base', | |
19 '../base/base.gyp:test_support_base', | |
20 '../components/components.gyp:cast_certificate_test_support', | |
21 '../components/components.gyp:keyed_service_content', | |
22 '../components/components.gyp:pref_registry_test_support', | |
23 '../components/components.gyp:user_prefs', | |
24 '../content/content_shell_and_tests.gyp:test_support_content', | |
25 '../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks', | |
26 '../device/core/core.gyp:device_core', | |
27 '../device/hid/hid.gyp:device_hid', | |
28 '../device/serial/serial.gyp:device_serial', | |
29 '../device/serial/serial.gyp:device_serial_test_util', | |
30 '../mojo/mojo_edk.gyp:mojo_js_lib', | |
31 '../mojo/mojo_edk.gyp:mojo_system_impl', | |
32 '../mojo/mojo_public.gyp:mojo_cpp_bindings', | |
33 '../services/shell/shell_public.gyp:shell_public', | |
34 '../testing/gmock.gyp:gmock', | |
35 '../testing/gtest.gyp:gtest', | |
36 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', | |
37 'common/api/api.gyp:cast_channel_proto', | |
38 'extensions.gyp:extensions_browser', | |
39 'extensions.gyp:extensions_common', | |
40 'extensions.gyp:extensions_renderer', | |
41 'extensions.gyp:extensions_shell_and_test_pak', | |
42 'extensions.gyp:extensions_test_support', | |
43 'extensions.gyp:extensions_utility', | |
44 'extensions_resources.gyp:extensions_resources', | |
45 'extensions_strings.gyp:extensions_strings', | |
46 ], | |
47 # Needed for third_party libraries like leveldb. | |
48 'include_dirs': [ | |
49 '..', | |
50 ], | |
51 'sources': [ | |
52 '<@(extensions_unittests_sources)', | |
53 ], | |
54 # Disable c4267 warnings until we fix size_t to int truncations. | |
55 'msvs_disabled_warnings': [ 4267, ], | |
56 'conditions': [ | |
57 ['chromeos==1', { | |
58 'dependencies': [ | |
59 '<(DEPTH)/chromeos/chromeos.gyp:chromeos_test_support', | |
60 ], | |
61 'sources': [ | |
62 'browser/api/webcam_private/visca_webcam_unittest.cc', | |
63 ], | |
64 }], | |
65 ['proprietary_codecs==1 and enable_wifi_display==1', { | |
66 'sources': [ | |
67 '<@(extensions_unittests_sources_wifi_display)', | |
68 ], | |
69 }], | |
70 ], | |
71 }, | |
72 { | |
73 # GN version: //extensions:extensions_browsertests | |
74 'target_name': 'extensions_browsertests', | |
75 'type': '<(gtest_target_type)', | |
76 'dependencies': [ | |
77 'extensions.gyp:extensions_test_support', | |
78 'shell/app_shell.gyp:app_shell_lib', | |
79 # TODO(yoz): find the right deps | |
80 '<(DEPTH)/base/base.gyp:test_support_base', | |
81 '<(DEPTH)/components/components.gyp:guest_view_browser', | |
82 '<(DEPTH)/components/components.gyp:guest_view_renderer', | |
83 '<(DEPTH)/components/components.gyp:guest_view_test_support', | |
84 '<(DEPTH)/content/content.gyp:content_app_both', | |
85 '<(DEPTH)/content/content_shell_and_tests.gyp:content_browser_test_base'
, | |
86 '<(DEPTH)/content/content_shell_and_tests.gyp:content_browser_test_suppo
rt', | |
87 '<(DEPTH)/content/content_shell_and_tests.gyp:test_support_content', | |
88 '<(DEPTH)/device/bluetooth/bluetooth.gyp:device_bluetooth_mocks', | |
89 '<(DEPTH)/device/core/core.gyp:device_core_mocks', | |
90 '<(DEPTH)/device/hid/hid.gyp:device_hid_mocks', | |
91 '<(DEPTH)/device/usb/usb.gyp:device_usb_mocks', | |
92 '<(DEPTH)/testing/gmock.gyp:gmock', | |
93 '<(DEPTH)/testing/gtest.gyp:gtest', | |
94 ], | |
95 'defines': [ | |
96 'HAS_OUT_OF_PROC_TEST_RUNNER', | |
97 ], | |
98 'sources': [ | |
99 '<@(extensions_browsertests_sources)', | |
100 ], | |
101 'conditions': [ | |
102 ['OS=="mac"', { | |
103 'dependencies': [ | |
104 'shell/app_shell.gyp:app_shell', # Needed for App Shell.app's Helpe
r. | |
105 ], | |
106 }], | |
107 # This is only here to keep gyp happy. This target never builds on | |
108 # mobile platforms. | |
109 ['OS != "ios" and OS != "android"', { | |
110 'dependencies': [ | |
111 '<(DEPTH)/components/components.gyp:storage_monitor_test_support', | |
112 ], | |
113 }], | |
114 ] | |
115 }, | |
116 ], | |
117 'conditions': [ | |
118 ['test_isolation_mode != "noop"', { | |
119 'targets': [ | |
120 { | |
121 'target_name': 'extensions_browsertests_run', | |
122 'type': 'none', | |
123 'dependencies': [ | |
124 'extensions_browsertests', | |
125 ], | |
126 'includes': [ | |
127 '../build/isolate.gypi', | |
128 ], | |
129 'sources': [ | |
130 'extensions_browsertests.isolate', | |
131 ], | |
132 }, | |
133 { | |
134 'target_name': 'extensions_unittests_run', | |
135 'type': 'none', | |
136 'dependencies': [ | |
137 'extensions_unittests', | |
138 ], | |
139 'includes': [ | |
140 '../build/isolate.gypi', | |
141 ], | |
142 'sources': [ | |
143 'extensions_unittests.isolate', | |
144 ], | |
145 'conditions': [ | |
146 ['use_x11 == 1', { | |
147 'dependencies': [ | |
148 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | |
149 ], | |
150 }], | |
151 ], | |
152 } | |
153 ], | |
154 }], | |
155 ], | |
156 } | |
OLD | NEW |