Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 # TODO(crbug.com/595295): Building class-dump tools requires OS X SDK |
| 15 # version 10.9 or higher. Remove this override once the global version | 14 # version 10.9 or higher. Remove this override once the global version |
| 16 # of the SDK is raised. | 15 # of the SDK is raised. |
| 17 common_flags = [ "-mmacosx-version-min=10.9" ] | 16 common_flags = [ "-mmacosx-version-min=10.8" ] |
|
sdefresne
2016/09/20 08:09:53
I guess that you tried to compile with 10.7 and th
justincohen
2016/09/20 20:55:21
Done.
| |
| 18 ldflags = common_flags | 17 ldflags = common_flags |
| 19 cflags_objcc = common_flags | 18 cflags_objcc = common_flags |
| 20 } | 19 } |
| 21 | 20 |
| 22 executable("iossim") { | 21 executable("iossim") { |
| 23 sources = [ | 22 sources = [ |
| 24 "iossim.mm", | 23 "iossim.mm", |
| 25 ] | 24 ] |
| 26 libs = [ "Foundation.framework" ] | 25 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" ] | 26 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 } | 27 } |
| 58 } else if (current_toolchain == default_toolchain) { | 28 } else if (current_toolchain == default_toolchain) { |
| 59 copy("iossim") { | 29 copy("iossim") { |
| 60 deps = [ | 30 deps = [ |
| 61 ":iossim($host_toolchain)", | 31 ":iossim($host_toolchain)", |
| 62 ] | 32 ] |
| 63 outputs = [ | 33 outputs = [ |
| 64 "$root_out_dir/iossim", | 34 "$root_out_dir/iossim", |
| 65 ] | 35 ] |
| 66 sources = [ | 36 sources = [ |
| 67 get_label_info(":iossim($host_toolchain)", "root_out_dir") + "/iossim", | 37 get_label_info(":iossim($host_toolchain)", "root_out_dir") + "/iossim", |
| 68 ] | 38 ] |
| 69 } | 39 } |
| 70 } | 40 } |
| OLD | NEW |