summaryrefslogtreecommitdiff
path: root/macosx/mapboxgl-app.gyp
blob: f673d68f0f2cd228a73b8a0c615f32da58fc06ef (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
{
  'includes': [
    '../common.gypi',
    '../config.gypi'
  ],
  'targets': [
    {
      'target_name': 'osxapp',
      'product_name': 'Mapbox GL',
      'type': 'executable',
      'sources': [
        './main.mm',
        '../common/settings_nsuserdefaults.hpp',
        '../common/settings_nsuserdefaults.mm',
        '../common/platform_nsstring.mm',
        '../common/glfw_view.hpp',
        '../common/glfw_view.cpp',
        '../src/storage/http_request_baton_darwin.mm',
        '../common/nslog_log.hpp',
        '../common/nslog_log.mm',
      ],
      'product_extension': 'app',
      'mac_bundle': 1,
      'mac_bundle_resources': [
        'Icon.icns',
      ],
      'xcode_settings': {
        'SDKROOT': 'macosx',
        'SUPPORTED_PLATFORMS':'macosx',
        'OTHER_CPLUSPLUSFLAGS': [
          '<@(glfw3_cflags)'
        ],
        'OTHER_LDFLAGS': [
          '<@(glfw3_libraries)',
        ],
        'SDKROOT': 'macosx',
        'INFOPLIST_FILE': 'Info.plist',
        'MACOSX_DEPLOYMENT_TARGET':'10.9',
        'CLANG_ENABLE_OBJC_ARC': 'YES'
      },
      'dependencies': [
        '../mapboxgl.gyp:bundle_styles',
        '../mapboxgl.gyp:mapboxgl',
      ]
    }
  ]
}