Files
MapLibreParticleLab/platform/android/platform.gyp
Ivo van Dongen 9a3eadfd5b [android] #5610 - Initial Runtime Style Bindings
[android] #5610 - Adjusted public api after discussion

[android] #5610 - added jni binding for NativeMapView#getLayer

[android] #5610 - Added initial test Activity

[android] #5610 - Started on NativePeer implementation for Layer

[android] #5610 - replaced low-level jni code with high-level for native getLayer

[android] 5610 - completed basic layer peer class - constructible from java and c++

[android] #5610 - removed reference that was redundant and causing the finalizer exception

[android] #5610 - Added a property peer

[android] #5610 - added value type to do type conversions - wip

[android] #5610 - simplified property conversion approach - wrapped value with jenv

[android] #5610 - added some more value conversions

[android] #5610 - Finished conversion for basic types

[android] #5610 - allow color's to be set as either an android color int or a String to support all formats in the spec

[android] #5610 - encode color ints as rgba to retain alpha channel

[android] #5610 - recalculate classes after paint property

[android] #5610 - more examples

[android] #5610 - fixed the example

[android] #5610 - cleaned up example code before continueing

[android] #5610 - added layout property example

[android] #5610 - set visibility on layer

[android] #5610 - added removeLayer and example

[android] #5610 - added more type conversions

[android] #5610 - Started on peer classes for layer implementations - WIP

[android] #5610 - First complete layer subclass peer implementation

[android] #5610 - added a little bit of structure before adding the other layer types

[android] #5610 - generate the c++ headers from the style spec

[android] #5610 - make sure the visibility is set as a string

[android] #5610 - Generate c++ layer peer class implementations from the style spec

[android] #5610 - generate java layer peer classes

[android] #5610 - cleanup comments

[android] #5610 - register all c++ peer classes with jni

[android] #5610 - addLayer

[android] #5610 - comment out broken case

[android] #5610 - Sources api - very much WIP

[android] 5610 - GeoJson source implementation and geojson conversion

[android] #5610 - cleanup add source/layer example a bit

[android] #5610 - initial filter api

[android] #5610 - Added filter api on the relevant Layer classes

[android] #5610 - raster layer is not filterable

[android] #5610 - actually make it compile

[android] #5610 - completed filter implementation

[android] #5610 - Vector and Raster Source + examples

[android] #5610 - removed superfluous interface, moved filters to the correct package

[android] #5610 - fixed comments

[android] #5610 - moved tests to the right package

[android] #5610 - hide difference between paint and layout properties in public api, make more performant set method for proeprties

[android] #5610 - fix rebase issue
2016-07-26 16:29:26 -04:00

166 lines
4.5 KiB
Python

{
'variables': {
'loop_lib': 'android',
'OS': 'android',
'headless_lib': 'none',
'coverage': 0,
},
'includes': [
'../../mbgl.gypi',
],
'targets': [
{
'target_name': 'platform-lib',
'product_name': 'mapbox-gl',
'type': 'shared_library',
'hard_dependency': 1,
'dependencies': [
'core',
],
'include_dirs': [
'../default',
'../../include',
'../../src', # TODO: eliminate
],
'sources': [
'src/native_map_view.cpp',
'src/jni.cpp',
'src/java_types.cpp',
'src/attach_env.cpp',
'src/log_android.cpp',
'src/http_file_source.cpp',
'src/asset_file_source.cpp',
'src/thread.cpp',
'src/style/value.cpp',
'src/style/sources/sources.cpp',
'src/style/layers/layers.cpp',
'src/style/layers/layer.cpp',
'src/style/layers/background_layer.cpp',
'src/style/layers/circle_layer.cpp',
'src/style/layers/fill_layer.cpp',
'src/style/layers/line_layer.cpp',
'src/style/layers/raster_layer.cpp',
'src/style/layers/symbol_layer.cpp',
'../default/string_stdlib.cpp',
'../default/image.cpp',
'../default/png_reader.cpp',
'../default/jpeg_reader.cpp',
'../default/default_file_source.cpp',
'../default/online_file_source.cpp',
'../default/mbgl/storage/offline.hpp',
'../default/mbgl/storage/offline.cpp',
'../default/mbgl/storage/offline_database.hpp',
'../default/mbgl/storage/offline_database.cpp',
'../default/mbgl/storage/offline_download.hpp',
'../default/mbgl/storage/offline_download.cpp',
'../default/sqlite3.hpp',
'../default/sqlite3.cpp',
],
'cflags_cc': [
'<@(boost_cflags)',
'<@(geojson_cflags)',
'<@(rapidjson_cflags)',
'<@(nunicode_cflags)',
'<@(sqlite_cflags)',
'<@(jni.hpp_cflags)',
'<@(libzip_cflags)',
'<@(libpng_cflags)',
'<@(libjpeg-turbo_cflags)',
],
'link_settings': {
'libraries': [
'-llog',
'-landroid',
'-lEGL',
'-lGLESv2',
'-lstdc++',
'-latomic',
'<@(nunicode_static_libs)',
'<@(nunicode_ldflags)',
'<@(sqlite_static_libs)',
'<@(sqlite_ldflags)',
'<@(zlib_static_libs)',
'<@(zlib_ldflags)',
'<@(libzip_static_libs)',
'<@(libzip_ldflags)',
'<@(libpng_static_libs)',
'<@(libpng_ldflags)',
'<@(libjpeg-turbo_static_libs)',
'<@(libjpeg-turbo_ldflags)',
'<@(geojson_static_libs)'
],
},
},
{
'target_name': 'example-custom-layer-lib',
'product_name': 'example-custom-layer',
'type': 'shared_library',
'hard_dependency': 1,
'sources': [
'./src/example_custom_layer.cpp',
],
'include_dirs': [
'../../include',
],
'link_settings': {
'libraries': [
'-llog',
'-landroid',
'-lEGL',
'-lGLESv2',
'-lstdc++',
'-latomic',
],
},
},
{
'target_name': 'all',
'type': 'none',
'hard_dependency': 1,
'dependencies': [
'platform-lib',
'example-custom-layer-lib',
],
'variables': {
'pwd': '<!(pwd)',
},
'copies': [
{
'files': [
'../../common/ca-bundle.crt',
'../default/resources/api_mapbox_com-digicert.der',
'../default/resources/api_mapbox_com-geotrust.der',
'../default/resources/star_tilestream_net.der',
],
'destination': '<(DEPTH)/platform/android/MapboxGLAndroidSDK/src/main/assets'
},
],
'actions': [
{
'action_name': 'Strip mapbox library',
'inputs': [ '<(PRODUCT_DIR)/lib.target/libmapbox-gl.so' ],
'outputs': [ '<(DEPTH)/platform/android/MapboxGLAndroidSDK/src/main/jniLibs/$(JNIDIR)/libmapbox-gl.so' ],
'action': [ '$(STRIP)', '<@(_inputs)', '-o', '<@(_outputs)' ]
},
{
'action_name': 'Strip example custom layer library',
'inputs': [ '<(PRODUCT_DIR)/lib.target/libexample-custom-layer.so' ],
'outputs': [ '<(DEPTH)/platform/android//MapboxGLAndroidSDKTestApp/src/main/jniLibs/$(JNIDIR)/libexample-custom-layer.so' ],
'action': [ '$(STRIP)', '<@(_inputs)', '-o', '<@(_outputs)' ]
}
],
},
],
}