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 import("//build/config/mac/mac_sdk.gni") |
| 6 import("//third_party/class-dump/class-dump.gni") |
| 7 |
| 8 config("config") { |
| 9 visibility = [ ":iossim" ] |
| 10 |
| 11 include_dirs = [ "$root_gen_dir/iossim" ] |
| 12 |
| 13 # 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 |
| 15 # of the SDK is raised. |
| 16 common_flags = [ "-mmacosx-version-min=10.9" ] |
| 17 ldflags = common_flags |
| 18 cflags_objcc = common_flags |
| 19 } |
| 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 } |
OLD | NEW |