Commit f70e3a14 authored by Martin Finkel's avatar Martin Finkel
Browse files

Build: Script the download and extraction of libvlc win64 builds

parent 234df972
......@@ -6,11 +6,8 @@ OBJS = $(SRCS:.cpp=.o)
CXXFLAGS = -O2 -fdebug-prefix-map='/mnt/c/'='c:/' -Wall -I./include/
ifeq ($(ARCH), x86_64)
LIB=/mnt/d/vlc-4.0.0-dev/sdk/lib
else
LIB=/mnt/d/vlc-4.0.0-dev-x86/sdk/lib
endif
LIB=./sdk/lib/
LDFLAGS = -static-libgcc -static-libstdc++ -shared -Wl,-pdb= -L$(LIB)
LIBS = -lvlc -ld3d11 -ld3dcompiler_47 -ldxgi
......
#! /bin/bash
version="4.0.0-20200317-0757"
sourceLocation="Assets/PluginSource"
downloadUrl="https://nightlies.videolan.org/build/win64-llvm/vlc-$version/vlc-$version-dev-win64.7z"
rm ./build.7z
rm -rf ./build
rm -rf $sourceLocation/include
rm -rf $sourceLocation/sdk
curl -Lsfo build.7z $downloadUrl
7z x build.7z -o./build
cp -R ./build/vlc-4.0.0-dev/{libvlc.dll,libvlccore.dll,hrtfs,locale,lua,plugins} Assets/VLC-Unity-Windows/Plugins/x86_64
mkdir -p $sourceLocation/sdk/lib/
cp -r ./build/vlc-4.0.0-dev/sdk/lib/ $sourceLocation/sdk/
cp -r ./build/vlc-4.0.0-dev/sdk/include $sourceLocation/include
# rm ./build.7z
# rm -rf ./build
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment