summaryrefslogtreecommitdiff
path: root/macosx/mbgl-app.gyp
blob: 3afb3bc1af741fdcb612f82b7f3ca8f22cba0cb1 (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/glfw_view.hpp',
        '../common/glfw_view.cpp',
        '../common/foundation_request.h',
        '../common/foundation_request.mm',
        '../common/nslog_log.hpp',
        '../common/nslog_log.mm',
      ],
      'product_extension': 'app',
      'mac_bundle': 1,
      'mac_bundle_resources': [
        'Icon.icns',
        '<(SHARED_INTERMEDIATE_DIR)/bin/style.min.js'
      ],
      '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': [
        '../mbgl.gyp:mbgl-x86'
      ]
    }
  ]
}