| OLD | NEW |
| 1 # Copyright (c) 2012 Google Inc. All rights reserved. | 1 # Copyright (c) 2012 Google Inc. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 { | 4 { |
| 5 'targets': [ | 5 'targets': [ |
| 6 { | 6 { |
| 7 'target_name': 'test_bundle', | 7 'target_name': 'test_bundle', |
| 8 'product_name': 'My Framework', | 8 'product_name': 'My Framework', |
| 9 'type': 'shared_library', | 9 'type': 'shared_library', |
| 10 'mac_bundle': 1, | 10 'mac_bundle': 1, |
| 11 'sources': [ 'empty.c', ], | 11 'sources': [ 'empty.c', ], |
| 12 'xcode_settings': { | 12 'xcode_settings': { |
| 13 'INFOPLIST_FILE': 'Framework-Info.plist', | 13 'INFOPLIST_FILE': 'Framework-Info.plist', |
| 14 }, | 14 }, |
| 15 'mac_bundle_resources': [ | 15 'mac_bundle_resources': [ |
| 16 'resource_file.sb', | 16 'resource_file.sb', |
| 17 ], | 17 ], |
| 18 'copies': [ |
| 19 { |
| 20 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries', |
| 21 'files': [ 'copied.txt' ], |
| 22 }, |
| 23 ], |
| 18 }, | 24 }, |
| 19 { | 25 { |
| 20 'target_name': 'test_app', | 26 'target_name': 'test_app', |
| 21 'product_name': 'Test App', | 27 'product_name': 'Test App', |
| 22 'type': 'executable', | 28 'type': 'executable', |
| 23 'mac_bundle': 1, | 29 'mac_bundle': 1, |
| 24 'dependencies': [ | 30 'dependencies': [ |
| 25 'test_bundle', | 31 'test_bundle', |
| 26 ], | 32 ], |
| 27 'sources': [ 'main.c', ], | 33 'sources': [ 'main.c', ], |
| 28 'xcode_settings': { | 34 'xcode_settings': { |
| 29 'INFOPLIST_FILE': 'TestApp-Info.plist', | 35 'INFOPLIST_FILE': 'TestApp-Info.plist', |
| 30 }, | 36 }, |
| 31 'postbuilds': [ | 37 'postbuilds': [ |
| 32 { | 38 { |
| 33 'postbuild_name': 'Copy dependent framework into app', | 39 'postbuild_name': 'Copy dependent framework into app', |
| 34 'action': [ | 40 'action': [ |
| 35 './postbuild-copy-framework.sh', | 41 './postbuild-copy-framework.sh', |
| 36 '${BUILT_PRODUCTS_DIR}/My Framework.framework', | 42 '${BUILT_PRODUCTS_DIR}/My Framework.framework', |
| 37 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/', | 43 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/', |
| 38 ], | 44 ], |
| 39 }, | 45 }, |
| 40 ], | 46 ], |
| 41 }, | 47 }, |
| 42 ], | 48 ], |
| 43 } | 49 } |
| OLD | NEW |