Browse Source

Create mpv.lib

Tobias Hieta 9 years ago
parent
commit
adf31b4d3c
1 changed files with 6 additions and 0 deletions
  1. 6 0
      CMakeModules/DependencyConfiguration.cmake

+ 6 - 0
CMakeModules/DependencyConfiguration.cmake

@@ -20,6 +20,12 @@ if(WIN32)
     ARTIFACTNAME konvergo-depends-windows
     ARCHSTR mingw32-x86_64
   )
+  if(NOT EXISTS ${dir}/lib/mpv.lib)
+    execute_process(
+      COMMAND LIB /def:bin\\mpv-1.def /out:lib\\mpv.lib /MACHINE:X64
+      WORKING_DIRECTORY ${dir}
+    )
+  endif(NOT EXISTS ${dir}/lib/mpv.lib)
   message("dependencies are: ${dir}")
   set(DEFAULT_ROOT "${dir}")
 endif(WIN32)