summaryrefslogtreecommitdiff
path: root/platform/ios/framework/framework-ios.gypi
blob: 3d733d963aaecbd690f7ebd55650182b8f0e9aa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
  'includes': [
    '../../../gyp/common.gypi',
  ],
  'targets': [
    {
      'target_name': 'iossdk',
      'product_name': 'Mapbox',
      'type': 'shared_library',
      'mac_bundle': 1,
      
      'dependencies': [
        'mbgl.gyp:core',
        'mbgl.gyp:platform-<(platform_lib)',
        'mbgl.gyp:http-<(http_lib)',
        'mbgl.gyp:asset-<(asset_lib)',
      ],

      'xcode_settings': {
        'CLANG_ENABLE_OBJC_ARC': 'YES',
        'COMBINE_HIDPI_IMAGES': 'NO', # disable combining @2x, @3x images into .tiff files
        'CURRENT_PROJECT_VERSION': '0',
        'DEFINES_MODULE': 'YES',
        'DYLIB_INSTALL_NAME_BASE': '@rpath',
        'INFOPLIST_FILE': '../platform/ios/framework/Info.plist',
        'IPHONEOS_DEPLOYMENT_TARGET': '8.0',
        'LD_RUNPATH_SEARCH_PATHS': [
          '$(inherited)',
          '@executable_path/Frameworks',
          '@loader_path/Frameworks',
        ],
        'PRODUCT_BUNDLE_IDENTIFIER': 'com.mapbox.sdk.ios',
        'OTHER_LDFLAGS': [ '-stdlib=libc++', '-lstdc++' ],
        'SDKROOT': 'iphoneos',
        'SKIP_INSTALL': 'YES',
        'SUPPORTED_PLATFORMS': [
          'iphonesimulator',
          'iphoneos',
        ],
        'VERSIONING_SYSTEM': 'apple-generic',
      },
      
      'mac_framework_headers': [
        'Mapbox.h',
        '<!@(find ../platform/{darwin,ios}/include -type f \! -name \'.*\' \! -name Mapbox.h)',
      ],
      
      'sources': [
        'Mapbox.m',
      ],
      
      'configurations': {
        'Debug': {
          'xcode_settings': {
            'CODE_SIGN_IDENTITY': 'iPhone Developer',
            'DEAD_CODE_STRIPPING': 'YES',
            'GCC_OPTIMIZATION_LEVEL': '0',
          },
        },
        'Release': {
          'xcode_settings': {
            'ARCHS': [ "armv7", "armv7s", "arm64", "i386", "x86_64" ],
            'CODE_SIGN_IDENTITY': 'iPhone Distribution',
            'DEAD_CODE_STRIPPING': 'YES',
            'GCC_OPTIMIZATION_LEVEL': 's',
          },
        },
      },
    },
  ]
}