summaryrefslogtreecommitdiff
path: root/bin/render.gyp
blob: 71b36fba5e94b86c9ad31f20ecfb2186754baded (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
{
  '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_static_libs)',
          '<@(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': [
        '../mbgl.gyp:<(core_library)',
        '../mbgl.gyp:<(headless_library)',
        '../mbgl.gyp:<(platform_library)',
        '../mbgl.gyp:copy_certificate_bundle',
      ],
    },
  ],
}