Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: ios/web/ios_web_shell_tests.gyp

Issue 1891583003: Allow xctests to embed themselves in their TEST_HOST for Xcode 7.3 support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'conditions': [ 9 'conditions': [
10 # The iOS frameworks being built for ios_web_shell_test require certs which 10 # The iOS frameworks being built for ios_web_shell_test require certs which
11 # bots do not currently have installed. Ninja allows this, Xcode does not. 11 # bots do not currently have installed. Ninja allows this, Xcode does not.
12 ['"<(GENERATOR)"=="ninja" or "<(GENERATOR_FLAVOR)"=="ninja"', { 12 ['"<(GENERATOR)"=="ninja" or "<(GENERATOR_FLAVOR)"=="ninja"', {
13 'targets': [ 13 'targets': [
14 { 14 {
15 'variables': { 15 'variables': {
16 'test_host': 'ios_web_shell.app/ios_web_shell', 16 'test_host': 'ios_web_shell.app/ios_web_shell',
17 'test_host_name': 'ios_web_shell',
17 }, 18 },
18 'target_name': 'ios_web_shell_test', 19 'target_name': 'ios_web_shell_test',
19 'type': 'loadable_module', 20 'type': 'loadable_module',
20 'mac_xctest_bundle': 1, 21 'mac_xctest_bundle': 1,
21 'dependencies': [ 22 'dependencies': [
22 '../third_party/earl_grey/earl_grey.gyp:EarlGrey', 23 '../third_party/earl_grey/earl_grey.gyp:EarlGrey',
23 'ios_web_shell.gyp:ios_web_shell', 24 'ios_web_shell.gyp:ios_web_shell',
24 ], 25 ],
25 'sources': [ 26 'sources': [
26 'shell/test/web_shell_navigation_egtest.mm', 27 'shell/test/web_shell_navigation_egtest.mm',
27 ], 28 ],
28 'xcode_settings': { 29 'xcode_settings': {
29 'WRAPPER_EXTENSION': 'xctest', 30 'WRAPPER_EXTENSION': 'xctest',
30 'TEST_HOST': '<(test_host)', 31 'TEST_HOST': '$(CONFIGURATION_BUILD_DIR)/<(test_host)',
31 'BUNDLE_LOADER': '$(TEST_HOST)', 32 'BUNDLE_LOADER': '$(TEST_HOST)',
32 'conditions':[ 33 'conditions':[
33 ['"<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ninja"', { 34 ['"<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ninja"', {
34 'OTHER_LDFLAGS': [ 35 'OTHER_LDFLAGS': [
35 '-bundle_loader <@(test_host)', 36 '-bundle_loader <@(test_host)',
36 ], 37 ],
37 }], 38 }],
38 ], 39 ],
39 }, 40 },
40 'link_settings': { 41 'link_settings': {
41 'libraries': [ 42 'libraries': [
42 'CoreGraphics.framework', 43 'CoreGraphics.framework',
43 'Foundation.framework', 44 'Foundation.framework',
44 'QuartzCore.framework', 45 'QuartzCore.framework',
45 'UIKit.framework', 46 'UIKit.framework',
46 'XCTest.framework', 47 'XCTest.framework',
47 ], 48 ],
48 }, 49 },
50 'postbuilds': [
51 {
52 'postbuild_name': 'Copy xctest to TEST_HOST',
53 'action': [
54 'ditto',
55 '${BUILT_PRODUCTS_DIR}/ios_web_shell_test.xctest',
baxley 2016/04/14 21:48:49 are there two copies of xctest to make sure it wor
56 '${BUILT_PRODUCTS_DIR}/<(test_host_name).app/PlugIns/ios_web_she ll_test.xctest',
57 ],
58 },
59 ],
49 }, 60 },
50 ], 61 ],
51 }, { # GENERATOR == ninja or GENERATOR_FLAVOR == ninja 62 }, { # GENERATOR == ninja or GENERATOR_FLAVOR == ninja
52 'targets': [ 63 'targets': [
53 { 64 {
54 # The iOS frameworks being built for ios_web_shell_test require certs 65 # The iOS frameworks being built for ios_web_shell_test require certs
55 # which bot do not currently have installed. Ninja allows this, Xcode 66 # which bot do not currently have installed. Ninja allows this, Xcode
56 # does not. 67 # does not.
57 'target_name': 'ios_web_shell_test', 68 'target_name': 'ios_web_shell_test',
58 'type': 'none', 69 'type': 'none',
59 }, 70 },
60 ], 71 ],
61 }], 72 }],
62 ], 73 ],
63 } 74 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698