1 # Copyright (c) 2012 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.
7 ['OS!="ios" or "<(GENERATOR)"=="ninja"', {
10 'target_name': 'iossim',
14 'developer_dir': '<!(xcode-select -print-path)',
15 'iphone_sim_path': '<(developer_dir)/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks',
16 'other_frameworks_path': '<(developer_dir)/../OtherFrameworks'
19 'third_party/class-dump/class-dump.gyp:class-dump#host',
22 '<(INTERMEDIATE_DIR)/iossim',
26 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h',
29 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
33 'action_name': 'generate_iphone_sim_header',
35 '<(iphone_sim_path)/iPhoneSimulatorRemoteClient.framework/Versions/Current/iPhoneSimulatorRemoteClient',
36 '<(PRODUCT_DIR)/class-dump',
39 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h'
42 # Actions don't provide a way to redirect stdout, so a custom
43 # script is invoked that will execute the first argument and write
44 # the output to the file specified as the second argument.
45 './redirect-stdout.sh',
46 '<(PRODUCT_DIR)/class-dump -CiPhoneSimulator <(iphone_sim_path)/iPhoneSimulatorRemoteClient.framework',
47 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h',
49 'message': 'Generating header',
54 }, { # else, OS=="ios" and "<(GENERATOR)"!="ninja"
56 'ninja_output_dir': 'ninja-iossim',
58 '<(DEPTH)/xcodebuild/<(ninja_output_dir)/<(CONFIGURATION_NAME)',
62 'target_name': 'iossim',
67 'testing/iossim/iossim.gyp',
70 'includes': ['../../build/ios/mac_build.gypi'],
73 'action_name': 'compile iossim',
80 'message': 'Generating the iossim executable',