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

Side by Side Diff: testing/iossim/BUILD.gn

Issue 1882843002: [GN/iOS] Create a symlink to iossim for compatibility with gyp. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-iossim
Patch Set: Rebase 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 | « build/config/ios/rules.gni ('k') | 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 import("//build/config/mac/mac_sdk.gni") 5 import("//build/config/mac/mac_sdk.gni")
6 import("//build/symlink.gni")
6 import("//third_party/class-dump/class-dump.gni") 7 import("//third_party/class-dump/class-dump.gni")
7 8
8 config("config") { 9 if (current_toolchain == host_toolchain) {
9 visibility = [ ":iossim" ] 10 config("config") {
11 visibility = [ ":iossim" ]
10 12
11 include_dirs = [ "$root_gen_dir/iossim" ] 13 include_dirs = [ "$root_gen_dir/iossim" ]
12 14
13 # TODO(crbug.com/595295): Building class-dump tools requires OS X SDK 15 # TODO(crbug.com/595295): Building class-dump tools requires OS X SDK
14 # version 10.9 or higher. Remove this override once the global version 16 # version 10.9 or higher. Remove this override once the global version
15 # of the SDK is raised. 17 # of the SDK is raised.
16 common_flags = [ "-mmacosx-version-min=10.9" ] 18 common_flags = [ "-mmacosx-version-min=10.9" ]
17 ldflags = common_flags 19 ldflags = common_flags
18 cflags_objcc = common_flags 20 cflags_objcc = common_flags
21 }
22
23 executable("iossim") {
24 sources = [
25 "iossim.mm",
26 ]
27 libs = [ "Foundation.framework" ]
28 deps = [
29 ":generate_dvt_core_simulator",
30 ":generate_dvt_foundation_header",
31 ":generate_dvt_iphone_sim_header",
32 ]
33 configs += [ ":config" ]
34
35 # TODO(crbug.com/595295): Building class-dump tools requires OS X SDK
36 # version 10.9 or higher. To prevent mixing code using different value
37 # of minimum SDK supported, forbids dependencies on any Chromium target.
38 assert_no_deps = [ "//base/*" ]
39 }
40
41 class_dump("generate_dvt_core_simulator") {
42 framework_name = "CoreSimulator"
43 framework_path = "$mac_sdk_path/../../../../../Library/PrivateFrameworks"
44 class_dump_filter = "Sim"
45 }
46
47 class_dump("generate_dvt_foundation_header") {
48 framework_name = "DVTFoundation"
49 framework_path = "$mac_sdk_path/../../../../../../SharedFrameworks"
50 class_dump_filter = "DVTStackBacktrace|DVTInvalidation|DVTMixIn"
51 }
52
53 class_dump("generate_dvt_iphone_sim_header") {
54 topological_sort = true
55 framework_name = "DVTiPhoneSimulatorRemoteClient"
56 framework_path = "$mac_sdk_path/../../../../../../SharedFrameworks"
57 class_dump_filter = "iPhoneSimulator"
58 }
59 } else if (current_toolchain == default_toolchain) {
60 binary_symlink("iossim") {
61 # This creates an 'iossim' target in root_build_dir for compatibility
62 # with GYP and the test scripts.
63 binary_label = ":iossim($host_toolchain)"
64 }
19 } 65 }
20
21 executable("iossim") {
22 sources = [
23 "iossim.mm",
24 ]
25 libs = [ "Foundation.framework" ]
26 deps = [
27 ":generate_dvt_core_simulator",
28 ":generate_dvt_foundation_header",
29 ":generate_dvt_iphone_sim_header",
30 ]
31 configs += [ ":config" ]
32
33 # TODO(crbug.com/595295): Building class-dump tools requires OS X SDK
34 # version 10.9 or higher. To prevent mixing code using different value
35 # of minimum SDK supported, forbids dependencies on any Chromium target.
36 assert_no_deps = [ "//base/*" ]
37 }
38
39 class_dump("generate_dvt_core_simulator") {
40 framework_name = "CoreSimulator"
41 framework_path = "$mac_sdk_path/../../../../../Library/PrivateFrameworks"
42 class_dump_filter = "Sim"
43 }
44
45 class_dump("generate_dvt_foundation_header") {
46 framework_name = "DVTFoundation"
47 framework_path = "$mac_sdk_path/../../../../../../SharedFrameworks"
48 class_dump_filter = "DVTStackBacktrace|DVTInvalidation|DVTMixIn"
49 }
50
51 class_dump("generate_dvt_iphone_sim_header") {
52 topological_sort = true
53 framework_name = "DVTiPhoneSimulatorRemoteClient"
54 framework_path = "$mac_sdk_path/../../../../../../SharedFrameworks"
55 class_dump_filter = "iPhoneSimulator"
56 }
OLDNEW
« no previous file with comments | « build/config/ios/rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698