summaryrefslogtreecommitdiff
path: root/chromium/ios/showcase/BUILD.gn
blob: 7a0ea0a5e36d90cc78e4ee1ff0410b46a86ac505 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# 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("//build/config/ios/rules.gni")
import("//ios/build/chrome_build.gni")
import("//ios/build/config.gni")
import("//ios/third_party/earl_grey/ios_eg_test.gni")
import("//ios/third_party/earl_grey2/ios_eg2_test.gni")

ios_app_bundle("showcase") {
  info_plist = "core/Info.plist"
  extra_substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ]
  output_name = "Showcase"
  deps = [
    ":features",
    "//ios/showcase/core:main",
  ]
  bundle_deps = [
    "//ios/chrome/credential_provider_extension:system_strings",
    "//ios/showcase/core/resources",
  ]
  assert_no_deps = ios_assert_no_deps
}

group("features") {
  deps = [
    "//ios/showcase/alert",
    "//ios/showcase/badges",
    "//ios/showcase/bubble",
    "//ios/showcase/content_suggestions",
    "//ios/showcase/credential_provider",
    "//ios/showcase/infobars",
    "//ios/showcase/omnibox_popup",
    "//ios/showcase/recent_tabs",
    "//ios/showcase/settings",
    "//ios/showcase/tab_grid",
    "//ios/showcase/text_badge_view",
    "//ios/showcase/uikit_table_view_cell",
    "//ios/showcase/widget",
  ]
}

group("all_tests") {
  testonly = true
  deps = [ ":ios_showcase_eg2tests" ]
}

ios_eg2_test_app_host("ios_showcase_eg2tests") {
  info_plist = "core/Info.plist"
  extra_substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ]
  deps = [
    ":features",
    "//ios/showcase/core:main_eg2",
    "//ios/showcase/test:eg_app_support+eg2",
    "//ios/testing/earl_grey:eg_app_support+eg2",
  ]
  bundle_deps = [
    "//ios/chrome/app/resources",
    "//ios/showcase/core/resources",
    "//ios/third_party/earl_grey2:app_framework+bundle",
    "//ios/third_party/gtx:gtx+bundle",
  ]

  assert_no_deps = ios_assert_no_deps
}

ios_eg2_test("ios_showcase_eg2tests_module") {
  xcode_test_application_name = "ios_showcase_eg2tests"

  xctest_bundle_principal_class = "ChromeEGTestBundleMain"
  deps = [
    "//ios/showcase/badges:eg2_tests",
    "//ios/showcase/bubble:eg2_tests",
    "//ios/showcase/content_suggestions:eg2_tests",
    "//ios/showcase/core:eg2_tests",
    "//ios/showcase/credential_provider:eg2_tests",
    "//ios/showcase/infobars:eg2_tests",
    "//ios/showcase/text_badge_view:eg2_tests",
  ]
  bundle_deps = [ "//ios/showcase/core/resources" ]
  data_deps = [ ":ios_showcase_eg2tests" ]
}

ios_eg_test("ios_showcase_egtests") {
  info_plist = "core/Info.plist"
  extra_substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ]
  deps = [
    ":features",
    "//ios/showcase/core:main",

    # Add all eg_tests targets below.
    "//ios/showcase/badges:eg_tests",
    "//ios/showcase/bubble:eg_tests",
    "//ios/showcase/content_suggestions:eg_tests",
    "//ios/showcase/core:eg_tests",
    "//ios/showcase/infobars:eg_tests",
    "//ios/showcase/text_badge_view:eg_tests",
  ]

  bundle_deps = [ "//ios/showcase/core/resources" ]
  assert_no_deps = ios_assert_no_deps
}