summaryrefslogtreecommitdiff
path: root/gyp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-04-03 15:16:49 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-04-07 18:01:02 -0700
commitf964e40e7e9220d08751d8607af61ac5a7c0794c (patch)
treed34ca5407188fe3d71396faa8a8acceb52d9bd4b /gyp
parentf5d66f362272db034a311d2077dbdb2937c9bbdf (diff)
downloadqtlocation-mapboxgl-f964e40e7e9220d08751d8607af61ac5a7c0794c.tar.gz
[build] Refactor and simplify build system
* Main gyp files are now standardized as platform/<platform>/platform.gyp. * Each platform gyp file defines appropriate loop_lib and headless_lib variables. * Each platform gyp file includes mbgl.gypi, which defines base targets which may be useful to all platforms. * CI targets are consistent across platforms: `make $(PLATFORM) && make test-$(PLATFORM)`. * Renamed the "linux" test app to "glfw". It's now built in OS X CI. * Android build flakiness is fixed. * iOS CI builds the bench and iosapp targets. * Mesa version is now in one place. * CI scripts use bash "strict mode" and correct error handling. * All build output goes to the build directory. * Removed vestigial iOS/OS X/Android Travis scripts.
Diffstat (limited to 'gyp')
-rw-r--r--gyp/android.gyp5
-rw-r--r--gyp/asset-fs.gypi52
-rw-r--r--gyp/asset-zip.gypi74
-rw-r--r--gyp/certificates.gypi12
-rw-r--r--gyp/common.gypi139
-rw-r--r--gyp/core.gypi80
-rw-r--r--gyp/headless-cgl.gypi19
-rw-r--r--gyp/headless-eagl.gypi19
-rw-r--r--gyp/headless-glx.gypi25
-rw-r--r--gyp/http-android.gypi53
-rw-r--r--gyp/http-curl.gypi78
-rw-r--r--gyp/http-nsurl.gypi45
-rw-r--r--gyp/ios.gyp8
-rw-r--r--gyp/linux.gyp11
-rw-r--r--gyp/mbgl.gyp83
-rw-r--r--gyp/none.gypi20
-rw-r--r--gyp/osx.gyp14
-rw-r--r--gyp/platform-android.gypi92
-rw-r--r--gyp/platform-ios.gypi141
-rw-r--r--gyp/platform-linux.gypi97
-rw-r--r--gyp/platform-osx.gypi122
-rw-r--r--gyp/shaders.gypi32
-rw-r--r--gyp/target-ios-bundle.gypi5
-rw-r--r--gyp/target-ios.gypi27
-rw-r--r--gyp/version.gypi29
25 files changed, 0 insertions, 1282 deletions
diff --git a/gyp/android.gyp b/gyp/android.gyp
deleted file mode 100644
index fbeb4a647b..0000000000
--- a/gyp/android.gyp
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- 'includes': [
- '../platform/android/mapboxgl-app.gypi',
- ],
-}
diff --git a/gyp/asset-fs.gypi b/gyp/asset-fs.gypi
deleted file mode 100644
index 30dc9e07aa..0000000000
--- a/gyp/asset-fs.gypi
+++ /dev/null
@@ -1,52 +0,0 @@
-{
- 'targets': [
- { 'target_name': 'asset-fs',
- 'product_name': 'mbgl-asset-fs',
- 'type': 'static_library',
- 'standalone_static_library': 1,
- 'hard_dependency': 1,
-
- 'sources': [
- '../platform/default/asset_file_source.cpp',
- ],
-
- 'include_dirs': [
- '../include',
- '../src',
- ],
-
- 'variables': {
- 'cflags_cc': [
- '<@(boost_cflags)',
- ],
- 'defines': [
- '-DMBGL_ASSET_FS'
- ],
- },
-
- 'conditions': [
- ['OS == "mac"', {
- 'xcode_settings': {
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
- },
- }, {
- 'cflags_cc': [ '<@(cflags_cc)' ],
- }],
- ],
-
- 'direct_dependent_settings': {
- 'conditions': [
- ['OS == "mac"', {
- 'xcode_settings': {
- 'OTHER_CFLAGS': [ '<@(defines)' ],
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(defines)' ],
- }
- }, {
- 'cflags': [ '<@(defines)' ],
- 'cflags_cc': [ '<@(defines)' ],
- }]
- ],
- },
- },
- ],
-}
diff --git a/gyp/asset-zip.gypi b/gyp/asset-zip.gypi
deleted file mode 100644
index 9011981f6c..0000000000
--- a/gyp/asset-zip.gypi
+++ /dev/null
@@ -1,74 +0,0 @@
-{
- 'targets': [
- { 'target_name': 'asset-zip',
- 'product_name': 'mbgl-asset-zip',
- 'type': 'static_library',
- 'standalone_static_library': 1,
- 'hard_dependency': 1,
-
- 'sources': [
- '../platform/android/src/asset_file_source.cpp',
- ],
-
- 'include_dirs': [
- '../include',
- '../src',
- ],
-
- 'variables': {
- 'cflags': [
- '<@(libzip_cflags)',
- ],
- 'cflags_cc': [
- '<@(libzip_cflags)',
- ],
- 'ldflags': [
- '<@(libzip_ldflags)',
- ],
- 'libraries': [
- '<@(libzip_static_libs)',
- ],
- 'defines': [
- '-DMBGL_ASSET_ZIP'
- ],
- },
-
- 'conditions': [
- ['OS == "mac"', {
- 'xcode_settings': {
- 'OTHER_CFLAGS': [ '<@(cflags)' ],
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
- },
- }, {
- 'cflags': [ '<@(cflags)' ],
- 'cflags_cc': [ '<@(cflags_cc)' ],
- }],
- ],
-
- 'direct_dependent_settings': {
- 'conditions': [
- ['OS == "mac"', {
- 'xcode_settings': {
- 'OTHER_CFLAGS': [ '<@(defines)' ],
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(defines)' ],
- }
- }, {
- 'cflags': [ '<@(defines)' ],
- 'cflags_cc': [ '<@(defines)' ],
- }]
- ],
- },
-
- 'link_settings': {
- 'conditions': [
- ['OS == "mac"', {
- 'libraries': [ '<@(libraries)' ],
- 'xcode_settings': { 'OTHER_LDFLAGS': [ '<@(ldflags)' ] }
- }, {
- 'libraries': [ '<@(libraries)', '<@(ldflags)' ],
- }]
- ],
- },
- },
- ],
-}
diff --git a/gyp/certificates.gypi b/gyp/certificates.gypi
deleted file mode 100644
index 1d0c2acf86..0000000000
--- a/gyp/certificates.gypi
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- 'targets': [
- { 'target_name': 'copy_certificate_bundle',
- 'type': 'none',
- 'hard_dependency': 1,
- 'copies': [{
- 'files': [ '../common/ca-bundle.crt' ],
- 'destination': '<(PRODUCT_DIR)'
- }],
- },
- ]
-}
diff --git a/gyp/common.gypi b/gyp/common.gypi
deleted file mode 100644
index 3972c8f6f9..0000000000
--- a/gyp/common.gypi
+++ /dev/null
@@ -1,139 +0,0 @@
-{
- 'target_defaults': {
- 'default_configuration': 'Release',
- 'conditions': [
- ['OS=="mac"', {
- 'xcode_settings': {
- 'CLANG_CXX_LIBRARY': 'libc++',
- 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
- 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
- 'GCC_ENABLE_CPP_RTTI': 'YES',
- 'OTHER_CPLUSPLUSFLAGS': [
- '-std=c++14',
- '-Werror',
- '-Wall',
- '-Wextra',
- '-Wshadow',
- '-Wno-variadic-macros',
- '-frtti',
- '-fexceptions',
- '${CFLAGS}',
- ],
- 'GCC_WARN_PEDANTIC': 'YES',
- 'GCC_WARN_UNINITIALIZED_AUTOS': 'YES_AGGRESSIVE',
- 'MACOSX_DEPLOYMENT_TARGET': '10.10',
- },
- }, {
- 'cflags_cc': [
- '-std=c++14',
- '-Werror',
- '-Wall',
- '-Wextra',
- '-Wshadow',
- '-Wno-variadic-macros',
- '-Wno-error=unused-parameter',
- '-frtti',
- '-fexceptions',
- '${CFLAGS}',
- ],
- }],
- ['OS=="linux"', {
- 'cflags_cc': [
- '-Wno-unknown-pragmas', # We are using '#pragma mark', but it is only available on Darwin.
- ],
- 'conditions': [
- ['cxx_host != "clang"', {
- 'cflags_cc': [
- '-fabi-version=0',
- ],
- }],
- ]
- }],
- ],
- 'target_conditions': [
- ['_type == "static_library"', {
- 'conditions': [
- ['OS=="mac"', {
- 'xcode_settings': {
- 'OTHER_CPLUSPLUSFLAGS': [ '-fPIC' ],
- 'SKIP_INSTALL': 'YES',
- },
- }, {
- 'cflags_cc': [ '-fPIC' ],
- }],
- ['host == "ios"', {
- 'xcode_settings': {
- 'SDKROOT': 'iphoneos',
- 'SUPPORTED_PLATFORMS': 'iphonesimulator iphoneos',
- 'IPHONEOS_DEPLOYMENT_TARGET': '7.0',
- 'TARGETED_DEVICE_FAMILY': '1,2',
- 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
- 'CODE_SIGN_IDENTITY': 'iPhone Developer',
- },
- 'configurations': {
- 'Release': {
- 'xcode_settings': {
- 'ARCHS': [ "armv7", "armv7s", "arm64", "i386", "x86_64" ],
- },
- },
- },
- }],
- ],
- }],
- ],
- 'configurations': {
- 'Debug': {
- 'conditions': [
- ['OS=="mac"', {
- 'xcode_settings': {
- 'GCC_OPTIMIZATION_LEVEL': '0',
- 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES',
- 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
- 'DEAD_CODE_STRIPPING': 'NO',
- 'OTHER_CPLUSPLUSFLAGS': [ '-fno-omit-frame-pointer','-fwrapv', '-fstack-protector-all', '-fno-common' ],
- 'conditions': [
- ['coverage', {
- 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES',
- 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES',
- 'OTHER_CPLUSPLUSFLAGS': [ '--coverage' ],
- }],
- ],
- },
- }, {
- 'cflags_cc': [ '-g', '-O0', '-fno-omit-frame-pointer','-fwrapv', '-fstack-protector-all', '-fno-common' ],
- 'conditions': [
- ['coverage', { 'cflags_cc': [ '--coverage' ] }],
- ],
- }],
- ],
- 'defines': [ 'DEBUG' ],
- 'target_conditions': [
- ['_type == "executable"', {
- 'conditions': [
- ['OS=="mac" and coverage', {
- 'xcode_settings': { 'OTHER_LDFLAGS': [ '--coverage' ] },
- }, {
- 'ldflags': [ '--coverage' ],
- }],
- ],
- }],
- ],
- },
- 'Release': {
- 'defines': [ 'NDEBUG' ],
- 'conditions': [
- ['OS=="mac"', {
- 'xcode_settings': {
- 'GCC_OPTIMIZATION_LEVEL': '3',
- 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES',
- 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
- 'DEAD_CODE_STRIPPING': 'NO',
- },
- }, {
- 'cflags_cc': [ '-g', '-O3' ],
- }],
- ],
- },
- },
- }
-}
diff --git a/gyp/core.gypi b/gyp/core.gypi
deleted file mode 100644
index 06497710d3..0000000000
--- a/gyp/core.gypi
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- 'targets': [
- { 'target_name': 'core',
- 'product_name': 'mbgl-core',
- 'type': 'static_library',
- 'standalone_static_library': 1,
- 'hard_dependency': 1,
- 'dependencies': [
- 'shaders',
- 'version',
- ],
-
- 'sources': [
- '<!@(find ../src -name "*.hpp")',
- '<!@(find ../src -name "*.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',
- '../src',
- ],
-
- 'variables': {
- 'cflags_cc': [
- '<@(opengl_cflags)',
- '<@(boost_cflags)',
- '<@(geojsonvt_cflags)',
- '<@(rapidjson_cflags)',
- '<@(variant_cflags)',
- ],
- 'cflags': [
- '<@(opengl_cflags)',
- '<@(rapidjson_cflags)',
- '-fPIC'
- ],
- 'ldflags': [
- '<@(opengl_ldflags)',
- ],
- 'libraries': [
- '<@(geojsonvt_static_libs)',
- ],
- },
-
- 'conditions': [
- ['OS == "mac"', {
- 'xcode_settings': {
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
- 'OTHER_CFLAGS': [ '<@(cflags)' ],
- },
- }, {
- 'cflags_cc': [ '<@(cflags_cc)' ],
- 'cflags': [ '<@(cflags)' ],
- }]
- ],
-
- 'link_settings': {
- 'conditions': [
- ['OS == "mac"', {
- 'libraries': [ '<@(libraries)' ],
- 'xcode_settings': { 'OTHER_LDFLAGS': [ '<@(ldflags)' ] }
- }, {
- 'libraries': [ '<@(libraries)', '<@(ldflags)' ],
- }]
- ],
- },
-
- 'direct_dependent_settings': {
- 'include_dirs': [
- '../include',
- ],
- },
- },
- ]
-}
diff --git a/gyp/headless-cgl.gypi b/gyp/headless-cgl.gypi
deleted file mode 100644
index 4b92bdeb54..0000000000
--- a/gyp/headless-cgl.gypi
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- 'targets': [
- { 'target_name': 'headless-cgl',
- 'product_name': 'mbgl-headless-cgl',
- 'type': 'static_library',
- 'standalone_static_library': 1,
-
- 'sources': [
- '../platform/default/headless_view.cpp',
- '../platform/darwin/src/headless_view_cgl.cpp',
- '../platform/default/headless_display.cpp',
- ],
-
- 'include_dirs': [
- '../include',
- ],
- },
- ],
-}
diff --git a/gyp/headless-eagl.gypi b/gyp/headless-eagl.gypi
deleted file mode 100644
index 0dc482563f..0000000000
--- a/gyp/headless-eagl.gypi
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- 'targets': [
- { 'target_name': 'headless-eagl',
- 'product_name': 'mbgl-headless-eagl',
- 'type': 'static_library',
- 'standalone_static_library': 1,
-
- 'sources': [
- '../platform/default/headless_view.cpp',
- '../platform/darwin/src/headless_view_eagl.mm',
- '../platform/default/headless_display.cpp',
- ],
-
- 'include_dirs': [
- '../include',
- ],
- },
- ],
-}
diff --git a/gyp/headless-glx.gypi b/gyp/headless-glx.gypi
deleted file mode 100644
index 65dedf7ade..0000000000
--- a/gyp/headless-glx.gypi
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- 'targets': [
- { 'target_name': 'headless-glx',
- 'product_name': 'mbgl-headless-glx',
- 'type': 'static_library',
- 'standalone_static_library': 1,
-
- 'sources': [
- '../platform/default/headless_view.cpp',
- '../platform/default/headless_view_glx.cpp',
- '../platform/default/headless_display.cpp',
- ],
-
- 'include_dirs': [
- '../include',
- ],
-
- 'cflags_cc': [ '<@(opengl_cflags)' ],
-
- 'link_settings': {
- 'libraries': [ '<@(opengl_ldflags)' ],
- },
- },
- ],
-}
diff --git a/gyp/http-android.gypi b/gyp/http-android.gypi
deleted file mode 100644
index 749e3f2f4d..0000000000
--- a/gyp/http-android.gypi
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- 'targets': [
- { 'target_name': 'http-android',
- 'product_name': 'mbgl-http-android',
- 'type': 'static_library',
- 'standalone_static_library': 1,
- 'hard_dependency': 1,
-
- 'sources': [
- '../platform/android/src/http_request_android.cpp',
- ],
-
- 'include_dirs': [
- '../include',
- '../src',
- ],
-
- 'variables': {
- 'cflags_cc': [
- '<@(boost_cflags)',
- '<@(jni.hpp_cflags)',
- ],
- 'defines': [
- '-DMBGL_HTTP_ANDROID'
- ],
- },
-
- 'conditions': [
- ['OS == "mac"', {
- 'xcode_settings': {
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
- },
- }, {
- 'cflags_cc': [ '<@(cflags_cc)' ],
- }],
- ],
-
- 'direct_dependent_settings': {
- 'conditions': [
- ['OS == "mac"', {
- 'xcode_settings': {
- 'OTHER_CFLAGS': [ '<@(defines)' ],
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(defines)' ],
- }
- }, {
- 'cflags': [ '<@(defines)' ],
- 'cflags_cc': [ '<@(defines)' ],
- }]
- ],
- },
- },
- ],
-}
diff --git a/gyp/http-curl.gypi b/gyp/http-curl.gypi
deleted file mode 100644
index af4c2c5472..0000000000
--- a/gyp/http-curl.gypi
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- 'targets': [
- { 'target_name': 'http-curl',
- 'product_name': 'mbgl-http-curl',
- 'type': 'static_library',
- 'standalone_static_library': 1,
- 'hard_dependency': 1,
-
- 'sources': [
- '../platform/default/http_request_curl.cpp',
- ],
-
- 'include_dirs': [
- '../include',
- '../src',
- ],
-
- 'variables': {
- 'cflags_cc': [
- '<@(libcurl_cflags)',
- '<@(boost_cflags)',
- ],
- 'ldflags': [
- '<@(libcurl_ldflags)',
- ],
- 'libraries': [
- '<@(libcurl_static_libs)',
- ],
- 'defines': [
- '-DMBGL_HTTP_CURL'
- ],
- },
-
- 'conditions': [
- ['host == "android"', {
- 'variables': {
- # Android uses libzip and openssl to set CURL's CA bundle.
- 'cflags_cc': [ '<@(libzip_cflags)', '<@(openssl_cflags)' ],
- 'ldflags': [ '<@(libzip_ldflags)', ],
- 'libraries': [ '<@(libzip_static_libs)', ],
- },
- }],
- ['OS == "mac"', {
- 'xcode_settings': {
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
- },
- }, {
- 'cflags_cc': [ '<@(cflags_cc)' ],
- }],
- ],
-
- 'direct_dependent_settings': {
- 'conditions': [
- ['OS == "mac"', {
- 'xcode_settings': {
- 'OTHER_CFLAGS': [ '<@(defines)' ],
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(defines)' ],
- }
- }, {
- 'cflags': [ '<@(defines)' ],
- 'cflags_cc': [ '<@(defines)' ],
- }]
- ],
- },
-
- 'link_settings': {
- 'conditions': [
- ['OS == "mac"', {
- 'libraries': [ '<@(libraries)' ],
- 'xcode_settings': { 'OTHER_LDFLAGS': [ '<@(ldflags)' ] }
- }, {
- 'libraries': [ '<@(libraries)', '<@(ldflags)' ],
- }]
- ],
- },
- },
- ],
-}
diff --git a/gyp/http-nsurl.gypi b/gyp/http-nsurl.gypi
deleted file mode 100644
index e22da472ce..0000000000
--- a/gyp/http-nsurl.gypi
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- 'targets': [
- { 'target_name': 'http-nsurl',
- 'product_name': 'mbgl-http-nsurl',
- 'type': 'static_library',
- 'standalone_static_library': 1,
- 'hard_dependency': 1,
-
- 'sources': [
- '../platform/darwin/src/http_request_nsurl.mm',
- ],
-
- 'include_dirs': [
- '../include',
- '../src',
- ],
-
- 'variables': {
- 'ldflags': [
- '-framework Foundation', # For NSURLRequest
- ],
- 'defines': [
- '-DMBGL_HTTP_NSURL'
- ],
- },
-
- 'xcode_settings': {
- 'CLANG_ENABLE_OBJC_ARC': 'YES',
- },
-
- 'direct_dependent_settings': {
- 'xcode_settings': {
- 'OTHER_CFLAGS': [ '<@(defines)' ],
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(defines)' ],
- }
- },
-
- 'link_settings': {
- 'xcode_settings': {
- 'OTHER_LDFLAGS': [ '<@(ldflags)' ],
- },
- },
- },
- ],
-}
diff --git a/gyp/ios.gyp b/gyp/ios.gyp
deleted file mode 100644
index f07805d315..0000000000
--- a/gyp/ios.gyp
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- 'includes': [
- '../platform/ios/app/mapboxgl-app.gypi',
- '../platform/ios/framework/framework-ios.gypi',
- '../platform/ios/benchmark/benchmark-ios.gypi',
- '../test/test.gypi',
- ],
-}
diff --git a/gyp/linux.gyp b/gyp/linux.gyp
deleted file mode 100644
index 2815f4fc58..0000000000
--- a/gyp/linux.gyp
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- 'includes': [
- '../platform/linux/mapboxgl-app.gypi',
- ],
-
- 'conditions': [
- ['test', { 'includes': [ '../test/test.gypi' ] } ],
- ['offline', { 'includes': [ '../bin/offline.gypi' ] } ],
- ['render', { 'includes': [ '../bin/render.gypi' ] } ],
- ],
-}
diff --git a/gyp/mbgl.gyp b/gyp/mbgl.gyp
deleted file mode 100644
index ccf176eb67..0000000000
--- a/gyp/mbgl.gyp
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- 'includes': [
- 'common.gypi',
- 'shaders.gypi',
- 'version.gypi',
- 'certificates.gypi',
- 'core.gypi',
- 'none.gypi',
- ],
-
- 'targets': [
- { 'target_name': 'loop',
- 'product_name': 'mbgl-loop',
- 'type': 'static_library',
- 'standalone_static_library': 1,
-
- 'include_dirs': [
- '../include',
- '../src',
- ],
-
- 'conditions': [
- ['loop_lib == "darwin"', {
- 'sources': [
- '../platform/darwin/src/async_task.cpp',
- '../platform/darwin/src/run_loop.cpp',
- '../platform/darwin/src/timer.cpp',
- ],
- }],
-
- ['loop_lib == "android"', {
- 'sources': [
- '../platform/android/src/async_task.cpp',
- '../platform/android/src/run_loop.cpp',
- '../platform/android/src/timer.cpp',
- ],
- }],
-
- ['loop_lib == "uv"', {
- 'sources': [
- '../platform/default/async_task.cpp',
- '../platform/default/run_loop.cpp',
- '../platform/default/timer.cpp',
- ],
-
- 'cflags_cc': [
- '<@(libuv_cflags)',
- ],
-
- 'link_settings': {
- 'libraries': [
- '<@(libuv_static_libs)',
- '<@(libuv_ldflags)',
- ],
- },
-
- 'conditions': [
- ['OS == "mac"', {
- 'xcode_settings': {
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(libuv_cflags)' ],
- }
- }]
- ],
- }]
- ],
- },
- ],
-
- 'conditions': [
- ['headless_lib == "cgl" and host == "osx"', { 'includes': [ 'headless-cgl.gypi' ] } ],
- ['headless_lib == "eagl" and host == "ios"', { 'includes': [ 'headless-eagl.gypi' ] } ],
- ['headless_lib == "glx" and host == "linux"', { 'includes': [ 'headless-glx.gypi' ] } ],
- ['platform_lib == "osx" and host == "osx"', { 'includes': [ 'platform-osx.gypi' ] } ],
- ['platform_lib == "ios" and host == "ios"', { 'includes': [ 'platform-ios.gypi' ] } ],
- ['platform_lib == "linux"', { 'includes': [ 'platform-linux.gypi' ] } ],
- ['platform_lib == "android" and host == "android"', { 'includes': [ 'platform-android.gypi' ] } ],
- ['http_lib == "curl"', { 'includes': [ 'http-curl.gypi' ] } ],
- ['http_lib == "nsurl" and (host == "osx" or host == "ios")', { 'includes': [ 'http-nsurl.gypi' ] } ],
- ['http_lib == "android" and host == "android"', { 'includes': [ 'http-android.gypi' ] } ],
- ['asset_lib == "fs"', { 'includes': [ 'asset-fs.gypi' ] } ],
- ['asset_lib == "zip"', { 'includes': [ 'asset-zip.gypi' ] } ],
- ],
-}
diff --git a/gyp/none.gypi b/gyp/none.gypi
deleted file mode 100644
index ce748bfe6f..0000000000
--- a/gyp/none.gypi
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- 'targets': [
- { 'target_name': 'http-none',
- 'product_name': 'mbgl-http-none',
- 'type': 'none',
- },
- { 'target_name': 'asset-none',
- 'product_name': 'mbgl-asset-none',
- 'type': 'none',
- },
- { 'target_name': 'cache-none',
- 'product_name': 'mbgl-cache-none',
- 'type': 'none',
- },
- { 'target_name': 'headless-none',
- 'product_name': 'mbgl-headless-none',
- 'type': 'none',
- },
- ],
-}
diff --git a/gyp/osx.gyp b/gyp/osx.gyp
deleted file mode 100644
index 18d5fe1524..0000000000
--- a/gyp/osx.gyp
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- 'includes': [
- '../platform/osx/app/mapboxgl-app.gypi',
- '../platform/osx/sdk/framework-osx.gypi',
- '../platform/osx/test/osxtest.gypi',
- '../platform/linux/mapboxgl-app.gypi',
- ],
-
- 'conditions': [
- ['test', { 'includes': [ '../test/test.gypi' ] } ],
- ['offline', { 'includes': [ '../bin/offline.gypi' ] } ],
- ['render', { 'includes': [ '../bin/render.gypi' ] } ],
- ],
-}
diff --git a/gyp/platform-android.gypi b/gyp/platform-android.gypi
deleted file mode 100644
index 38692c32be..0000000000
--- a/gyp/platform-android.gypi
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- 'targets': [
- { 'target_name': 'platform-android',
- 'product_name': 'mbgl-platform-android',
- 'type': 'static_library',
- 'standalone_static_library': 1,
- 'hard_dependency': 1,
- 'dependencies': [
- 'version',
- 'loop',
- ],
-
- 'sources': [
- '../platform/android/src/log_android.cpp',
- '../platform/default/thread.cpp',
- '../platform/default/string_stdlib.cpp',
- '../platform/default/image.cpp',
- '../platform/default/png_reader.cpp',
- '../platform/default/jpeg_reader.cpp',
- '../platform/default/default_file_source.cpp',
- '../platform/default/online_file_source.cpp',
- '../platform/default/mbgl/storage/offline.hpp',
- '../platform/default/mbgl/storage/offline.cpp',
- '../platform/default/mbgl/storage/offline_database.hpp',
- '../platform/default/mbgl/storage/offline_database.cpp',
- '../platform/default/mbgl/storage/offline_download.hpp',
- '../platform/default/mbgl/storage/offline_download.cpp',
- '../platform/default/sqlite3.hpp',
- '../platform/default/sqlite3.cpp',
- ],
-
- 'variables': {
- 'cflags_cc': [
- '<@(libpng_cflags)',
- '<@(libjpeg-turbo_cflags)',
- '<@(nunicode_cflags)',
- '<@(boost_cflags)',
- '<@(sqlite_cflags)',
- '<@(rapidjson_cflags)',
- '<@(variant_cflags)',
- ],
- 'ldflags': [
- '<@(libpng_ldflags)',
- '<@(libjpeg-turbo_ldflags)',
- '<@(nunicode_ldflags)',
- '<@(sqlite_ldflags)',
- '<@(zlib_ldflags)',
- ],
- 'libraries': [
- '<@(libpng_static_libs)',
- '<@(libjpeg-turbo_static_libs)',
- '<@(nunicode_static_libs)',
- '<@(sqlite_static_libs)',
- '<@(zlib_static_libs)',
- ],
- },
-
- 'include_dirs': [
- '../include',
- '../src',
- '../platform/default',
- ],
-
- 'conditions': [
- ['OS == "mac"', {
- 'xcode_settings': {
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
- }
- }, {
- 'cflags_cc': [ '<@(cflags_cc)' ],
- }]
- ],
-
- 'link_settings': {
- 'conditions': [
- ['OS == "mac"', {
- 'libraries': [ '<@(libraries)' ],
- 'xcode_settings': { 'OTHER_LDFLAGS': [ '<@(ldflags)' ] }
- }, {
- 'libraries': [ '<@(libraries)', '<@(ldflags)' ],
- }]
- ],
- },
-
- 'direct_dependent_settings': {
- 'include_dirs': [
- '../include',
- ],
- },
- },
- ],
-}
diff --git a/gyp/platform-ios.gypi b/gyp/platform-ios.gypi
deleted file mode 100644
index d1e62e7242..0000000000
--- a/gyp/platform-ios.gypi
+++ /dev/null
@@ -1,141 +0,0 @@
-{
- 'targets': [
- {
- 'target_name': 'platform-ios',
- 'product_name': 'mbgl-platform-ios',
- 'type': 'static_library',
- 'standalone_static_library': 1,
- 'hard_dependency': 1,
- 'dependencies': [
- 'version',
- 'loop',
- ],
-
- 'sources': [
- '../platform/default/default_file_source.cpp',
- '../platform/default/online_file_source.cpp',
- '../platform/default/mbgl/storage/offline.hpp',
- '../platform/default/mbgl/storage/offline.cpp',
- '../platform/default/mbgl/storage/offline_database.hpp',
- '../platform/default/mbgl/storage/offline_database.cpp',
- '../platform/default/mbgl/storage/offline_download.hpp',
- '../platform/default/mbgl/storage/offline_download.cpp',
- '../platform/default/sqlite3.hpp',
- '../platform/default/sqlite3.cpp',
- '../platform/darwin/src/log_nslog.mm',
- '../platform/darwin/src/string_nsstring.mm',
- '../platform/darwin/src/image.mm',
- '../platform/darwin/src/nsthread.mm',
- '../platform/darwin/src/reachability.m',
- '../platform/darwin/src/NSException+MGLAdditions.h',
- '../platform/darwin/src/NSString+MGLAdditions.h',
- '../platform/darwin/src/NSString+MGLAdditions.m',
- '../platform/darwin/src/MGLTypes.m',
- '../platform/darwin/src/MGLStyle.mm',
- '../platform/darwin/src/MGLGeometry_Private.h',
- '../platform/darwin/src/MGLGeometry.mm',
- '../platform/darwin/src/MGLShape.m',
- '../platform/darwin/src/MGLMultiPoint_Private.h',
- '../platform/darwin/src/MGLMultiPoint.mm',
- '../platform/darwin/src/MGLPointAnnotation.m',
- '../platform/darwin/src/MGLPolyline.mm',
- '../platform/darwin/src/MGLPolygon.mm',
- '../platform/darwin/src/MGLMapCamera.mm',
- '../platform/darwin/src/MGLOfflinePack.mm',
- '../platform/darwin/src/MGLOfflinePack_Private.h',
- '../platform/darwin/src/MGLOfflineStorage.mm',
- '../platform/darwin/src/MGLOfflineStorage_Private.h',
- '../platform/darwin/src/MGLOfflineRegion_Private.h',
- '../platform/darwin/src/MGLTilePyramidOfflineRegion.mm',
- '../platform/darwin/src/MGLAccountManager_Private.h',
- '../platform/darwin/src/MGLAccountManager.m',
- '../platform/darwin/src/NSBundle+MGLAdditions.h',
- '../platform/darwin/src/NSBundle+MGLAdditions.m',
- '../platform/darwin/src/NSProcessInfo+MGLAdditions.h',
- '../platform/darwin/src/NSProcessInfo+MGLAdditions.m',
- '../platform/ios/src/MGLMapboxEvents.h',
- '../platform/ios/src/MGLMapboxEvents.m',
- '../platform/ios/src/MGLAPIClient.h',
- '../platform/ios/src/MGLAPIClient.m',
- '../platform/ios/src/MGLLocationManager.h',
- '../platform/ios/src/MGLLocationManager.m',
- '../platform/ios/src/MGLMapView.mm',
- '../platform/ios/src/MGLUserLocation_Private.h',
- '../platform/ios/src/MGLUserLocation.m',
- '../platform/ios/src/MGLUserLocationAnnotationView.h',
- '../platform/ios/src/MGLUserLocationAnnotationView.m',
- '../platform/ios/src/MGLAnnotationImage_Private.h',
- '../platform/ios/src/MGLAnnotationImage.m',
- '../platform/ios/src/MGLCompactCalloutView.h',
- '../platform/ios/src/MGLCompactCalloutView.m',
- '../platform/ios/vendor/SMCalloutView/SMCalloutView.h',
- '../platform/ios/vendor/SMCalloutView/SMCalloutView.m',
- '../platform/ios/vendor/Fabric/FABAttributes.h',
- '../platform/ios/vendor/Fabric/FABKitProtocol.h',
- '../platform/ios/vendor/Fabric/Fabric.h',
- '../platform/ios/vendor/Fabric/Fabric+FABKits.h',
- ],
-
- 'variables': {
- 'cflags_cc': [
- '<@(boost_cflags)',
- '<@(sqlite_cflags)',
- '<@(zlib_cflags)',
- '<@(rapidjson_cflags)',
- '<@(variant_cflags)',
- ],
- 'ldflags': [
- '<@(sqlite_ldflags)',
- '<@(zlib_ldflags)',
- ],
- 'libraries': [
- '<@(sqlite_static_libs)',
- '<@(zlib_static_libs)',
- '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
- '$(SDKROOT)/System/Library/Frameworks/CoreLocation.framework',
- '$(SDKROOT)/System/Library/Frameworks/GLKit.framework',
- '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
- '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
- '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
- '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
- '$(SDKROOT)/System/Library/Frameworks/Security.framework',
- '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework',
- '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
- ],
- },
-
- 'include_dirs': [
- '../platform/ios/include',
- '../platform/darwin/include',
- '../include',
- '../src',
- '../platform/default',
- ],
-
- 'xcode_settings': {
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
- 'CLANG_ENABLE_OBJC_ARC': 'YES',
- 'CLANG_ENABLE_MODULES': 'YES',
- },
-
- 'link_settings': {
- 'libraries': [ '<@(libraries)' ],
- 'xcode_settings': {
- 'OTHER_LDFLAGS': [ '<@(ldflags)' ],
- },
- },
-
- 'direct_dependent_settings': {
- 'include_dirs': [
- '../platform/ios/include',
- '../platform/darwin/include',
- '../include',
- ],
- 'mac_bundle_resources': [
- '<!@(find ../platform/ios/resources -type f \! -name "README" \! -name \'.*\')',
- '<!@(find ../platform/default/resources -type f \! -name "README" \! -name \'.der\')',
- ],
- },
- },
- ],
-}
diff --git a/gyp/platform-linux.gypi b/gyp/platform-linux.gypi
deleted file mode 100644
index 3d2c042996..0000000000
--- a/gyp/platform-linux.gypi
+++ /dev/null
@@ -1,97 +0,0 @@
-{
- 'targets': [
- { 'target_name': 'platform-linux',
- 'product_name': 'mbgl-platform-linux',
- 'type': 'static_library',
- 'standalone_static_library': 1,
- 'hard_dependency': 1,
- 'dependencies': [
- 'version',
- 'loop',
- ],
-
- 'sources': [
- '../platform/default/log_stderr.cpp',
- '../platform/default/string_stdlib.cpp',
- '../platform/default/thread.cpp',
- '../platform/default/image.cpp',
- '../platform/default/webp_reader.cpp',
- '../platform/default/png_reader.cpp',
- '../platform/default/jpeg_reader.cpp',
- '../platform/default/default_file_source.cpp',
- '../platform/default/online_file_source.cpp',
- '../platform/default/mbgl/storage/offline.hpp',
- '../platform/default/mbgl/storage/offline.cpp',
- '../platform/default/mbgl/storage/offline_database.hpp',
- '../platform/default/mbgl/storage/offline_database.cpp',
- '../platform/default/mbgl/storage/offline_download.hpp',
- '../platform/default/mbgl/storage/offline_download.cpp',
- '../platform/default/sqlite3.hpp',
- '../platform/default/sqlite3.cpp',
- ],
-
- 'variables': {
- 'cflags_cc': [
- '<@(opengl_cflags)',
- '<@(libpng_cflags)',
- '<@(libjpeg-turbo_cflags)',
- '<@(nunicode_cflags)',
- '<@(boost_cflags)',
- '<@(sqlite_cflags)',
- '<@(webp_cflags)',
- '<@(rapidjson_cflags)',
- '<@(variant_cflags)',
- ],
- 'ldflags': [
- '<@(libpng_ldflags)',
- '<@(libjpeg-turbo_ldflags)',
- '<@(nunicode_ldflags)',
- '<@(sqlite_ldflags)',
- '<@(zlib_ldflags)',
- '<@(webp_ldflags)',
- ],
- 'libraries': [
- '<@(libpng_static_libs)',
- '<@(libjpeg-turbo_static_libs)',
- '<@(nunicode_static_libs)',
- '<@(sqlite_static_libs)',
- '<@(zlib_static_libs)',
- '<@(webp_static_libs)',
- ],
- },
-
- 'include_dirs': [
- '../include',
- '../src',
- '../platform/default',
- ],
-
- 'conditions': [
- ['OS == "mac"', {
- 'xcode_settings': {
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
- }
- }, {
- 'cflags_cc': [ '<@(cflags_cc)' ],
- }]
- ],
-
- 'link_settings': {
- 'conditions': [
- ['OS == "mac"', {
- 'libraries': [ '<@(libraries)' ],
- 'xcode_settings': { 'OTHER_LDFLAGS': [ '<@(ldflags)' ] }
- }, {
- 'libraries': [ '<@(libraries)', '<@(ldflags)' ],
- }]
- ],
- },
-
- 'direct_dependent_settings': {
- 'include_dirs': [
- '../include',
- ],
- },
- },
- ],
-}
diff --git a/gyp/platform-osx.gypi b/gyp/platform-osx.gypi
deleted file mode 100644
index 8f81276d54..0000000000
--- a/gyp/platform-osx.gypi
+++ /dev/null
@@ -1,122 +0,0 @@
-{
- 'targets': [
- { 'target_name': 'platform-osx',
- 'product_name': 'mbgl-platform-osx',
- 'type': 'static_library',
- 'standalone_static_library': 1,
- 'hard_dependency': 1,
- 'dependencies': [
- 'version',
- 'loop',
- ],
-
- 'sources': [
- '../platform/default/default_file_source.cpp',
- '../platform/default/online_file_source.cpp',
- '../platform/default/mbgl/storage/offline.hpp',
- '../platform/default/mbgl/storage/offline.cpp',
- '../platform/default/mbgl/storage/offline_database.hpp',
- '../platform/default/mbgl/storage/offline_database.cpp',
- '../platform/default/mbgl/storage/offline_download.hpp',
- '../platform/default/mbgl/storage/offline_download.cpp',
- '../platform/default/sqlite3.hpp',
- '../platform/default/sqlite3.cpp',
- '../platform/darwin/src/log_nslog.mm',
- '../platform/darwin/src/string_nsstring.mm',
- '../platform/darwin/src/image.mm',
- '../platform/darwin/src/nsthread.mm',
- '../platform/darwin/src/reachability.m',
- '../platform/darwin/src/NSException+MGLAdditions.h',
- '../platform/darwin/src/NSString+MGLAdditions.h',
- '../platform/darwin/src/NSString+MGLAdditions.m',
- '../platform/darwin/src/MGLTypes.m',
- '../platform/darwin/src/MGLStyle.mm',
- '../platform/darwin/src/MGLGeometry_Private.h',
- '../platform/darwin/src/MGLGeometry.mm',
- '../platform/darwin/src/MGLShape.m',
- '../platform/darwin/src/MGLMultiPoint_Private.h',
- '../platform/darwin/src/MGLMultiPoint.mm',
- '../platform/darwin/src/MGLPointAnnotation.m',
- '../platform/darwin/src/MGLPolyline.mm',
- '../platform/darwin/src/MGLPolygon.mm',
- '../platform/darwin/src/MGLMapCamera.mm',
- '../platform/darwin/src/MGLOfflinePack.mm',
- '../platform/darwin/src/MGLOfflinePack_Private.h',
- '../platform/darwin/src/MGLOfflineStorage.mm',
- '../platform/darwin/src/MGLOfflineStorage_Private.h',
- '../platform/darwin/src/MGLOfflineRegion_Private.h',
- '../platform/darwin/src/MGLTilePyramidOfflineRegion.mm',
- '../platform/darwin/src/MGLAccountManager_Private.h',
- '../platform/darwin/src/MGLAccountManager.m',
- '../platform/darwin/src/NSBundle+MGLAdditions.h',
- '../platform/darwin/src/NSBundle+MGLAdditions.m',
- '../platform/darwin/src/NSProcessInfo+MGLAdditions.h',
- '../platform/darwin/src/NSProcessInfo+MGLAdditions.m',
- '../platform/osx/src/MGLMapView_Private.h',
- '../platform/osx/src/MGLMapView.mm',
- '../platform/osx/src/MGLMapView+IBAdditions.m',
- '../platform/osx/src/MGLOpenGLLayer.h',
- '../platform/osx/src/MGLOpenGLLayer.mm',
- '../platform/osx/src/MGLCompassCell.h',
- '../platform/osx/src/MGLCompassCell.m',
- '../platform/osx/src/MGLAttributionButton.h',
- '../platform/osx/src/MGLAttributionButton.m',
- '../platform/osx/src/MGLAnnotationImage.m',
- ],
-
- 'variables': {
- 'cflags_cc': [
- '<@(boost_cflags)',
- '<@(sqlite_cflags)',
- '<@(zlib_cflags)',
- '<@(rapidjson_cflags)',
- '<@(variant_cflags)',
- ],
- 'ldflags': [
- '<@(zlib_ldflags)',
- ],
- 'libraries': [
- '<@(sqlite_static_libs)',
- '<@(zlib_static_libs)',
- '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
- '$(SDKROOT)/System/Library/Frameworks/CoreLocation.framework',
- '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
- '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
- '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework',
- ],
- },
-
- 'include_dirs': [
- '../platform/osx/include',
- '../platform/darwin/include',
- '../include',
- '../src',
- '../platform/default',
- ],
-
- 'xcode_settings': {
- 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
- 'CLANG_ENABLE_OBJC_ARC': 'YES',
- 'CLANG_ENABLE_MODULES': 'YES',
- },
-
- 'link_settings': {
- 'libraries': [ '<@(libraries)' ],
- 'xcode_settings': {
- 'OTHER_LDFLAGS': [ '<@(ldflags)' ],
- },
- },
-
- 'direct_dependent_settings': {
- 'include_dirs': [
- '../platform/osx/include',
- '../platform/darwin/include',
- '../include',
- ],
- 'mac_bundle_resources': [
- '<!@(find ../platform/osx/src/resources -type f \! -name \'.*\')',
- ],
- },
- },
- ],
-}
diff --git a/gyp/shaders.gypi b/gyp/shaders.gypi
deleted file mode 100644
index 83d40a52f9..0000000000
--- a/gyp/shaders.gypi
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- 'targets': [
- {
- 'target_name': 'shaders',
- 'type': 'none',
- 'hard_dependency': 1,
-
- 'sources': [
- '<!@(find ../src/mbgl/shader -name "*.glsl")'
- ],
-
- 'rules': [
- {
- 'rule_name': 'Build Shaders',
- 'message': 'Building shader',
- 'extension': 'glsl',
- 'inputs': [ '../scripts/build-shaders.py' ],
- 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/include/mbgl/shader/<(RULE_INPUT_ROOT).hpp' ],
- 'action': [ '../scripts/build-shaders.py', '<(RULE_INPUT_PATH)', '<(SHARED_INTERMEDIATE_DIR)/include/mbgl/shader/<(RULE_INPUT_ROOT).hpp' ],
- 'process_outputs_as_sources': 1,
- }
- ],
-
- 'direct_dependent_settings': {
- 'include_dirs': [
- '<(SHARED_INTERMEDIATE_DIR)/include',
- ]
- }
-
- },
- ]
-}
diff --git a/gyp/target-ios-bundle.gypi b/gyp/target-ios-bundle.gypi
deleted file mode 100644
index 24fa8b1437..0000000000
--- a/gyp/target-ios-bundle.gypi
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- 'product_extension': 'app',
- 'mac_bundle': 1,
- 'includes': [ 'target-ios.gypi' ],
-}
diff --git a/gyp/target-ios.gypi b/gyp/target-ios.gypi
deleted file mode 100644
index 6506ee0622..0000000000
--- a/gyp/target-ios.gypi
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- 'product_extension': 'app',
- 'xcode_settings': {
- 'SDKROOT': 'iphoneos',
- 'SUPPORTED_PLATFORMS': 'iphonesimulator iphoneos',
- 'IPHONEOS_DEPLOYMENT_TARGET': '8.0',
- 'TARGETED_DEVICE_FAMILY': '1,2',
- 'COPY_PHASE_STRIP': 'NO',
- 'CLANG_ENABLE_OBJC_ARC': 'YES',
- 'CLANG_ENABLE_MODULES': 'YES',
- },
- 'configurations': {
- 'Debug': {
- 'xcode_settings': {
- 'CODE_SIGN_IDENTITY': 'iPhone Developer',
- 'COPY_PHASE_STRIP': 'NO',
- },
- },
- 'Release': {
- 'xcode_settings': {
- 'CODE_SIGN_IDENTITY': 'iPhone Distribution',
- 'ARCHS': [ "armv7", "armv7s", "arm64", "i386", "x86_64" ],
- 'COPY_PHASE_STRIP': 'YES',
- },
- },
- },
-}
diff --git a/gyp/version.gypi b/gyp/version.gypi
deleted file mode 100644
index 4efdd079a8..0000000000
--- a/gyp/version.gypi
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- 'targets': [
- {
- 'target_name': 'version',
- 'type': 'none',
- 'hard_dependency': 1,
- 'actions': [
- {
- 'action_name': 'Build Version Header',
- 'inputs': [
- '../scripts/build-version.py',
- ],
- 'outputs': [
- '<(SHARED_INTERMEDIATE_DIR)/include/mbgl/util/version.hpp',
- ],
- 'action': ['<@(_inputs)', '<(SHARED_INTERMEDIATE_DIR)'],
- }
- ],
- 'direct_dependent_settings': {
- 'sources': [
- '<(SHARED_INTERMEDIATE_DIR)/include/mbgl/util/version.hpp',
- ],
- 'include_dirs': [
- '<(SHARED_INTERMEDIATE_DIR)/include',
- ]
- }
- },
- ]
-}