Add USER_BUILD_CONFIGURATION_FLAGS environment variable to allow custom user compile flags.

pull/21/head
Andrew Killer 5 years ago
parent 3fbbc1941d
commit fec394b693
  1. 7
      README.md
  2. 1
      scripts/ffmpeg/build.sh

@ -49,9 +49,12 @@ The build output is copied to /build/build. This should be mounted to a folder o
2. Run the container. This will download ffmpeg, build it, then copy to /build/build:
```sh
docker container run --rm --name ffmpeg-android-maker -v /path/to/host/output:/build/build ffmpeg-android-maker
docker container run --rm --name ffmpeg-android-maker USER_BUILD_CONFIGURATION_FLAGS="--disable-gpl" -v /path/to/host/output:/build/build ffmpeg-android-maker
```
Use the environment variable USER_BUILD_CONFIGURATION_FLAGS to pass custom compile flags if required, e.g. --disable-gpl.
On Windows you can pass in a host path in the following way:
```sh
-v C:\path\to\host\output:/build/build

@ -41,6 +41,7 @@ DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS"
--disable-static \
--pkg-config=$(which pkg-config) \
${EXTRA_BUILD_CONFIGURATION_FLAGS} \
${USER_BUILD_CONFIGURATION_FLAGS} \
--disable-runtime-cpudetect \
--disable-programs \
--disable-muxers \

Loading…
Cancel
Save