summaryrefslogtreecommitdiff
path: root/linux/mbgl-app.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'linux/mbgl-app.gyp')
-rw-r--r--linux/mbgl-app.gyp61
1 files changed, 61 insertions, 0 deletions
diff --git a/linux/mbgl-app.gyp b/linux/mbgl-app.gyp
new file mode 100644
index 0000000000..60d33e5936
--- /dev/null
+++ b/linux/mbgl-app.gyp
@@ -0,0 +1,61 @@
+{
+ 'includes': [
+ '../common.gypi',
+ '../config.gypi',
+ ],
+ 'targets': [
+ {
+ 'target_name': 'linuxapp',
+ 'product_name': 'mapbox-gl',
+ 'type': 'executable',
+ 'sources': [
+ './main.cpp',
+ '../common/settings_json.cpp',
+ '../common/settings_json.hpp',
+ '../common/glfw_view.hpp',
+ '../common/glfw_view.cpp',
+ '../common/curl_request.cpp',
+ '../common/stderr_log.hpp',
+ '../common/stderr_log.cpp',
+ ],
+
+ 'conditions': [
+ ['OS == "mac"',
+
+ # Mac OS X
+ {
+ 'xcode_settings': {
+ 'OTHER_CPLUSPLUSFLAGS':[
+ '<@(glfw3_cflags)',
+ '<@(curl_cflags)',
+ ],
+ 'OTHER_LDFLAGS': [
+ '<@(glfw3_libraries)',
+ '<@(curl_libraries)',
+ ],
+ }
+ },
+
+ # Non-Mac OS X
+ {
+ 'cflags': [
+ '<@(glfw3_cflags)',
+ '<@(curl_cflags)',
+ ],
+ 'link_settings': {
+ 'libraries': [
+ '<@(glfw3_libraries)',
+ '<@(curl_libraries)',
+ '-lboost_regex'
+ ],
+ },
+ }],
+ ],
+ 'dependencies': [
+ '../mbgl.gyp:mbgl-x86',
+ '../mbgl.gyp:copy_default_stylesheet',
+ '../mbgl.gyp:copy_certificate_bundle',
+ ],
+ },
+ ],
+}