Sep 1, 2018 · 1 min read
Both Android.mk and Application.mk are able to pick up exported variables from terminal or script.
I tend to export ARCH variable which will contain architecture to build with (export ARCH=”x86") and then call $(call import-module, ffmpeg/android/$(ARCH)) inside Android.mk.
You can use whatever paths and variables you have in your script/commands as long as you calling import-module on correct path with correct libs for the architecrure.
Make sure to check out https://github.com/IljaKosynkin/FFmpeg-Development-Kit, I’m pretty sure you can find answer to most of possible questions here in the scripts.
