summaryrefslogtreecommitdiff
path: root/linux/llmr-app.gyp
blob: 2310613583ddcf8591fdfe561df871da9f8d3221 (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
72
{
  'includes': [
    '../common.gypi',
    '../config.gypi',
  ],
  'targets': [
    {
      'target_name': 'linuxapp',
      'product_name': 'mapbox-gl',
      'type': 'executable',
      'sources': [
        './main.cpp',
        '../common/settings_json.cpp',
        '../common/settings_json.hpp',
        '../common/glfw_view.hpp',
        '../common/glfw_view.cpp',
        '../common/curl_request.cpp',
      ],

      'conditions': [
        ['OS == "mac"',

        # Mac OS X
        {
          'xcode_settings': {
            'OTHER_CPLUSPLUSFLAGS':[
              '<@(glfw3_cflags)',
              '<@(curl_cflags)',
            ],
            'OTHER_LDFLAGS': [
              '<@(glfw3_libraries)',
              '<@(curl_libraries)',
            ],
          }
        },

        # Non-Mac OS X
        {
          'cflags': [
            '<@(glfw3_cflags)',
            '<@(curl_cflags)',
          ],
          'link_settings': {
            'libraries': [
              '<@(glfw3_libraries)',
              '<@(curl_libraries)',
              '-lboost_regex'
            ],
          },
        }],
      ],
      'dependencies': [
        '../llmr.gyp:llmr-x86',
        'default_stylesheet',
      ],
    },
    {
      'target_name': 'default_stylesheet',
      'type': 'none',
      'hard_dependency': 1,
      'dependencies': [
        '../llmr.gyp:build_stylesheet'
      ],
      'copies': [
        {
          'files': [ '<(SHARED_INTERMEDIATE_DIR)/bin/style.min.js' ],
          'destination': '<(PRODUCT_DIR)'
        }
      ]
    }
  ],
}