blob: 9f0191e3f151ad055acdd8d2fd63fac423959408 [file] [log] [blame]
# 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.
import("//ios/third_party/features.gni")
import("//remoting/build/config/remoting_build.gni")
import("//remoting/remoting_locales.gni")
group("all") {
testonly = true
deps = [
":ios_core",
"app:all",
]
}
group("all_test") {
testonly = true
deps = [ ":ios_core_unit_tests" ]
}
source_set("ios_core") {
sources = [
"client_gestures.h",
"client_gestures.mm",
"client_keyboard.h",
"client_keyboard.mm",
]
public_deps = [
"//remoting/ios/domain",
"//remoting/ios/facade",
"//remoting/ios/session",
"//third_party/webrtc_overrides:webrtc_component",
]
deps = [
"//base",
"//remoting/protocol",
]
libs = [
"CoreGraphics.framework",
"GLKit.framework",
"OpenGLES.framework",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("ios_core_unit_tests") {
testonly = true
include_dirs = [
"$root_gen_dir",
"//third_party/protobuf/src",
]
sources = []
deps = [
":ios_core",
"//testing/gtest",
]
configs += [ "//build/config/compiler:enable_arc" ]
data = []
}
# test
test("ios_remoting_unittests") {
deps = [
"//base/test:run_all_unittests",
"//base/test:test_support",
"//remoting/ios/audio:unit_tests",
"//remoting/ios/facade:unit_tests",
"//remoting/ios/persistence:unit_tests",
]
foreach(locale, remoting_locales_with_underscores) {
deps += [ ":unittests_locale_${locale}_bundle_data" ]
}
if (ios_third_party_material_components_built_as_framework) {
deps += [
"//ios/third_party/material_components_ios:material_components_ios+link",
]
bundle_deps = [ "//ios/third_party/material_components_ios:material_components_ios+bundle" ]
}
}
foreach(locale, remoting_locales_with_underscores) {
bundle_data("unittests_locale_${locale}_bundle_data") {
sources = [ "$root_out_dir/remoting/resources/$locale.lproj/locale.pak" ]
outputs = [ "{{bundle_resources_dir}}/$locale.lproj/{{source_file_part}}" ]
public_deps = [ "//remoting/resources:copy_locales" ]
}
}