From 29baacf3a5bb773d94d08d16b81c3cda45a44eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Thu, 29 Jan 2015 18:30:46 +0100 Subject: refactor makefile --- gyp/cache-sqlite.gypi | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 gyp/cache-sqlite.gypi (limited to 'gyp/cache-sqlite.gypi') diff --git a/gyp/cache-sqlite.gypi b/gyp/cache-sqlite.gypi new file mode 100644 index 0000000000..53af8dab59 --- /dev/null +++ b/gyp/cache-sqlite.gypi @@ -0,0 +1,64 @@ +{ + 'targets': [ + { 'target_name': 'cache-sqlite', + 'product_name': 'mbgl-cache-sqlite', + 'type': 'static_library', + 'standalone_static_library': 1, + 'hard_dependency': 1, + + 'sources': [ + '../platform/default/sqlite_cache.cpp', + '../platform/default/sqlite3.hpp', + '../platform/default/sqlite3.cpp', + '../platform/default/compression.hpp', + '../platform/default/compression.cpp', + ], + + 'include_dirs': [ + '../include', + ], + + 'variables': { + 'cflags_cc': [ + '<@(uv_cflags)', + '<@(sqlite3_cflags)', + ], + 'ldflags': [ + '<@(uv_ldflags)', + '<@(sqlite3_ldflags)', + '<@(zlib_ldflags)', + ], + 'libraries': [ + '<@(uv_static_libs)', + '<@(sqlite3_static_libs)', + '<@(zlib_static_libs)', + ], + }, + + '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' ], + }, + }, + ], +} -- cgit v1.2.1