summaryrefslogtreecommitdiff
path: root/platform/qt/app/qmapboxgl.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'platform/qt/app/qmapboxgl.gypi')
-rw-r--r--platform/qt/app/qmapboxgl.gypi52
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)' ],
+ }],
+ ],
+ },
+ ],
+}