• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build/config/ios/templates/ios_app_bundle.gni")
6import("//build/config/ios/templates/storyboards.gni")
7
8ios_app_bundle("hello") {
9  output_name = "Hello"
10
11  info_plist = "resources/Info.plist"
12
13  sources = [
14    "AppDelegate.h",
15    "AppDelegate.m",
16    "SceneDelegate.h",
17    "SceneDelegate.m",
18    "ViewController.h",
19    "ViewController.m",
20    "main.m",
21  ]
22
23  frameworks = [
24    "CoreGraphics.framework",
25    "Foundation.framework",
26    "UIKit.framework",
27  ]
28
29  deps = [
30    ":foo",
31    ":storyboards",
32    "//shared:hello_framework",
33    "//shared:hello_framework+bundle",
34  ]
35}
36
37storyboards("storyboards") {
38  sources = [
39    "resources/LaunchScreen.storyboard",
40    "resources/Main.storyboard",
41  ]
42}
43
44source_set("baz") {
45  module_name = "Baz"
46  sources = [ "Baz.swift" ]
47}
48
49source_set("bar") {
50  module_name = "Bar"
51  sources = [ "Bar.swift" ]
52  deps = [ ":baz" ]
53}
54
55group("bar_indirect") {
56  public_deps = [ ":bar" ]
57}
58
59source_set("foo") {
60  module_name = "Foo"
61  bridge_header = "Foo-Bridging-Header.h"
62  sources = [
63    "Foo.swift",
64    "FooWrapper.swift",
65  ]
66  deps = [ ":bar_indirect" ]
67}
68