diff options
Diffstat (limited to 'gyp/mbgl-android.gypi')
-rw-r--r-- | gyp/mbgl-android.gypi | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/gyp/mbgl-android.gypi b/gyp/mbgl-android.gypi new file mode 100644 index 0000000000..21a6771d7f --- /dev/null +++ b/gyp/mbgl-android.gypi @@ -0,0 +1,79 @@ +{ + 'targets': [ + { 'target_name': 'mbgl-android', + 'product_name': 'mbgl-android', + 'type': 'static_library', + 'standalone_static_library': 1, + 'hard_dependency': 1, + 'variables': { + 'cflags_cc': [ + '<@(png_cflags)', + '<@(jpeg_cflags)', + '<@(uv_cflags)', + '<@(curl_cflags)', + '<@(nu_cflags)', + '<@(zip_cflags)', + '<@(openssl_cflags)', + '-I<(boost_root)/include', + ], + 'cflags': [ + '<@(uv_cflags)', + '<@(nu_cflags)', + ], + 'ldflags': [ + '<@(png_ldflags)', + '<@(jpeg_ldflags)', + '<@(uv_ldflags)', + '<@(curl_ldflags)', + '<@(nu_ldflags)', + '<@(zip_ldflags)', + ], + }, + 'sources': [ + '../platform/android/cache_database_data.cpp', + '../platform/android/log_android.cpp', + '../platform/android/asset_request_baton_libzip.cpp', + '../platform/default/string_stdlib.cpp', + '../platform/default/http_request_baton_curl.cpp', + '../platform/default/image.cpp', + '../platform/default/image_reader.cpp', + '../platform/default/png_reader.cpp', + '../platform/default/jpeg_reader.cpp', + '../platform/default/caching_http_file_source.cpp', + ], + 'include_dirs': [ + '../include', + ], + 'link_settings': { + 'libraries': [ + '<@(png_static_libs)', + ], + }, + 'conditions': [ + ['OS == "mac"', { + 'xcode_settings': { + 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ], + 'OTHER_CFLAGS': [ '<@(cflags)' ], + } + }, { + 'cflags_cc': [ '<@(cflags_cc)' ], + 'cflags': [ '<@(cflags)' ], + }] + ], + 'direct_dependent_settings': { + 'include_dirs': [ + '../include', + ], + 'conditions': [ + ['OS == "mac"', { + 'xcode_settings': { + 'OTHER_LDFLAGS': [ '<@(ldflags)' ], + } + }, { + 'ldflags': [ '<@(ldflags)' ], + }] + ], + }, + }, + ], +} |