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 import("//build/config/ios/ios_sdk.gni") | 5 import("//build/config/ios/ios_sdk.gni") |
6 import("//build/config/ios/rules.gni") | 6 import("//build/config/ios/rules.gni") |
7 | 7 |
8 config("config") { | 8 config("config") { |
9 include_dirs = [ "src/EarlGrey" ] | 9 include_dirs = [ "src/EarlGrey" ] |
10 | |
11 # EarlGrey and its dependencies need to link to XCTest.framework | |
12 # that is not under $ios_sdk_path. | |
13 common_flags = [ "-F$ios_sdk_path/../../Library/Frameworks" ] | |
14 cflags_objc = common_flags | |
15 cflags_objcc = common_flags | |
16 ldflags = common_flags | |
17 } | 10 } |
18 | 11 |
19 ios_framework_bundle("earl_grey") { | 12 ios_framework_bundle("earl_grey") { |
20 output_name = "EarlGrey" | 13 output_name = "EarlGrey" |
21 info_plist = "Info.plist" | 14 info_plist = "Info.plist" |
22 | 15 |
23 testonly = true | 16 testonly = true |
24 sources = [ | 17 sources = [ |
25 "src/EarlGrey/Action/GREYAction.h", | 18 "src/EarlGrey/Action/GREYAction.h", |
26 "src/EarlGrey/Action/GREYActionBlock.h", | 19 "src/EarlGrey/Action/GREYActionBlock.h", |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 | 244 |
252 libs = [ | 245 libs = [ |
253 "CoreGraphics.framework", | 246 "CoreGraphics.framework", |
254 "Foundation.framework", | 247 "Foundation.framework", |
255 "IOKit.framework", | 248 "IOKit.framework", |
256 "QuartzCore.framework", | 249 "QuartzCore.framework", |
257 "UIKit.framework", | 250 "UIKit.framework", |
258 "XCTest.framework", | 251 "XCTest.framework", |
259 ] | 252 ] |
260 | 253 |
261 public_configs = [ ":config" ] | 254 public_configs = [ |
| 255 ":config", |
| 256 "//build/config/ios:xctest_config", |
| 257 ] |
| 258 |
262 configs += [ "//build/config/compiler:enable_arc" ] | 259 configs += [ "//build/config/compiler:enable_arc" ] |
263 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] | 260 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] |
264 configs += [ "//build/config/gcc:symbol_visibility_default" ] | 261 configs += [ "//build/config/gcc:symbol_visibility_default" ] |
265 } | 262 } |
OLD | NEW |