1 # Copyright (c) 2011 Google Inc. 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 'targets': [ 6 { 7 'target_name': 'dep_framework', 8 'product_name': 'Dependency Bundle', 9 'type': 'shared_library', 10 'mac_bundle': 1, 11 'sources': [ 'empty.c', ], 12 }, 13 { 14 'target_name': 'test_framework', 15 'product_name': 'Test Framework', 16 'type': 'shared_library', 17 'mac_bundle': 1, 18 'dependencies': [ 'dep_framework', ], 19 'sources': [ 20 'TestFramework/ObjCVector.h', 21 'TestFramework/ObjCVectorInternal.h', 22 'TestFramework/ObjCVector.mm', 23 ], 24 'mac_framework_headers': [ 25 'TestFramework/ObjCVector.h', 26 ], 27 'mac_bundle_resources': [ 28 'TestFramework/English.lproj/InfoPlist.strings', 29 ], 30 'link_settings': { 31 'libraries': [ 32 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', 33 ], 34 }, 35 'xcode_settings': { 36 'INFOPLIST_FILE': 'TestFramework/Info.plist', 37 'GCC_DYNAMIC_NO_PIC': 'NO', 38 }, 39 'copies': [ 40 # Test copying to a file that has envvars in its dest path. 41 # Needs to be in a mac_bundle target, else CONTENTS_FOLDER_PATH isn't 42 # set. 43 { 44 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries', 45 'files': [ 46 'empty.c', 47 ], 48 }, 49 ], 50 }, 51 { 52 'target_name': 'copy_target', 53 'type': 'none', 54 'dependencies': [ 'test_framework', 'dep_framework', ], 55 'copies': [ 56 # Test copying directories with spaces in src and dest paths. 57 { 58 'destination': '<(PRODUCT_DIR)/Test Framework.framework/foo', 59 'files': [ 60 '<(PRODUCT_DIR)/Dependency Bundle.framework', 61 ], 62 }, 63 ], 64 'actions': [ 65 { 66 'action_name': 'aektschn', 67 'inputs': [], 68 'outputs': ['<(PRODUCT_DIR)/touched_file'], 69 'action': ['touch', '${BUILT_PRODUCTS_DIR}/action_file'], 70 }, 71 ], 72 }, 73 ], 74 } 75