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

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

Issue 2351613006: Remove old iossim code (pre-Xcode 8) and class-dump. (Closed)
Patch Set: Fix comment Created 4 years, 3 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 | « DEPS ('k') | testing/iossim/iossim.mm » ('j') | 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("//third_party/class-dump/class-dump.gni")
7 6
8 if (current_toolchain == host_toolchain) { 7 if (current_toolchain == host_toolchain) {
9 config("config") { 8 config("config") {
10 visibility = [ ":iossim" ] 9 visibility = [ ":iossim" ]
11 10
12 include_dirs = [ "$root_gen_dir/iossim" ] 11 include_dirs = [ "$root_gen_dir/iossim" ]
13 12
14 # TODO(crbug.com/595295): Building class-dump tools requires OS X SDK 13 # -objectForKeyedSubscript requires 10.8 or newer. Remove this override once
15 # version 10.9 or higher. Remove this override once the global version 14 # the global version of the SDK is raised.
16 # of the SDK is raised. 15 common_flags = [ "-mmacosx-version-min=10.8" ]
17 common_flags = [ "-mmacosx-version-min=10.9" ]
18 ldflags = common_flags 16 ldflags = common_flags
19 cflags_objcc = common_flags 17 cflags_objcc = common_flags
20 } 18 }
21 19
22 executable("iossim") { 20 executable("iossim") {
23 sources = [ 21 sources = [
24 "iossim.mm", 22 "iossim.mm",
25 ] 23 ]
26 libs = [ "Foundation.framework" ] 24 libs = [ "Foundation.framework" ]
27 deps = [
28 ":generate_dvt_core_simulator",
29 ":generate_dvt_foundation_header",
30 ":generate_dvt_iphone_sim_header",
31 ]
32 configs += [ ":config" ] 25 configs += [ ":config" ]
33
34 # TODO(crbug.com/595295): Building class-dump tools requires OS X SDK
35 # version 10.9 or higher. To prevent mixing code using different value
36 # of minimum SDK supported, forbids dependencies on any Chromium target.
37 assert_no_deps = [ "//base/*" ]
38 }
39
40 class_dump("generate_dvt_core_simulator") {
41 framework_name = "CoreSimulator"
42 framework_path = "$mac_sdk_path/../../../../../Library/PrivateFrameworks"
43 class_dump_filter = "Sim"
44 }
45
46 class_dump("generate_dvt_foundation_header") {
47 framework_name = "DVTFoundation"
48 framework_path = "$mac_sdk_path/../../../../../../SharedFrameworks"
49 class_dump_filter = "DVTStackBacktrace|DVTInvalidation|DVTMixIn"
50 }
51
52 class_dump("generate_dvt_iphone_sim_header") {
53 topological_sort = true
54 framework_name = "DVTiPhoneSimulatorRemoteClient"
55 framework_path = "$mac_sdk_path/../../../../../../SharedFrameworks"
56 class_dump_filter = "iPhoneSimulator"
57 } 26 }
58 } else if (current_toolchain == default_toolchain) { 27 } else if (current_toolchain == default_toolchain) {
59 copy("iossim") { 28 copy("iossim") {
60 deps = [ 29 deps = [
61 ":iossim($host_toolchain)", 30 ":iossim($host_toolchain)",
62 ] 31 ]
63 outputs = [ 32 outputs = [
64 "$root_out_dir/iossim", 33 "$root_out_dir/iossim",
65 ] 34 ]
66 sources = [ 35 sources = [
67 get_label_info(":iossim($host_toolchain)", "root_out_dir") + "/iossim", 36 get_label_info(":iossim($host_toolchain)", "root_out_dir") + "/iossim",
68 ] 37 ]
69 } 38 }
70 } 39 }
OLDNEW
« no previous file with comments | « DEPS ('k') | testing/iossim/iossim.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698