1# Copyright 2016 The Chromium Authors. 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{
6  'targets': [
7    {
8      'target_name': 'iOSFramework',
9      'type': 'shared_library',
10      'mac_bundle': 1,
11      'sources': [
12        'iOSFramework/iOSFramework.h',
13        'iOSFramework/Thing.h',
14        'iOSFramework/Thing.m',
15      ],
16      'link_settings': {
17        'libraries': [
18          '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
19          '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
20        ],
21      },
22      'mac_framework_headers': [
23        # Using two headers here tests mac_tool.py NextGreaterPowerOf2.
24        'iOSFramework/iOSFramework.h',
25        'iOSFramework/Thing.h',
26      ],
27      'mac_framework_dirs': [
28        '$(SDKROOT)/../../Library/Frameworks',
29      ],
30      'xcode_settings': {
31        'OTHER_CFLAGS': [
32          '-fobjc-abi-version=2',
33        ],
34        'INFOPLIST_FILE': 'iOSFramework/Info.plist',
35        'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
36        'SDKROOT': 'iphoneos',
37        'IPHONEOS_DEPLOYMENT_TARGET': '8.0',
38        'CONFIGURATION_BUILD_DIR':'build/Default',
39        'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer',
40      },
41    },
42  ],
43}
44