OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 source_set("core") { | 5 source_set("core") { |
6 sources = [ | 6 sources = [ |
7 "app_delegate.h", | 7 "app_delegate.h", |
8 "app_delegate.mm", | 8 "app_delegate.mm", |
9 "showcase_model.h", | 9 "showcase_model.h", |
10 "showcase_model.mm", | 10 "showcase_model.mm", |
11 "showcase_view_controller.h", | 11 "showcase_view_controller.h", |
12 "showcase_view_controller.mm", | 12 "showcase_view_controller.mm", |
13 ] | 13 ] |
14 deps = [ | 14 deps = [ |
15 "//base", | 15 "//base", |
16 "//ios/showcase/common", | 16 "//ios/showcase/common", |
17 ] | 17 ] |
18 libs = [ "UIKit.framework" ] | 18 libs = [ "UIKit.framework" ] |
19 configs += [ "//build/config/compiler:enable_arc" ] | 19 configs += [ "//build/config/compiler:enable_arc" ] |
20 } | 20 } |
21 | 21 |
22 source_set("main") { | 22 source_set("main") { |
23 sources = [ | 23 sources = [ |
24 "main.mm", | 24 "main.mm", |
25 ] | 25 ] |
26 deps = [ | 26 deps = [ |
27 ":core", | 27 ":core", |
| 28 |
| 29 # Needed to disable the tests hooks. |
| 30 "//ios/chrome/app:tests_fake_hook", |
| 31 |
| 32 # Needed for including ios/chrome/browser/ui |
| 33 "//ios/chrome/browser/tabs:tabs_internal", |
| 34 "//ios/chrome/browser/ui:ui_internal", |
28 ] | 35 ] |
29 libs = [ "UIKit.framework" ] | 36 libs = [ "UIKit.framework" ] |
30 configs += [ "//build/config/compiler:enable_arc" ] | 37 configs += [ "//build/config/compiler:enable_arc" ] |
31 } | 38 } |
32 | 39 |
33 source_set("eg_tests") { | 40 source_set("eg_tests") { |
34 testonly = true | 41 testonly = true |
35 sources = [ | 42 sources = [ |
36 "showcase_egtest.mm", | 43 "showcase_egtest.mm", |
37 ] | 44 ] |
38 deps = [ | 45 deps = [ |
39 "//ios/showcase/test", | 46 "//ios/showcase/test", |
40 "//ios/third_party/earl_grey", | 47 "//ios/third_party/earl_grey", |
41 ] | 48 ] |
42 configs += [ "//build/config/compiler:enable_arc" ] | 49 configs += [ "//build/config/compiler:enable_arc" ] |
43 } | 50 } |
OLD | NEW |