{ '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)', ], 'include_dirs': [ '../src', ], 'sources': [ './src/native_map_view.cpp', './src/jni.cpp', './src/attach_env.cpp', ], 'cflags_cc': [ '<@(boost_cflags)', '<@(variant_cflags)', '<@(jni.hpp_cflags)', ], 'libraries': [ '<@(libpng_static_libs)', '<@(libjpeg-turbo_static_libs)', '<@(sqlite_static_libs)', '<@(nunicode_static_libs)', '<@(libzip_static_libs)', ], 'variables': { 'ldflags': [ '-llog', '-landroid', '-lEGL', '-lGLESv2', '-lstdc++', '-latomic', '<@(libpng_ldflags)', '<@(libjpeg-turbo_ldflags)', '<@(sqlite_ldflags)', '<@(zlib_ldflags)', '<@(libzip_ldflags)', ], }, 'conditions': [ ['OS == "mac"', { 'xcode_settings': { 'OTHER_LDFLAGS': [ '<@(ldflags)' ], } }, { 'libraries': [ '<@(ldflags)' ], }] ], }, { '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', ], 'variables': { 'ldflags': [ '-llog', '-landroid', '-lEGL', '-lGLESv2', '-lstdc++', '-latomic', ], }, 'conditions': [ ['OS == "mac"', { 'xcode_settings': { 'OTHER_LDFLAGS': [ '<@(ldflags)' ], } }, { 'libraries': [ '<@(ldflags)' ], }] ], }, { 'target_name': 'androidapp', 'type': 'none', 'hard_dependency': 1, 'dependencies': [ 'android-lib', 'example-custom-layer-lib', ], 'variables': { 'pwd': '