| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//extensions/extensions.gni") | 6 import("//extensions/extensions.gni") |
| 7 import("//mojo/public/tools/bindings/mojom.gni") | 7 import("//mojo/public/tools/bindings/mojom.gni") |
| 8 | 8 |
| 9 # GYP version: extensions/extensions.gyp:extensions_common_constants | |
| 10 source_set("common_constants") { | 9 source_set("common_constants") { |
| 11 sources = | 10 sources = |
| 12 rebase_path(extensions_gypi_values.extensions_common_constants_sources, | 11 rebase_path(extensions_gypi_values.extensions_common_constants_sources, |
| 13 ".", | 12 ".", |
| 14 "//extensions") | 13 "//extensions") |
| 15 | 14 |
| 16 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 15 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 17 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 16 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 18 } | 17 } |
| 19 | 18 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 48 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 47 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 49 "//build/config/compiler:no_size_t_to_int_warning", | 48 "//build/config/compiler:no_size_t_to_int_warning", |
| 50 ] | 49 ] |
| 51 | 50 |
| 52 public_deps = [ | 51 public_deps = [ |
| 53 ":common_constants", | 52 ":common_constants", |
| 54 ":mojo", | 53 ":mojo", |
| 55 ] | 54 ] |
| 56 | 55 |
| 57 deps = [ | 56 deps = [ |
| 57 "//base", |
| 58 |
| 58 # TODO(benwells): figure out what to do with the api target and | 59 # TODO(benwells): figure out what to do with the api target and |
| 59 # api resources compiled into the chrome resource bundle. | 60 # api resources compiled into the chrome resource bundle. |
| 60 # http://crbug.com/162530 | 61 # http://crbug.com/162530 |
| 61 "//chrome:resources", | 62 "//chrome:resources", |
| 62 "//components/crx_file", | 63 "//components/crx_file", |
| 63 "//components/url_matcher", | 64 "//components/url_matcher", |
| 64 "//content/public/common", | 65 "//content/public/common", |
| 65 "//crypto", | 66 "//crypto", |
| 66 "//device/bluetooth", | 67 "//device/bluetooth", |
| 67 "//device/usb", | 68 "//device/usb", |
| (...skipping 15 matching lines...) Expand all Loading... |
| 83 ] | 84 ] |
| 84 | 85 |
| 85 if (enable_nacl) { | 86 if (enable_nacl) { |
| 86 nacl_sources = | 87 nacl_sources = |
| 87 rebase_path(extensions_gypi_values.extensions_common_sources_nacl, | 88 rebase_path(extensions_gypi_values.extensions_common_sources_nacl, |
| 88 ".", | 89 ".", |
| 89 "//extensions") | 90 "//extensions") |
| 90 sources += nacl_sources | 91 sources += nacl_sources |
| 91 } | 92 } |
| 92 } | 93 } |
| 94 |
| 95 source_set("unit_tests") { |
| 96 testonly = true |
| 97 sources = [ |
| 98 "api/declarative/declarative_manifest_unittest.cc", |
| 99 "api/printer_provider/usb_printer_manifest_unittest.cc", |
| 100 "api/sockets/sockets_manifest_permission_unittest.cc", |
| 101 "csp_validator_unittest.cc", |
| 102 "event_filter_unittest.cc", |
| 103 "extension_l10n_util_unittest.cc", |
| 104 "extension_messages_unittest.cc", |
| 105 "extension_resource_unittest.cc", |
| 106 "extension_set_unittest.cc", |
| 107 "features/base_feature_provider_unittest.cc", |
| 108 "features/complex_feature_unittest.cc", |
| 109 "features/simple_feature_unittest.cc", |
| 110 "file_util_unittest.cc", |
| 111 "image_util_unittest.cc", |
| 112 "manifest_handler_unittest.cc", |
| 113 "manifest_handlers/content_capabilities_manifest_unittest.cc", |
| 114 "manifest_handlers/default_locale_manifest_unittest.cc", |
| 115 "manifest_handlers/externally_connectable_unittest.cc", |
| 116 "manifest_handlers/file_handler_manifest_unittest.cc", |
| 117 "manifest_handlers/icons_handler_unittest.cc", |
| 118 "manifest_handlers/incognito_manifest_unittest.cc", |
| 119 "manifest_handlers/kiosk_mode_info_unittest.cc", |
| 120 "manifest_handlers/oauth2_manifest_unittest.cc", |
| 121 "manifest_handlers/shared_module_manifest_unittest.cc", |
| 122 "message_bundle_unittest.cc", |
| 123 "one_shot_event_unittest.cc", |
| 124 "permissions/api_permission_set_unittest.cc", |
| 125 "permissions/manifest_permission_set_unittest.cc", |
| 126 "permissions/socket_permission_unittest.cc", |
| 127 "permissions/usb_device_permission_unittest.cc", |
| 128 "stack_frame_unittest.cc", |
| 129 "update_manifest_unittest.cc", |
| 130 "url_pattern_set_unittest.cc", |
| 131 "url_pattern_unittest.cc", |
| 132 "user_script_unittest.cc", |
| 133 "value_builder_unittest.cc", |
| 134 ] |
| 135 |
| 136 deps = [ |
| 137 ":common", |
| 138 "//base", |
| 139 "//base:i18n", |
| 140 "//base/test:test_support", |
| 141 "//components/crx_file", |
| 142 "//device/usb", |
| 143 "//extensions:extensions_resources", |
| 144 |
| 145 # TODO(brettw) these tests should not be including headers from browser. |
| 146 "//extensions:test_support", |
| 147 "//extensions/browser", |
| 148 "//extensions/strings", |
| 149 "//ipc", |
| 150 "//testing/gmock", |
| 151 "//testing/gtest", |
| 152 "//ui/base", |
| 153 "//ui/gfx", |
| 154 "//url", |
| 155 ] |
| 156 } |
| 93 } # enable_extensions | 157 } # enable_extensions |
| OLD | NEW |