summaryrefslogtreecommitdiff
path: root/gyp/library.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'gyp/library.gypi')
-rw-r--r--gyp/library.gypi75
1 files changed, 75 insertions, 0 deletions
diff --git a/gyp/library.gypi b/gyp/library.gypi
new file mode 100644
index 0000000000..bb86432dac
--- /dev/null
+++ b/gyp/library.gypi
@@ -0,0 +1,75 @@
+{
+ 'targets': [
+ {
+ 'target_name': 'mapboxgl',
+ 'product_name': 'mapboxgl',
+ 'type': 'static_library',
+ 'hard_dependency': 1,
+ 'dependencies': [
+ 'shaders',
+ ],
+ 'sources': [
+ '<!@(find src -name "*.cpp")',
+ '<!@(test -f "config/constants_local.cpp" && echo "config/constants_local.cpp" || echo "config/constants.cpp")',
+ '<!@(find src -name "*.c")',
+ '<!@(find src -name "*.h")',
+ '<!@(find include -name "*.hpp")',
+ '<!@(find include -name "*.h")',
+ '<!@(find src -name "*.glsl")',
+ 'bin/style.json'
+ ],
+ 'include_dirs': [
+ '../include'
+ ],
+ 'conditions': [
+ ['OS == "mac"', {
+ 'xcode_settings': {
+ 'PUBLIC_HEADERS_FOLDER_PATH': 'include',
+ 'OTHER_CPLUSPLUSFLAGS': [
+ '<@(png_cflags)',
+ '<@(uv_cflags)',
+ '<@(sqlite3_cflags)',
+ '<@(zlib_cflags)',
+ '-I<(boost_root)/include',
+ ],
+ 'OTHER_CFLAGS': [
+ '<@(uv_cflags)',
+ ],
+ },
+ }, {
+ 'cflags': [
+ '<@(png_cflags)',
+ '<@(uv_cflags)',
+ '<@(sqlite3_cflags)',
+ '<@(zlib_cflags)',
+ '-I<(boost_root)/include',
+ ],
+ }]
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../include',
+ ],
+ 'conditions': [
+ ['OS == "mac"', {
+ 'xcode_settings': {
+ 'OTHER_LDFLAGS': [
+ '<@(png_libraries)',
+ '<@(uv_libraries)',
+ '<@(sqlite3_libraries)',
+ '<@(zlib_libraries)',
+ ]
+ }
+ }, {
+ 'libraries': [
+ '<@(png_libraries)',
+ '<@(uv_libraries)',
+ '<@(sqlite3_libraries)',
+ '<@(zlib_libraries)',
+ ]
+ }]
+ ]
+ }
+ }
+ ]
+}