* 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.
98 lines
2.5 KiB
Python
98 lines
2.5 KiB
Python
{
|
|
'variables': {
|
|
'loop_lib': 'uv',
|
|
'headless_lib': 'glx',
|
|
},
|
|
'conditions': [
|
|
['OS == "mac"', {
|
|
'variables': {
|
|
'headless_lib': 'cgl',
|
|
}
|
|
}],
|
|
],
|
|
'includes': [
|
|
'../../mbgl.gypi',
|
|
'../../test/test.gypi',
|
|
'../../bin/glfw.gypi',
|
|
'../../bin/render.gypi',
|
|
'../../bin/offline.gypi',
|
|
],
|
|
'targets': [
|
|
{
|
|
'target_name': 'platform-lib',
|
|
'product_name': 'mbgl-platform-linux',
|
|
'type': 'static_library',
|
|
'standalone_static_library': 1,
|
|
'hard_dependency': 1,
|
|
'dependencies': [
|
|
'core',
|
|
],
|
|
|
|
'include_dirs': [
|
|
'../default',
|
|
'../../include',
|
|
'../../src', # TODO: eliminate
|
|
],
|
|
|
|
'sources': [
|
|
'../default/log_stderr.cpp',
|
|
'../default/string_stdlib.cpp',
|
|
'../default/thread.cpp',
|
|
'../default/image.cpp',
|
|
'../default/webp_reader.cpp',
|
|
'../default/png_reader.cpp',
|
|
'../default/jpeg_reader.cpp',
|
|
'../default/asset_file_source.cpp',
|
|
'../default/http_request_curl.cpp',
|
|
'../default/default_file_source.cpp',
|
|
'../default/online_file_source.cpp',
|
|
'../default/mbgl/storage/offline.hpp',
|
|
'../default/mbgl/storage/offline.cpp',
|
|
'../default/mbgl/storage/offline_database.hpp',
|
|
'../default/mbgl/storage/offline_database.cpp',
|
|
'../default/mbgl/storage/offline_download.hpp',
|
|
'../default/mbgl/storage/offline_download.cpp',
|
|
'../default/sqlite3.hpp',
|
|
'../default/sqlite3.cpp',
|
|
],
|
|
|
|
'cflags_cc': [
|
|
'<@(boost_cflags)',
|
|
'<@(nunicode_cflags)',
|
|
'<@(sqlite_cflags)',
|
|
'<@(rapidjson_cflags)',
|
|
'<@(variant_cflags)',
|
|
'<@(libcurl_cflags)',
|
|
'<@(libpng_cflags)',
|
|
'<@(libjpeg-turbo_cflags)',
|
|
'<@(webp_cflags)',
|
|
],
|
|
|
|
'link_settings': {
|
|
'libraries': [
|
|
'<@(nunicode_ldflags)',
|
|
'<@(nunicode_static_libs)',
|
|
'<@(sqlite_ldflags)',
|
|
'<@(sqlite_static_libs)',
|
|
'<@(zlib_ldflags)',
|
|
'<@(zlib_static_libs)',
|
|
'<@(libcurl_ldflags)',
|
|
'<@(libcurl_static_libs)',
|
|
'<@(libpng_ldflags)',
|
|
'<@(libpng_static_libs)',
|
|
'<@(libjpeg-turbo_ldflags)',
|
|
'<@(libjpeg-turbo_static_libs)',
|
|
'<@(webp_ldflags)',
|
|
'<@(webp_static_libs)',
|
|
],
|
|
},
|
|
|
|
'direct_dependent_settings': {
|
|
'include_dirs': [
|
|
'../include',
|
|
],
|
|
},
|
|
},
|
|
],
|
|
}
|