diff options
author | Leith Bade <leith@mapbox.com> | 2015-10-25 01:07:16 +1100 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2015-10-25 01:07:16 +1100 |
commit | 39911e581c7bc82116c1c70608f246924de33b85 (patch) | |
tree | a66716809ec61f742f1d1fbec5297a68504adfd2 /platform/android/mapboxgl-app.gypi | |
parent | d2e01290ebc1f9b894b4b2d05e0e7c22d876e40b (diff) | |
download | qtlocation-mapboxgl-39911e581c7bc82116c1c70608f246924de33b85.tar.gz |
[android] Move android files
Fixes #2032
Diffstat (limited to 'platform/android/mapboxgl-app.gypi')
-rw-r--r-- | platform/android/mapboxgl-app.gypi | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/platform/android/mapboxgl-app.gypi b/platform/android/mapboxgl-app.gypi new file mode 100644 index 0000000000..82ed377d31 --- /dev/null +++ b/platform/android/mapboxgl-app.gypi @@ -0,0 +1,101 @@ +{ + 'includes': [ + '../../gyp/common.gypi', + ], + 'targets': [ + { 'target_name': 'android-lib', + 'product_name': 'mapbox-gl', + 'type': 'shared_library', + 'hard_dependency': 1, + + 'dependencies': [ + '../mbgl.gyp:core', + '../mbgl.gyp:platform-<(platform_lib)', + '../mbgl.gyp:http-<(http_lib)', + '../mbgl.gyp:asset-<(asset_lib)', + '../mbgl.gyp:cache-<(cache_lib)', + ], + + 'sources': [ + './native_map_view.cpp', + './jni.cpp', + ], + + 'cflags_cc': [ + '<@(boost_cflags)', + '<@(variant_cflags)', + ], + 'libraries': [ + '<@(openssl_static_libs)', + '<@(libcurl_static_libs)', + '<@(libpng_static_libs)', + '<@(jpeg_static_libs)', + '<@(sqlite_static_libs)', + '<@(libuv_static_libs)', + '<@(nunicode_static_libs)', + '<@(libzip_static_libs)', + ], + 'variables': { + 'ldflags': [ + '-llog', + '-landroid', + '-lEGL', + '-lGLESv2', + '-lstdc++', + '-latomic', + '<@(libpng_ldflags)', + '<@(jpeg_ldflags)', + '<@(sqlite_ldflags)', + '<@(openssl_ldflags)', + '<@(libcurl_ldflags)', + '<@(zlib_ldflags)', + '<@(libzip_ldflags)', + ], + }, + 'conditions': [ + ['OS == "mac"', { + 'xcode_settings': { + 'OTHER_LDFLAGS': [ '<@(ldflags)' ], + } + }, { + 'libraries': [ '<@(ldflags)' ], + }] + ], + }, + + + { 'target_name': 'androidapp', + 'type': 'none', + 'hard_dependency': 1, + + 'variables': { + 'pwd': '<!(pwd)', + }, + + 'copies': [ + { + 'files': [ + '../../common/ca-bundle.crt', + '../../styles/styles' + ], + 'destination': '<(pwd)/../android/MapboxGLAndroidSDK/src/main/assets' + }, + { + 'files': [ + '<(PRODUCT_DIR)/obj.target' + ], + 'destination': '<(pwd)/../android/MapboxGLAndroidSDK/src/main' + }, + ], + + 'actions': [ + { + 'action_name': 'Strip dynamic library', + 'inputs': [ '<(PRODUCT_DIR)/lib.target/libmapbox-gl.so' ], + 'outputs': [ '<(pwd)/../android/MapboxGLAndroidSDK/src/main/jniLibs/$(JNIDIR)/libmapbox-gl.so' ], + 'action': [ '$(STRIP)', '<@(_inputs)', '-o', '<@(_outputs)' ] + }, + ], + }, + ], +} |