diff options
author | Dane Springmeyer <dane@mapbox.com> | 2014-10-29 21:40:02 -0400 |
---|---|---|
committer | Dane Springmeyer <dane@mapbox.com> | 2014-10-29 21:40:02 -0400 |
commit | 761f753cbdba350411785ce4e82d4e843bf03224 (patch) | |
tree | b4c33738c6d5afe8a93a830e436d82ce8570e4f9 /gyp | |
parent | 9dbcf18d14c0054b9d090d8921c6caa01979382c (diff) | |
parent | 88361f02fa9df3d643ed6d5c3fc45b6898f0f32f (diff) | |
download | qtlocation-mapboxgl-761f753cbdba350411785ce4e82d4e843bf03224.tar.gz |
merge with mbgl-config
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/install.gypi | 16 | ||||
-rw-r--r-- | gyp/mbgl.gypi | 75 |
2 files changed, 91 insertions, 0 deletions
diff --git a/gyp/install.gypi b/gyp/install.gypi index 8fba986492..e7217219c8 100644 --- a/gyp/install.gypi +++ b/gyp/install.gypi @@ -18,6 +18,22 @@ { 'files': [ '<(PRODUCT_DIR)/libmbgl-<(platform).a' ], 'destination': '<(install_prefix)/lib' }, { 'files': [ '../include/mbgl' ], 'destination': '<(install_prefix)/include' } ], + 'actions': [ + { 'action_name': 'mbgl-config', + 'inputs': [ + '../utils/mbgl-config/mbgl-config.template.sh', + '../utils/mbgl-config/build.sh', + ], + 'outputs': [ + '<(install_prefix)/bin/mbgl-config', + ], + 'action': [ + './utils/mbgl-config/build.sh', + '<(install_prefix)', + '<(platform)', + ] + } + ] }, ] }], diff --git a/gyp/mbgl.gypi b/gyp/mbgl.gypi new file mode 100644 index 0000000000..0d914f46f4 --- /dev/null +++ b/gyp/mbgl.gypi @@ -0,0 +1,75 @@ +{ + 'targets': [ + { 'target_name': 'mbgl', + 'product_name': 'mbgl', + 'type': 'static_library', + 'standalone_static_library': 1, + '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)', + ] + }] + ] + } + } + ] +} |