Commit 68f9b578 authored by Rafaël Carré's avatar Rafaël Carré

Add a batch helper to generate libvlc.lib

parent 5728f7e5
......@@ -24,8 +24,9 @@ reduce the number of forbidden calls.
Run ./compile.sh and generate vlc.7z
Extract the contents to vlc/
2) Fix .lib
Use VS command-line ("Developer Command Prompt for VS2012") to generate .def and .lib: http://wiki.videolan.org/GenerateLibFromDll (do not use the "for" script there)
2) Generate .def and .lib
Use VS command-line ("Developer Command Prompt for VS2012")
to run vlc/makelib.bat, from the directory where libvlc.dll is present.
This will let us avoid the dreaded FileNotFoundException.
......
cls
del libvlc.def
echo EXPORTS > libvlc.def
for /f "usebackq tokens=4,* delims=_ " %%i in (`dumpbin /exports libvlc.dll`) do @if %%i==libvlc echo %%i_%%j >> libvlc.def
del libvlc.lib
lib /def:"libvlc.def" /out:"libvlc.lib" /machine:x86
\ 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