rockot | ea9df2a | 2015-01-22 20:26:36 | [diff] [blame] | 1 | { |
rockot | 5354cb9d | 2015-02-11 23:54:31 | [diff] [blame] | 2 | 'includes': [ |
| 3 | 'extensions_tests.gypi', |
| 4 | ], |
rockot | ea9df2a | 2015-01-22 20:26:36 | [diff] [blame] | 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', |
jam | 05a3de4 | 2015-05-14 22:56:10 | [diff] [blame] | 26 | '../mojo/mojo_base.gyp:mojo_application_bindings', |
rockot | ea9df2a | 2015-01-22 20:26:36 | [diff] [blame] | 27 | '../mojo/mojo_base.gyp:mojo_environment_chromium', |
| 28 | '../testing/gmock.gyp:gmock', |
| 29 | '../testing/gtest.gyp:gtest', |
| 30 | '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', |
| 31 | '../third_party/mojo/mojo_edk.gyp:mojo_js_lib', |
| 32 | '../third_party/mojo/mojo_edk.gyp:mojo_system_impl', |
| 33 | '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings', |
| 34 | 'common/api/api.gyp:cast_channel_proto', |
jamescook | f112ccd | 2015-02-06 18:06:33 | [diff] [blame] | 35 | 'extensions.gyp:extensions_browser', |
rockot | ea9df2a | 2015-01-22 20:26:36 | [diff] [blame] | 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': [ |
rockot | 5354cb9d | 2015-02-11 23:54:31 | [diff] [blame] | 49 | '<@(extensions_unittests_sources)', |
rockot | ea9df2a | 2015-01-22 20:26:36 | [diff] [blame] | 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 | }], |
sudarsana.nagineni | dc80f4b7 | 2015-02-09 14:12:47 | [diff] [blame] | 59 | ['chromeos==1', { |
| 60 | 'dependencies': [ |
| 61 | '<(DEPTH)/chromeos/chromeos.gyp:chromeos_test_support', |
| 62 | ], |
| 63 | }], |
rockot | ea9df2a | 2015-01-22 20:26:36 | [diff] [blame] | 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', |
fsamuel | af5bf6d1 | 2015-05-28 16:29:54 | [diff] [blame^] | 75 | '<(DEPTH)/components/components.gyp:guest_view_browser', |
| 76 | '<(DEPTH)/components/components.gyp:guest_view_renderer', |
fsamuel | 8dfa19a | 2015-05-05 01:00:39 | [diff] [blame] | 77 | '<(DEPTH)/components/components.gyp:guest_view_test_support', |
rockot | ea9df2a | 2015-01-22 20:26:36 | [diff] [blame] | 78 | '<(DEPTH)/content/content.gyp:content_app_both', |
| 79 | '<(DEPTH)/content/content_shell_and_tests.gyp:content_browser_test_support', |
| 80 | '<(DEPTH)/content/content_shell_and_tests.gyp:test_support_content', |
jamescook | 49fec4b4 | 2015-02-06 19:57:19 | [diff] [blame] | 81 | '<(DEPTH)/device/bluetooth/bluetooth.gyp:device_bluetooth_mocks', |
reillyg | cf9be26 | 2015-05-14 16:06:06 | [diff] [blame] | 82 | '<(DEPTH)/device/usb/usb.gyp:device_usb_mocks', |
rockot | ea9df2a | 2015-01-22 20:26:36 | [diff] [blame] | 83 | '<(DEPTH)/testing/gmock.gyp:gmock', |
| 84 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 85 | ], |
| 86 | 'defines': [ |
| 87 | 'HAS_OUT_OF_PROC_TEST_RUNNER', |
| 88 | ], |
| 89 | 'sources': [ |
rockot | 5354cb9d | 2015-02-11 23:54:31 | [diff] [blame] | 90 | '<@(extensions_browsertests_sources)', |
rockot | ea9df2a | 2015-01-22 20:26:36 | [diff] [blame] | 91 | ], |
| 92 | 'conditions': [ |
| 93 | ['OS=="win" and win_use_allocator_shim==1', { |
| 94 | 'dependencies': [ |
| 95 | '<(DEPTH)/base/allocator/allocator.gyp:allocator', |
| 96 | ], |
| 97 | }], |
| 98 | ['OS=="mac"', { |
| 99 | 'dependencies': [ |
| 100 | 'shell/app_shell.gyp:app_shell', # Needed for App Shell.app's Helper. |
| 101 | ], |
| 102 | }], |
| 103 | # This is only here to keep gyp happy. This target never builds on |
| 104 | # mobile platforms. |
| 105 | ['OS != "ios" and OS != "android"', { |
| 106 | 'dependencies': [ |
| 107 | '<(DEPTH)/components/components.gyp:storage_monitor_test_support', |
| 108 | ], |
| 109 | }], |
| 110 | ] |
| 111 | }, |
| 112 | ], |
scottmg | 2e25142 | 2015-01-27 02:40:36 | [diff] [blame] | 113 | 'conditions': [ |
| 114 | ['test_isolation_mode != "noop"', { |
| 115 | 'targets': [ |
| 116 | { |
| 117 | 'target_name': 'extensions_browsertests_run', |
| 118 | 'type': 'none', |
| 119 | 'dependencies': [ |
| 120 | 'extensions_browsertests', |
| 121 | ], |
| 122 | 'includes': [ |
| 123 | '../build/isolate.gypi', |
| 124 | ], |
| 125 | 'sources': [ |
| 126 | 'extensions_browsertests.isolate', |
| 127 | ], |
| 128 | }, |
| 129 | ], |
| 130 | }], |
| 131 | ], |
rockot | ea9df2a | 2015-01-22 20:26:36 | [diff] [blame] | 132 | } |