Skip to content

Android: Statically link ZenLib to MediaInfoLib#1242

Merged
JeromeMartinez merged 3 commits intoMediaArea:masterfrom
cjee21:android
Mar 12, 2026
Merged

Android: Statically link ZenLib to MediaInfoLib#1242
JeromeMartinez merged 3 commits intoMediaArea:masterfrom
cjee21:android

Conversation

@cjee21
Copy link
Collaborator

@cjee21 cjee21 commented Mar 10, 2026

So that we only have one libmediainfo.so in the APK and probably smaller too (I did not check). Also simplify the CMake file used for Android build and set the cmake_minimum_required to match MediaInfoLib. This also prevents the introduction of more .so files and makes it easier (only one new line of code) when we add Brotli in the future.

@JeromeMartinez
Copy link
Member

So that we only have one libmediainfo.so in the APK

Right, we didn't think to that but for this case it is better.

@JeromeMartinez
Copy link
Member

Looks fine (and 50 KiB smaller).

@cjee21 cjee21 force-pushed the android branch 2 times, most recently from c80fc92 to 318ae08 Compare March 11, 2026 12:00
@cjee21
Copy link
Collaborator Author

cjee21 commented Mar 11, 2026

I changed to use the newly added CMake config instead of relying on cppFlags. Totally eliminate any risk of the following happening:

https://github.com/android/ndk/issues/1693

Also removed the old MPEGTS_DUPLICATE_NO and added GRAPH_NO as well as switched manual UNICODE to ENABLE_UNICODE which ZenLib controls and sorted the arguments.

@cjee21 cjee21 force-pushed the android branch 2 times, most recently from c16df3f to 8784fe0 Compare March 12, 2026 08:35
@JeromeMartinez JeromeMartinez merged commit b575342 into MediaArea:master Mar 12, 2026
12 checks passed
@cjee21 cjee21 deleted the android branch March 12, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants