diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-13 19:08:50 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-13 23:32:07 +0300 |
commit | a40ff5188b94767fe1ac7b867b779e6bbbca624c (patch) | |
tree | dfb6276ed89da5685390315762cb75d87fa44f24 | |
parent | bfd1d9d1bf79e38fd7478513556e29142546abc7 (diff) | |
download | qtlocation-mapboxgl-a40ff5188b94767fe1ac7b867b779e6bbbca624c.tar.gz |
[build] Separate headers gen in a specific target
-rw-r--r-- | mbgl.gypi | 47 |
1 files changed, 32 insertions, 15 deletions
@@ -125,26 +125,17 @@ }, 'targets': [ { - 'target_name': 'core', - 'product_name': 'mbgl-core', - 'type': 'static_library', - 'standalone_static_library': 1, - 'hard_dependency': 1, + 'target_name': 'headers', + 'type': 'none', 'sources': [ - '<!@(find <(DEPTH)/src -name "*.hpp")', - '<!@(find <(DEPTH)/src -name "*.cpp")', - '<!@(find <(DEPTH)/src -name "*.c")', - '<!@(find <(DEPTH)/src -name "*.h")', - '<!@(find <(DEPTH)/include -name "*.hpp")', - '<!@(find <(DEPTH)/include -name "*.h")', '<!@(find -H <(DEPTH)/node_modules/mapbox-gl-shaders -name "*.glsl")', '<(SHARED_INTERMEDIATE_DIR)/include/mbgl/util/version.hpp', ], 'rules': [ { - 'rule_name': 'Build Shaders', + 'rule_name': 'shaders', 'message': 'Building shader', 'extension': 'glsl', 'inputs': [ '<(DEPTH)/scripts/build-shaders.py' ], @@ -156,17 +147,43 @@ 'actions': [ { - 'action_name': 'Build Version Header', + 'action_name': 'version', + 'message': 'Bulding version header', 'inputs': [ '<(DEPTH)/scripts/build-version.py', ], 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/include/mbgl/util/version.hpp', ], 'action': [ '<@(_inputs)', '<(SHARED_INTERMEDIATE_DIR)' ], - } + }, + ], + + 'direct_dependent_settings': { + 'include_dirs': [ + '<(SHARED_INTERMEDIATE_DIR)/include', + ], + }, + }, + { + 'target_name': 'core', + 'product_name': 'mbgl-core', + 'type': 'static_library', + 'standalone_static_library': 1, + 'hard_dependency': 1, + + 'dependencies': [ + 'headers', + ], + + 'sources': [ + '<!@(find <(DEPTH)/src -name "*.hpp")', + '<!@(find <(DEPTH)/src -name "*.cpp")', + '<!@(find <(DEPTH)/src -name "*.c")', + '<!@(find <(DEPTH)/src -name "*.h")', + '<!@(find <(DEPTH)/include -name "*.hpp")', + '<!@(find <(DEPTH)/include -name "*.h")', ], 'include_dirs': [ 'include', 'src', - '<(SHARED_INTERMEDIATE_DIR)/include', ], 'variables': { |