diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-04-19 17:51:36 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-04-20 20:55:51 +0300 |
commit | c8c69f1d2a968dfc2556c3612e96ddba848ee885 (patch) | |
tree | a515b9e17ea8809b18c96c2e1808174b2ef57bbc /platform/qt/app/qmapboxgl.gypi | |
parent | 029f9f088331fa0d04a9b75a7dbdae773f749f47 (diff) | |
download | qtlocation-mapboxgl-c8c69f1d2a968dfc2556c3612e96ddba848ee885.tar.gz |
[Qt] Build the Qt port
Diffstat (limited to 'platform/qt/app/qmapboxgl.gypi')
-rw-r--r-- | platform/qt/app/qmapboxgl.gypi | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/platform/qt/app/qmapboxgl.gypi b/platform/qt/app/qmapboxgl.gypi new file mode 100644 index 0000000000..c864d7d19e --- /dev/null +++ b/platform/qt/app/qmapboxgl.gypi @@ -0,0 +1,52 @@ +{ + 'targets': [ + { + 'target_name': 'qt-app', + 'product_name': 'qmapboxgl', + 'type': 'executable', + + 'includes': [ + '../qt.gypi', + ], + + 'dependencies': [ + 'platform-lib', + ], + + 'sources': [ + 'main.cpp', + 'mapwindow.cpp', + 'mapwindow.hpp', + ], + + 'include_dirs': [ + '../include', + '../../../include', + ], + + 'variables': { + 'cflags': [ + '<@(opengl_cflags)', + '<@(qt_cflags)', + '-Wno-error', # TODO: eliminate + ], + 'ldflags': [ + '<@(opengl_ldflags)', + '<@(qt_ldflags)' + ], + }, + + 'conditions': [ + ['OS == "mac"', { + 'xcode_settings': { + 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags)' ], + 'OTHER_LDFLAGS': [ '<@(ldflags)', '-framework OpenGL' ], + }, + }, { + 'cflags_cc': [ '<@(cflags)' ], + 'libraries': [ '<@(ldflags)' ], + }], + ], + }, + ], +} |