Home | History | Annotate | Download | only in framework
      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_bundle_resources': [
     25         'TestFramework/English.lproj/InfoPlist.strings',
     26       ],
     27       'link_settings': {
     28         'libraries': [
     29           '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
     30         ],
     31       },
     32       'xcode_settings': {
     33         'INFOPLIST_FILE': 'TestFramework/Info.plist',
     34         'GCC_DYNAMIC_NO_PIC': 'NO',
     35       },
     36       'copies': [
     37         # Test copying to a file that has envvars in its dest path.
     38         # Needs to be in a mac_bundle target, else CONTENTS_FOLDER_PATH isn't
     39         # set.
     40         {
     41           'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
     42           'files': [
     43             'empty.c',
     44           ],
     45         },
     46       ],
     47     },
     48     {
     49       'target_name': 'copy_target',
     50       'type': 'none',
     51       'dependencies': [ 'test_framework', 'dep_framework', ],
     52       'copies': [
     53         # Test copying directories with spaces in src and dest paths.
     54         {
     55           'destination': '<(PRODUCT_DIR)/Test Framework.framework/foo',
     56           'files': [
     57             '<(PRODUCT_DIR)/Dependency Bundle.framework',
     58           ],
     59         },
     60       ],
     61       'actions': [
     62         {
     63           'action_name': 'aektschn',
     64           'inputs': [],
     65           'outputs': ['<(PRODUCT_DIR)/touched_file'],
     66           'action': ['touch', '${BUILT_PRODUCTS_DIR}/action_file'],
     67         },
     68       ],
     69     },
     70   ],
     71 }
     72