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 'conditions': [ |
| 10 # The iOS frameworks being built for ios_web_shell_test require certs which |
| 11 # bot do not currently have installed. Ninja allows this, Xcode does not. |
| 12 ['"<(GENERATOR)"=="ninja"', { |
| 13 'targets': [ |
| 14 { |
| 15 'variables': { |
| 16 'test_host': 'ios_web_shell.app/ios_web_shell', |
| 17 }, |
| 18 'target_name': 'ios_web_shell_test', |
| 19 'type': 'loadable_module', |
| 20 'mac_xctest_bundle': 1, |
| 21 'dependencies': [ |
| 22 '../third_party/earl_grey/earl_grey.gyp:EarlGrey', |
| 23 'ios_web_shell.gyp:ios_web_shell', |
| 24 ], |
| 25 'sources': [ |
| 26 'shell/test/web_shell_navigation_egtest.mm', |
| 27 ], |
| 28 'xcode_settings': { |
| 29 'WRAPPER_EXTENSION': 'xctest', |
| 30 'TEST_HOST': '<(test_host)', |
| 31 'BUNDLE_LOADER': '$(TEST_HOST)', |
| 32 'conditions':[ |
| 33 ['"<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ninja"', { |
| 34 'OTHER_LDFLAGS': [ |
| 35 '-bundle_loader <@(test_host)', |
| 36 ], |
| 37 }], |
| 38 ], |
| 39 }, |
| 40 'link_settings': { |
| 41 'libraries': [ |
| 42 'CoreGraphics.framework', |
| 43 'Foundation.framework', |
| 44 'QuartzCore.framework', |
| 45 'UIKit.framework', |
| 46 'XCTest.framework', |
| 47 ], |
| 48 }, |
| 49 }, |
| 50 ], |
| 51 }, { # GENERATOR != ninja |
| 52 'targets': [ |
| 53 { |
| 54 # The iOS frameworks being built for ios_web_shell_test require certs |
| 55 # which bot do not currently have installed. Ninja allows this, Xcode |
| 56 # does not. |
| 57 'target_name': 'ios_web_shell_test', |
| 58 'type': 'none', |
| 59 }, |
| 60 ], |
| 61 }], |
| 62 ], |
| 63 } |
OLD | NEW |