Skip to content
Snippets Groups Projects
Commit 9075f0ab authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Andreas Traczyk
Browse files

build: patch FFmpegInterop to build with all available cores

- adds -j to the make command in the ffmpeg build script

Change-Id: I3d58c6db2f30695c9d91e8b6dab87aad9c9d748b
Tuleap: #790
parent 06149190
Branches
No related tags found
No related merge requests found
git clone --recursive
set BUILD=%SRC%..\build
set FFMPEG_URL=git://github.com/Microsoft/FFmpegInterop.git
mkdir %BUILD%
cd %BUILD%
git clone --recursive %FFMPEG_URL%
cd FFmpegInterop\ffmpeg
git apply --reject --whitespace=fix %SRC%\ffmpeg\0004-avformat-fix-find_stream_info-not-considering-extradata.patch
set BUILD=%SRC%..\build
set FFMPEG_URL=git://github.com/Microsoft/FFmpegInterop.git
mkdir %BUILD%
cd %BUILD%
git clone --recursive %FFMPEG_URL%
cd FFmpegInterop
git apply --reject --whitespace=fix %SRC%\ffmpeg\ffmpeg-uwp.patch
cd ffmpeg
git apply --reject --whitespace=fix %SRC%\ffmpeg\0004-avformat-fix-find_stream_info-not-considering-extradata.patch
cd %SRC%
\ No newline at end of file
--- a/FFmpegConfig.sh
+++ b/FFmpegConfig.sh
@@ -22,7 +22,7 @@ if [ "$1" == "Win10" ]; then
--extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_APP -D_WIN32_WINNT=0x0A00" \
--extra-ldflags="-APPCONTAINER WindowsApp.lib" \
--prefix=../../../Build/Windows10/x86
- make install
+ make -j install
popd
elif [ "$2" == "x64" ]; then
@@ -43,7 +43,7 @@ if [ "$1" == "Win10" ]; then
--extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_APP -D_WIN32_WINNT=0x0A00" \
--extra-ldflags="-APPCONTAINER WindowsApp.lib" \
--prefix=../../../Build/Windows10/x64
- make install
+ make -j install
popd
elif [ "$2" == "ARM" ]; then
@@ -67,7 +67,7 @@ if [ "$1" == "Win10" ]; then
--extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_APP -D_WIN32_WINNT=0x0A00 -D__ARM_PCS_VFP" \
--extra-ldflags="-APPCONTAINER WindowsApp.lib" \
--prefix=../../../Build/Windows10/ARM
- make install
+ make -j install
popd
fi
@@ -93,7 +93,7 @@ elif [ "$1" == "Win8.1" ]; then
--extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_PC_APP -D_WIN32_WINNT=0x0603" \
--extra-ldflags="-APPCONTAINER" \
--prefix=../../../Build/Windows8.1/x86
- make install
+ make -j install
popd
elif [ "$2" == "x64" ]; then
@@ -114,7 +114,7 @@ elif [ "$1" == "Win8.1" ]; then
--extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_PC_APP -D_WIN32_WINNT=0x0603" \
--extra-ldflags="-APPCONTAINER" \
--prefix=../../../Build/Windows8.1/x64
- make install
+ make -j install
popd
elif [ "$2" == "ARM" ]; then
@@ -138,7 +138,7 @@ elif [ "$1" == "Win8.1" ]; then
--extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_PC_APP -D_WIN32_WINNT=0x0603 -D__ARM_PCS_VFP" \
--extra-ldflags="-APPCONTAINER -MACHINE:ARM" \
--prefix=../../../Build/Windows8.1/ARM
- make install
+ make -j install
popd
fi
@@ -167,7 +167,7 @@ elif [ "$1" == "Phone8.1" ]; then
--extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP -D_WIN32_WINNT=0x0603 -D__ARM_PCS_VFP" \
--extra-ldflags="-APPCONTAINER -MACHINE:ARM -subsystem:console -opt:ref WindowsPhoneCore.lib RuntimeObject.lib PhoneAppModelHost.lib -NODEFAULTLIB:kernel32.lib -NODEFAULTLIB:ole32.lib" \
--prefix=../../../Build/WindowsPhone8.1/ARM
- make install
+ make -j install
popd
elif [ "$2" == "x86" ]; then
@@ -188,7 +188,7 @@ elif [ "$1" == "Phone8.1" ]; then
--extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP -D_WIN32_WINNT=0x0603" \
--extra-ldflags="-APPCONTAINER -subsystem:console -opt:ref WindowsPhoneCore.lib RuntimeObject.lib PhoneAppModelHost.lib -NODEFAULTLIB:kernel32.lib -NODEFAULTLIB:ole32.lib" \
--prefix=../../../Build/WindowsPhone8.1/x86
- make install
+ make -j install
popd
fi
--
2.8.1.windows.1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment