-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Integrate CMake build into Gradle + Android Studio #8363
Conversation
@kkaefer, thanks for your PR! By analyzing this pull request, we identified @tmpsantos, @jfirebaugh and @1ec5 to be potential reviewers. |
99a9033
to
1cf44c0
Compare
aadcd2c
to
42cc60a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working great! Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it! Created a folllow-up issue for updating the project documentation in #8390. Thanks for picking this up! 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌 C++ debugging worked on the first try.
platform/android/config.cmake
Outdated
@@ -250,11 +250,6 @@ target_link_libraries(mapbox-gl | |||
PUBLIC -Wl,--gc-sections | |||
) | |||
|
|||
# Create a stripped version of the library and copy it to the JNIDIR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this still happen somewhere else? Do we need to update metrics.sh?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before:
200,816,848 bytes: build/android-arm-v8-21/Release/libmapbox-gl.so
5,510,144 bytes: platform/android/MapboxGLAndroidSDK/src/main/jniLibs/arm64-v8a/libmapbox-gl.so
after:
201,035,760 bytes: platform/android/MapboxGLAndroidSDK/build/intermediates/cmake/release/obj/arm64-v8a/libmapbox-gl.so
5,510,144 bytes: platform/android/MapboxGLAndroidSDK/build/intermediates/bundles/default/jni/arm64-v8a/libmapbox-gl.so
The Gradle build automatically strips the symbols before putting them into the APK.
Given that the output path is now different, I also updated metrics.sh
.
42cc60a
to
05baea5
Compare
No description provided.