summaryrefslogtreecommitdiff
path: root/gyp/platform-linux.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'gyp/platform-linux.gypi')
-rw-r--r--gyp/platform-linux.gypi53
1 files changed, 53 insertions, 0 deletions
diff --git a/gyp/platform-linux.gypi b/gyp/platform-linux.gypi
new file mode 100644
index 0000000000..4288def7fc
--- /dev/null
+++ b/gyp/platform-linux.gypi
@@ -0,0 +1,53 @@
+{
+ 'targets': [
+ {
+ 'target_name': 'mapboxgl-linux',
+ 'product_name': 'mapboxgl-linux',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../include'
+ ],
+ 'sources': [
+ '../platform/default/cache_database_tmp.cpp',
+ '../platform/default/log_stderr.cpp',
+ '../platform/default/string_stdlib.cpp',
+ '../platform/default/http_request_baton_curl.cpp',
+ ],
+ 'conditions': [
+ ['OS == "mac"', {
+ 'xcode_settings': {
+ 'OTHER_CPLUSPLUSFLAGS': [
+ '<@(uv_cflags)',
+ '<@(curl_cflags)',
+ ],
+ }
+ }, {
+ 'cflags': [
+ '<@(uv_cflags)',
+ '<@(curl_cflags)',
+ ],
+ }]
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../include',
+ ],
+ 'conditions': [
+ ['OS == "mac"', {
+ 'xcode_settings': {
+ 'OTHER_LDFLAGS': [
+ '<@(uv_libraries)',
+ '<@(curl_libraries)',
+ ]
+ }
+ }, {
+ 'libraries': [
+ '<@(uv_libraries)',
+ '<@(curl_libraries)',
+ ]
+ }]
+ ]
+ }
+ },
+ ]
+}