Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[build] add missing files to Android build
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaefer committed Aug 5, 2016
1 parent 131cd8a commit da37ba1
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -425,15 +425,15 @@ build/android-$1/$(BUILDTYPE)/toolchain.cmake: platform/android/scripts/toolchai
$(ANDROID_ENV) $1 > build/android-$1/$(BUILDTYPE)/toolchain.cmake

build/android-$1/$(BUILDTYPE)/Makefile: build/android-$1/$(BUILDTYPE)/toolchain.cmake platform/android/config.cmake
cd build/android-$1/$(BUILDTYPE) && cmake ../../.. \
cd build/android-$1/$(BUILDTYPE) && cmake ../../.. -G Ninja \
-DCMAKE_TOOLCHAIN_FILE=build/android-$1/$(BUILDTYPE)/toolchain.cmake \
-DCMAKE_BUILD_TYPE=$(BUILDTYPE) \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DMBGL_PLATFORM=android

.PHONY: android-lib-$1
android-lib-$1: build/android-$1/$(BUILDTYPE)/Makefile
$(MAKE) -j$(JOBS) -C build/android-$1/$(BUILDTYPE) all
$(NINJA) -j$(JOBS) -C build/android-$1/$(BUILDTYPE) all

.PHONY: android-$1
android-$1: android-lib-$1
Expand Down
1 change: 0 additions & 1 deletion platform/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
Expand Down
40 changes: 39 additions & 1 deletion platform/android/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ macro(mbgl_platform_core)
PRIVATE platform/android/src/thread.cpp
PRIVATE platform/android/src/async_task.cpp
PRIVATE platform/android/src/run_loop.cpp
PRIVATE platform/android/src/run_loop_impl.hpp
PRIVATE platform/android/src/timer.cpp

# File source
Expand All @@ -34,10 +35,41 @@ macro(mbgl_platform_core)
PRIVATE platform/default/sqlite3.hpp

# Misc
PRIVATE platform/android/src/native_map_view.cpp
PRIVATE platform/android/src/log_android.cpp
PRIVATE platform/default/string_stdlib.cpp

# Conversion
PRIVATE platform/android/src/conversion/constant.hpp
PRIVATE platform/android/src/conversion/conversion.hpp
PRIVATE platform/android/src/style/conversion/function.hpp
PRIVATE platform/android/src/style/conversion/property_value.hpp
PRIVATE platform/android/src/style/conversion/types.hpp
PRIVATE platform/android/src/style/conversion/types_string_values.hpp

# Style
PRIVATE platform/android/src/style/value.cpp
PRIVATE platform/android/src/style/value.hpp
PRIVATE platform/android/src/style/layers/background_layer.cpp
PRIVATE platform/android/src/style/layers/background_layer.hpp
PRIVATE platform/android/src/style/layers/circle_layer.cpp
PRIVATE platform/android/src/style/layers/circle_layer.hpp
PRIVATE platform/android/src/style/layers/custom_layer.cpp
PRIVATE platform/android/src/style/layers/custom_layer.hpp
PRIVATE platform/android/src/style/layers/fill_layer.cpp
PRIVATE platform/android/src/style/layers/fill_layer.hpp
PRIVATE platform/android/src/style/layers/layer.cpp
PRIVATE platform/android/src/style/layers/layer.hpp
PRIVATE platform/android/src/style/layers/layers.cpp
PRIVATE platform/android/src/style/layers/layers.hpp
PRIVATE platform/android/src/style/layers/line_layer.cpp
PRIVATE platform/android/src/style/layers/line_layer.hpp
PRIVATE platform/android/src/style/layers/raster_layer.cpp
PRIVATE platform/android/src/style/layers/raster_layer.hpp
PRIVATE platform/android/src/style/layers/symbol_layer.cpp
PRIVATE platform/android/src/style/layers/symbol_layer.hpp
PRIVATE platform/android/src/style/sources/sources.cpp
PRIVATE platform/android/src/style/sources/sources.hpp

# Image handling
PRIVATE platform/default/image.cpp
PRIVATE platform/default/png_reader.cpp
Expand Down Expand Up @@ -71,8 +103,14 @@ macro(mbgl_platform_core)
endmacro()

add_library(mapbox-gl SHARED
platform/android/src/native_map_view.cpp
platform/android/src/native_map_view.hpp
platform/android/src/jni.cpp
platform/android/src/jni.hpp
platform/android/src/attach_env.cpp
platform/android/src/attach_env.hpp
platform/android/src/java_types.cpp
platform/android/src/java_types.hpp
)

target_link_libraries(mapbox-gl
Expand Down

0 comments on commit da37ba1

Please sign in to comment.