diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-01-30 11:48:29 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-02-04 10:49:09 +0100 |
commit | 50d78fde85a6d2cee2e28f3681b4808b69133088 (patch) | |
tree | 99d764aee3f607f58d417d90b768512628330a09 /gyp/install.gypi | |
parent | 4b3689d18e2ef12ade8471b2f0c12db7d92a5e8d (diff) | |
download | qtlocation-mapboxgl-50d78fde85a6d2cee2e28f3681b4808b69133088.tar.gz |
fix install script
Diffstat (limited to 'gyp/install.gypi')
-rw-r--r-- | gyp/install.gypi | 101 |
1 files changed, 32 insertions, 69 deletions
diff --git a/gyp/install.gypi b/gyp/install.gypi index cd5bdf30d6..ac7abad1df 100644 --- a/gyp/install.gypi +++ b/gyp/install.gypi @@ -1,76 +1,39 @@ { - 'conditions': [ - ['install_prefix != ""', { - 'targets': [ - { 'target_name': 'install', - 'type': 'none', - 'hard_dependency': 1, - 'dependencies': [ - 'core', - 'platform-<(platform_lib)', - 'http-<(http_lib)', - 'asset-<(asset_lib)', - 'cache-<(cache_lib)', - 'headless-<(headless_lib)', - 'standalone', + 'targets': [ + { 'target_name': 'install', + 'type': 'none', + 'hard_dependency': 1, + 'dependencies': [ + 'core', + 'platform-<(platform_lib)', + 'http-<(http_lib)', + 'asset-<(asset_lib)', + 'cache-<(cache_lib)', + 'headless-<(headless_lib)', + 'standalone', + ], + 'copies': [ + { 'files': [ '<(PRODUCT_DIR)/libmbgl.a' ], 'destination': '<(install_prefix)/lib' }, + { 'files': [ '../include/mbgl' ], 'destination': '<(install_prefix)/include' }, + { 'files': [ '<(SHARED_INTERMEDIATE_DIR)/include/mbgl/util/version.hpp' ], 'destination': '<(install_prefix)/include/mbgl/util' }, + ], + + 'actions': [ + { 'action_name': 'mbgl-config', + 'inputs': [ + '../utils/mbgl-config/mbgl-config.template.sh', + '../utils/mbgl-config/build.sh', ], - 'copies': [ - { 'files': [ '<(standalone_product_dir)/libmbgl.a' ], 'destination': '<(install_prefix)/lib' }, - { 'files': [ '<(PRODUCT_DIR)/libmbgl-core.a' ], 'destination': '<(install_prefix)/lib' }, - { 'files': [ '<(PRODUCT_DIR)/lib<(headless_lib).a' ], 'destination': '<(install_prefix)/lib' }, - { 'files': [ '<(PRODUCT_DIR)/lib<(platform_lib).a' ], 'destination': '<(install_prefix)/lib' }, - { 'files': [ '<(PRODUCT_DIR)/lib<(http_lib).a' ], 'destination': '<(install_prefix)/lib' }, - { 'files': [ '<(PRODUCT_DIR)/lib<(asset_lib).a' ], 'destination': '<(install_prefix)/lib' }, - { 'files': [ '<(PRODUCT_DIR)/lib<(cache_lib).a' ], 'destination': '<(install_prefix)/lib' }, - { 'files': [ '../include/mbgl' ], 'destination': '<(install_prefix)/include' }, + 'outputs': [ + '<(install_prefix)/bin/mbgl-config', ], - 'variables': { - 'conditions': [ - ['OS == "linux"', { - 'other_ldflags': [ - '<@(nu_static_libs)', - '<@(png_static_libs)', - '<@(jpeg_static_libs)', - '<@(glfw3_static_libs)', - '<@(glfw3_ldflags)', - ] - }, { - 'other_ldflags': [ ] - }] - ], - }, - '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)', - '<@(sqlite3_static_libs)', - '<@(sqlite3_ldflags)', - '<@(curl_ldflags)', - '<@(png_ldflags)', - '<@(other_ldflags)' - ] - } + 'action': [ + './utils/mbgl-config/build.sh', + '<(install_prefix)', + '<(PRODUCT_DIR)/libmbgl.a.ldflags', ] - }, - { 'target_name': 'copy_version', - 'type': 'none', - 'hard_dependency': 1, - 'dependencies': [ - 'install', - ], - 'copies': [ - { 'files': [ '<(SHARED_INTERMEDIATE_DIR)/include/mbgl/util/version.hpp' ], 'destination': '<(install_prefix)/include/mbgl/util' }, - ], } ] - }], - ], + }, + ] } |