naiveproxy/ios/chrome/browser/geolocation/BUILD.gn

93 lines
2.3 KiB
Plaintext
Raw Normal View History

2018-08-11 08:35:24 +03:00
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("geolocation") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"CLLocation+OmniboxGeolocation.h",
"CLLocation+OmniboxGeolocation.mm",
"CLLocation+XGeoHeader.h",
"CLLocation+XGeoHeader.mm",
"location_manager+Testing.h",
"location_manager.h",
"location_manager.mm",
"omnibox_geolocation_authorization_alert.h",
"omnibox_geolocation_authorization_alert.mm",
"omnibox_geolocation_config.h",
"omnibox_geolocation_config.mm",
"omnibox_geolocation_local_state.h",
"omnibox_geolocation_local_state.mm",
]
deps = [
"//base",
"//components/prefs",
"//components/strings",
"//ios/chrome/app:tests_hook",
"//ios/chrome/app/strings",
"//ios/chrome/browser",
"//ios/chrome/browser/ui/util",
"//ios/public/provider/chrome/browser",
"//third_party/google_toolbox_for_mac",
"//ui/base",
"//url",
]
libs = [ "CoreLocation.framework" ]
}
source_set("test_support") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
sources = [
"test_location_manager.h",
"test_location_manager.mm",
]
deps = [
":geolocation",
"//base",
]
}
source_set("unit_tests") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
sources = [
"CLLocation+XGeoHeaderTest.mm",
"location_manager_unittest.mm",
"omnibox_geolocation_local_state_unittest.mm",
]
deps = [
":geolocation",
"//base",
"//components/prefs:test_support",
"//ios/chrome/test:test_support",
"//ios/public/provider/chrome/browser",
"//testing/gtest",
"//third_party/ocmock",
]
}
source_set("geolocation_internal") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"omnibox_geolocation_controller+Testing.h",
"omnibox_geolocation_controller.h",
"omnibox_geolocation_controller.mm",
]
deps = [
":geolocation",
"//base",
"//components/google/core/browser",
"//components/version_info",
"//ios/chrome/browser/browser_state",
"//ios/chrome/browser/tabs",
"//ios/web",
"//ui/base",
"//url",
]
libs = [
"CoreLocation.framework",
"UIKit.framework",
]
}