blob: 739064a68ea25ff972851e5b427dbe0fdcf81270 [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.
source_set("core") {
sources = [
"app_delegate.h",
"app_delegate.mm",
"showcase_model.h",
"showcase_model.mm",
"showcase_view_controller.h",
"showcase_view_controller.mm",
]
deps = [
"//base",
"//base:i18n",
"//ios/chrome/browser/ui/util",
"//ios/showcase/common",
"//ios/third_party/material_components_ios",
"//ui/base",
]
libs = [ "UIKit.framework" ]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("main_eg2") {
testonly = true
sources = [
"main.mm",
]
deps = [
":core",
"//base",
"//ios/chrome/browser/ui/settings",
"//ios/chrome/browser/ui/toolbar/keyboard_assist",
# Needed to disable the tests hooks.
"//ios/chrome/test/earl_grey:hooks",
# Needed for including ios/chrome/browser/ui.
"//ios/chrome/browser/tabs:tabs_internal",
]
libs = [ "UIKit.framework" ]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("main") {
sources = [
"main.mm",
]
deps = [
":core",
"//base",
"//ios/chrome/browser/ui/settings",
"//ios/chrome/browser/ui/toolbar/keyboard_assist",
# Needed to disable the tests hooks.
"//ios/chrome/app:tests_fake_hook",
# Needed for including ios/chrome/browser/ui.
"//ios/chrome/browser/tabs:tabs_internal",
]
libs = [ "UIKit.framework" ]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("eg_tests") {
defines = [ "CHROME_EARL_GREY_1" ]
testonly = true
sources = [
"showcase_egtest.mm",
]
deps = [
"//ios/showcase/test",
"//ios/testing/earl_grey:earl_grey_support",
"//ios/third_party/earl_grey:earl_grey+link",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("eg2_tests") {
defines = [ "CHROME_EARL_GREY_2" ]
configs += [
"//build/config/compiler:enable_arc",
"//build/config/ios:xctest_config",
]
testonly = true
sources = [
"showcase_egtest.mm",
]
deps = [
"//ios/chrome/test/earl_grey:eg_test_support+eg2",
"//ios/showcase/test:eg2_test",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ios/third_party/earl_grey2:test_lib",
]
libs = [ "UIKit.framework" ]
}