summaryrefslogtreecommitdiffstats
path: root/testing/iossim
diff options
context:
space:
mode:
authorsdefresne <sdefresne@chromium.org>2016-03-17 03:56:41 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-17 10:58:17 +0000
commiteebcd9484c2ef7eb4ad8199734f8d98a8e3c07d6 (patch)
treeb86b8faf717ecd63b3ee82bb5dc95a3ad94ddefe /testing/iossim
parent6822f0065149ca5a1fba8e903203df481e356457 (diff)
downloadchromium_src-eebcd9484c2ef7eb4ad8199734f8d98a8e3c07d6.zip
chromium_src-eebcd9484c2ef7eb4ad8199734f8d98a8e3c07d6.tar.gz
chromium_src-eebcd9484c2ef7eb4ad8199734f8d98a8e3c07d6.tar.bz2
Add testing/iossim/BUILD.gn to build iossim as host for iOS build.
Remove some dead const variables flagged as such by clang (instead of deactivating the compiler warning as the change was simple). TBR=rohitrao@chromium.org BUG=594519 Review URL: https://codereview.chromium.org/1797253002 Cr-Commit-Position: refs/heads/master@{#381690}
Diffstat (limited to 'testing/iossim')
-rw-r--r--testing/iossim/BUILD.gn56
-rw-r--r--testing/iossim/iossim.gyp1
2 files changed, 57 insertions, 0 deletions
diff --git a/testing/iossim/BUILD.gn b/testing/iossim/BUILD.gn
new file mode 100644
index 0000000..a31fdcb
--- /dev/null
+++ b/testing/iossim/BUILD.gn
@@ -0,0 +1,56 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/mac/mac_sdk.gni")
+import("//third_party/class-dump/class-dump.gni")
+
+config("config") {
+ visibility = [ ":iossim" ]
+
+ include_dirs = [ "$root_gen_dir/iossim" ]
+
+ # TODO(crbug.com/595295): Building class-dump tools requires OS X SDK
+ # version 10.9 or higher. Remove this override once the global version
+ # of the SDK is raised.
+ common_flags = [ "-mmacosx-version-min=10.9" ]
+ ldflags = common_flags
+ cflags_objcc = common_flags
+}
+
+executable("iossim") {
+ sources = [
+ "iossim.mm",
+ ]
+ libs = [ "Foundation.framework" ]
+ deps = [
+ ":generate_dvt_core_simulator",
+ ":generate_dvt_foundation_header",
+ ":generate_dvt_iphone_sim_header",
+ ]
+ configs += [ ":config" ]
+
+ # TODO(crbug.com/595295): Building class-dump tools requires OS X SDK
+ # version 10.9 or higher. To prevent mixing code using different value
+ # of minimum SDK supported, forbids dependencies on any Chromium target.
+ assert_no_deps = [ "//base/*" ]
+}
+
+class_dump("generate_dvt_core_simulator") {
+ framework_name = "CoreSimulator"
+ framework_path = "$mac_sdk_path/../../../../../Library/PrivateFrameworks"
+ class_dump_filter = "Sim"
+}
+
+class_dump("generate_dvt_foundation_header") {
+ framework_name = "DVTFoundation"
+ framework_path = "$mac_sdk_path/../../../../../../SharedFrameworks"
+ class_dump_filter = "DVTStackBacktrace|DVTInvalidation|DVTMixIn"
+}
+
+class_dump("generate_dvt_iphone_sim_header") {
+ topological_sort = true
+ framework_name = "DVTiPhoneSimulatorRemoteClient"
+ framework_path = "$mac_sdk_path/../../../../../../SharedFrameworks"
+ class_dump_filter = "iPhoneSimulator"
+}
diff --git a/testing/iossim/iossim.gyp b/testing/iossim/iossim.gyp
index d6bb4ea..88069b6 100644
--- a/testing/iossim/iossim.gyp
+++ b/testing/iossim/iossim.gyp
@@ -13,6 +13,7 @@
['OS!="ios" or "<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ninja"', {
'targets': [
{
+ # GN version //testing/iossim(//build/toolchain/mac:clang_x64)
'target_name': 'iossim',
'toolsets': ['host'],
'type': 'executable',