Home | History | Annotate | Download | only in postbuild-copy-bundle
      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
      3 # found in the LICENSE file.
      4 {
      5   'targets': [
      6     {
      7       'target_name': 'test_bundle',
      8       'product_name': 'My Framework',
      9       'type': 'shared_library',
     10       'mac_bundle': 1,
     11       'sources': [ 'empty.c', ],
     12       'xcode_settings': {
     13         'INFOPLIST_FILE': 'Framework-Info.plist',
     14       },
     15       'mac_bundle_resources': [
     16         'resource_file.sb',
     17       ],
     18       'copies': [
     19         {
     20           'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
     21           'files': [ 'copied.txt' ],
     22         },
     23       ],
     24     },
     25     {
     26       'target_name': 'test_app',
     27       'product_name': 'Test App',
     28       'type': 'executable',
     29       'mac_bundle': 1,
     30       'dependencies': [
     31         'test_bundle',
     32       ],
     33       'sources': [ 'main.c', ],
     34       'xcode_settings': {
     35         'INFOPLIST_FILE': 'TestApp-Info.plist',
     36       },
     37       'postbuilds': [
     38         {
     39           'postbuild_name': 'Copy dependent framework into app',
     40           'action': [
     41             './postbuild-copy-framework.sh',
     42             '${BUILT_PRODUCTS_DIR}/My Framework.framework',
     43             '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/',
     44           ],
     45         },
     46       ],
     47     },
     48   ],
     49 }
     50