summaryrefslogtreecommitdiff
path: root/platform/qt/app/qmapboxgl.gypi
blob: 22b4e1281e60e13220f590f5eeeeae7d24456210 (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
{
  'targets': [
    {
      'target_name': 'qt-app',
      'product_name': 'qmapboxgl',
      'type': 'executable',

      'includes': [
        '../qt.gypi',
      ],

      'dependencies': [
        'qt-lib',
      ],

      'sources': [
        'main.cpp',
        'mapwindow.cpp',
        'mapwindow.hpp',
        'source.qrc',
      ],

      'include_dirs': [
        '../include',
      ],

      'variables': {
        'cflags': [
          '<@(opengl_cflags)',
          '<@(qt_core_cflags)',
          '<@(qt_gui_cflags)',
          '<@(qt_opengl_cflags)',
          '-fPIC',
          # Qt4 generates code with unused variables.
          '-Wno-unused-variable',
        ],
        'ldflags': [
          '<@(opengl_ldflags)',
          '<@(qt_core_ldflags)',
          '<@(qt_gui_ldflags)',
          '<@(qt_opengl_ldflags)',
        ],
      },

      'conditions': [
        ['OS == "mac"', {
          'xcode_settings': {
            'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags)' ],
            'OTHER_LDFLAGS': [ '<@(ldflags)' ],
          },
        }, {
          'cflags_cc': [ '<@(cflags)' ],
          'libraries': [ '<@(ldflags)' ],
        }],
      ],
    },
  ],
}