summaryrefslogtreecommitdiff
path: root/bin/render.gyp
blob: e9a259423686c2ecbe44c2b6970b0656b2012a78 (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
{
  'includes': [
    '../gyp/common.gypi',
  ],
  'targets': [
    {
      'target_name': 'mbgl-render',
      'product_name': 'mbgl-render',
      'type': 'executable',
      'sources': [
        './render.cpp',
      ],
      'variables' : {
        'cflags': [
          '<@(uv_cflags)',
          '<@(png_cflags)',
          '-I<(boost_root)/include',
        ],
        'ldflags': [
          '<@(glfw3_ldflags)',
          '<@(uv_ldflags)',
          '<@(sqlite3_ldflags)',
          '<@(curl_ldflags)',
          '<@(png_ldflags)',
          '<@(uv_static_libs)',
          '-L<(boost_root)/lib',
          '-lboost_program_options'
        ],
      },
      'conditions': [
        # add libuv include path and OpenGL libs
        ['OS == "mac"',
          {
            'xcode_settings': {
              'OTHER_CPLUSPLUSFLAGS': ['<@(cflags)'],
              'OTHER_LDFLAGS': ['<@(ldflags)'],
            },
          },
          {
            'cflags': ['<@(cflags)'],
            'libraries': ['<@(ldflags)'],
          }],
      ],
      'include_dirs': [ '../src' ],
      'dependencies': [
        '../mapboxgl.gyp:mbgl-standalone',
        '../mapboxgl.gyp:mbgl-headless',
        '../mapboxgl.gyp:mbgl-<(platform)',
        '../mapboxgl.gyp:copy_certificate_bundle',
      ],
    },
  ],
}