Include inttypes.h unconditionally in format_macros.h - VS2103 now supplies this...
[chromium-blink-merge.git] / extensions / extensions_tests.gyp
blob10a187fe035f5996c3bbc12d7c977bb67c2a9e0e
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:keyed_service_content',
21         '../components/components.gyp:user_prefs',
22         '../content/content_shell_and_tests.gyp:test_support_content',
23         '../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks',
24         '../device/serial/serial.gyp:device_serial',
25         '../device/serial/serial.gyp:device_serial_test_util',
26         '../mojo/mojo_base.gyp:mojo_environment_chromium',
27         '../testing/gmock.gyp:gmock',
28         '../testing/gtest.gyp:gtest',
29         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
30         '../third_party/mojo/mojo_edk.gyp:mojo_js_lib',
31         '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
32         '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
33         '../third_party/mojo/mojo_public.gyp:mojo_application_bindings',
34         'common/api/api.gyp:cast_channel_proto',
35         'extensions.gyp:extensions_browser',
36         'extensions.gyp:extensions_common',
37         'extensions.gyp:extensions_renderer',
38         'extensions.gyp:extensions_shell_and_test_pak',
39         'extensions.gyp:extensions_test_support',
40         'extensions.gyp:extensions_utility',
41         'extensions_resources.gyp:extensions_resources',
42         'extensions_strings.gyp:extensions_strings',
43       ],
44       # Needed for third_party libraries like leveldb.
45       'include_dirs': [
46         '..',
47       ],
48       'sources': [
49         '<@(extensions_unittests_sources)',
50       ],
51       # Disable c4267 warnings until we fix size_t to int truncations.
52       'msvs_disabled_warnings': [ 4267, ],
53       'conditions': [
54         ['OS=="win" and win_use_allocator_shim==1', {
55           'dependencies': [
56             '../base/allocator/allocator.gyp:allocator',
57           ],
58         }],
59         ['chromeos==1', {
60           'dependencies': [
61             '<(DEPTH)/chromeos/chromeos.gyp:chromeos_test_support',
62           ],
63         }],
64       ],
65     },
66     {
67       # GN version: //extensions:extensions_browsertests
68       'target_name': 'extensions_browsertests',
69       'type': '<(gtest_target_type)',
70       'dependencies': [
71         'extensions.gyp:extensions_test_support',
72         'shell/app_shell.gyp:app_shell_lib',
73         # TODO(yoz): find the right deps
74         '<(DEPTH)/base/base.gyp:test_support_base',
75         '<(DEPTH)/components/components.gyp:guest_view',
76         '<(DEPTH)/components/components.gyp:guest_view_test_support',
77         '<(DEPTH)/content/content.gyp:content_app_both',
78         '<(DEPTH)/content/content_shell_and_tests.gyp:content_browser_test_support',
79         '<(DEPTH)/content/content_shell_and_tests.gyp:test_support_content',
80         '<(DEPTH)/device/bluetooth/bluetooth.gyp:device_bluetooth_mocks',
81         '<(DEPTH)/testing/gmock.gyp:gmock',
82         '<(DEPTH)/testing/gtest.gyp:gtest',
83       ],
84       'defines': [
85         'HAS_OUT_OF_PROC_TEST_RUNNER',
86       ],
87       'sources': [
88         '<@(extensions_browsertests_sources)',
89       ],
90       'conditions': [
91         ['OS=="win" and win_use_allocator_shim==1', {
92           'dependencies': [
93             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
94           ],
95         }],
96         ['OS=="mac"', {
97           'dependencies': [
98             'shell/app_shell.gyp:app_shell',  # Needed for App Shell.app's Helper.
99           ],
100         }],
101         # This is only here to keep gyp happy. This target never builds on
102         # mobile platforms.
103         ['OS != "ios" and OS != "android"', {
104           'dependencies': [
105             '<(DEPTH)/components/components.gyp:storage_monitor_test_support',
106           ],
107         }],
108       ]
109     },
110   ],
111   'conditions': [
112     ['test_isolation_mode != "noop"', {
113       'targets': [
114         {
115           'target_name': 'extensions_browsertests_run',
116           'type': 'none',
117           'dependencies': [
118             'extensions_browsertests',
119           ],
120           'includes': [
121             '../build/isolate.gypi',
122           ],
123           'sources': [
124             'extensions_browsertests.isolate',
125           ],
126         },
127       ],
128     }],
129   ],