OLD | NEW |
---|---|
(Empty) | |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'variables': { | |
7 'chromium_code': 1, | |
8 }, | |
9 'targets': [ | |
10 { | |
11 'variables': { | |
12 'conditions': [ | |
13 # TODO(crbug.com/595358): Remove 'xcode' condition when ninja is | |
14 # default builder. | |
15 ['"<(GENERATOR)"=="xcode" and "<(GENERATOR_FLAVOR)"!="ninja"', { | |
16 'test_host': '${BUILT_PRODUCTS_DIR}/ios_web_shell.app/ios_web_shell' , | |
sdefresne
2016/03/25 21:26:16
I think this should be "$(BUILD_PRODUCTS_DIR)" sin
justincohen
2016/03/25 22:53:38
I already removed this.
| |
17 }, { # GENERATOR != xcode | |
18 'test_host': 'ios_web_shell.app/ios_web_shell', | |
19 }], | |
20 ], | |
21 }, | |
22 'target_name': 'ios_web_shell_test', | |
23 'type': 'loadable_module', | |
24 'mac_xctest_bundle': 1, | |
25 'dependencies': [ | |
26 '../third_party/earl_grey/earl_grey.gyp:EarlGrey', | |
27 'ios_web_shell.gyp:ios_web_shell', | |
28 ], | |
29 'sources': [ | |
30 'shell/test/web_shell_navigation_egtest.mm', | |
31 ], | |
32 'xcode_settings': { | |
33 'WRAPPER_EXTENSION': 'xctest', | |
34 'TEST_HOST': '<(test_host)', | |
35 'BUNDLE_LOADER': '$(TEST_HOST)', | |
36 'conditions':[ | |
37 ['"<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ninja"', { | |
38 'OTHER_LDFLAGS': [ | |
39 '-bundle_loader <@(test_host)', | |
40 ], | |
41 }], | |
42 ], | |
43 }, | |
44 'link_settings': { | |
45 'libraries': [ | |
46 'CoreGraphics.framework', | |
47 'Foundation.framework', | |
48 'QuartzCore.framework', | |
49 'UIKit.framework', | |
50 'XCTest.framework', | |
51 ], | |
52 }, | |
53 }, | |
54 ], | |
55 } | |
OLD | NEW |