Skip to content

Commit

Permalink
retry
Browse files Browse the repository at this point in the history
  • Loading branch information
fdintino committed Sep 24, 2023
1 parent 286a5d8 commit eb46ea8
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions winbuild/build_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ def cmd_rmdir(path: str) -> str:
return f'rmdir /S /Q "{path}"'


def cmd_lib_combine(outfile: str, *libfiles) -> str:
params = " ".join(['"%s"' % f for f in libfiles])
return "LIB.EXE /OUT:{outfile} {params}".format(outfile=outfile, params=params)


def cmd_nmake(
makefile: str | None = None,
target: str = "",
Expand Down Expand Up @@ -397,22 +392,16 @@ def cmd_msbuild(
cmd_cd(".."),
*cmds_cmake(
"avif",
"-DBUILD_SHARED_LIBS=OFF",
"-DBUILD_SHARED_LIBS=ON",
"-DAVIF_CODEC_RAV1E=ON",
"-DAVIF_CODEC_DAV1D=ON",
"-DAVIF_LOCAL_DAV1D=ON",
),
cmd_nmake(),
cmd_lib_combine(
r"avif_combined.lib",
r"avif.lib",
r"ext\dav1d\build\src\libdav1d.a",
),
cmd_copy(r"avif_combined.lib", r"avif.lib"),
cmd_mkdir(r"{inc_dir}\avif"),
cmd_copy(r"include\avif\avif.h", r"{inc_dir}\avif"),
],
"libs": [r"avif.lib"],
"bins": [r"avif.dll"],
},
}

Expand Down

0 comments on commit eb46ea8

Please sign in to comment.