mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 03:52:22 +02:00
wscript_build: install shared libmpv to BINDIR for Win32
This commit is contained in:
parent
809d160c1e
commit
6d65ab3a7d
@ -165,9 +165,6 @@ Or, compile and install both libmpv and mpv:
|
|||||||
```bash
|
```bash
|
||||||
./waf configure CC=gcc.exe --check-c-compiler=gcc --enable-libmpv-shared --prefix=/mingw64
|
./waf configure CC=gcc.exe --check-c-compiler=gcc --enable-libmpv-shared --prefix=/mingw64
|
||||||
./waf install
|
./waf install
|
||||||
|
|
||||||
# waf installs libmpv dll to the wrong directory, so fix it up
|
|
||||||
mv -f /mingw64/lib/mpv-1.dll /mingw64/bin/
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Linking libmpv with MSVC programs
|
Linking libmpv with MSVC programs
|
||||||
|
@ -544,6 +544,7 @@ def build(ctx):
|
|||||||
"features": features,
|
"features": features,
|
||||||
"export_symbols_def": "libmpv/mpv.def",
|
"export_symbols_def": "libmpv/mpv.def",
|
||||||
"install_path": ctx.env.LIBDIR,
|
"install_path": ctx.env.LIBDIR,
|
||||||
|
"install_path_implib": ctx.env.LIBDIR,
|
||||||
}
|
}
|
||||||
|
|
||||||
if shared and ctx.dependency_satisfied('android'):
|
if shared and ctx.dependency_satisfied('android'):
|
||||||
@ -556,6 +557,9 @@ def build(ctx):
|
|||||||
# for all other configurations we want SONAME to be used
|
# for all other configurations we want SONAME to be used
|
||||||
libmpv_kwargs["vnum"] = libversion
|
libmpv_kwargs["vnum"] = libversion
|
||||||
|
|
||||||
|
if shared and ctx.env.DEST_OS == 'win32':
|
||||||
|
libmpv_kwargs["install_path"] = ctx.env.BINDIR
|
||||||
|
|
||||||
ctx(**libmpv_kwargs)
|
ctx(**libmpv_kwargs)
|
||||||
|
|
||||||
if build_shared:
|
if build_shared:
|
||||||
|
Loading…
Reference in New Issue
Block a user