# Copyright (c) 2012 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. { 'conditions': [ ['OS!="ios" or "<(GENERATOR)"=="ninja"', { 'targets': [ { 'target_name': 'iossim', 'toolsets': ['host'], 'type': 'executable', 'variables': { 'developer_dir': ' only displays classes matching regular expression. './redirect-stdout.sh', '<(PRODUCT_DIR)/class-dump -I -CiPhoneSimulator <(iphone_sim_path)/DVTiPhoneSimulatorRemoteClient.framework', '<(INTERMEDIATE_DIR)/iossim/DVTiPhoneSimulatorRemoteClient.h', ], 'message': 'Generating header', }, ], 'xcode_settings': { 'ARCHS': ['x86_64'], 'WARNING_CFLAGS': [ '-Wno-objc-property-no-attribute', ], }, }, ], }, { # else, OS=="ios" and "<(GENERATOR)"!="ninja" 'variables': { 'ninja_output_dir': 'ninja-iossim', 'ninja_product_dir': '$(SYMROOT)/<(ninja_output_dir)/<(CONFIGURATION_NAME)', }, 'targets': [ { 'target_name': 'iossim', 'type': 'none', 'variables': { # Gyp to rerun 're_run_targets': [ 'testing/iossim/iossim.gyp', ], }, 'includes': ['../../build/ios/mac_build.gypi'], 'actions': [ { 'action_name': 'compile iossim', 'inputs': [], 'outputs': [], 'action': [ '<@(ninja_cmd)', 'iossim', ], 'message': 'Generating the iossim executable', }, ], }, ], }], ], }