Skip to content

Commit 3006972

Browse files
Auto-update libde265 to 1.0.16 (#7148)
* Update libde265 to 1.0.16 * fix static build --------- Co-authored-by: star9029 <[email protected]>
1 parent 165eb2e commit 3006972

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

packages/l/libde265/xmake.lua

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package("libde265")
66
add_urls("https://github.com/strukturag/libde265/releases/download/v$(version)/libde265-$(version).tar.gz",
77
"https://github.com/strukturag/libde265.git")
88

9+
add_versions("1.0.16", "b92beb6b53c346db9a8fae968d686ab706240099cdd5aff87777362d668b0de7")
910
add_versions("1.0.15", "00251986c29d34d3af7117ed05874950c875dd9292d016be29d3b3762666511d")
1011
add_versions("1.0.8", "24c791dd334fa521762320ff54f0febfd3c09fc978880a8c5fbc40a88f21d905")
1112

@@ -17,7 +18,7 @@ package("libde265")
1718

1819
add_deps("cmake")
1920

20-
on_load("windows", function (package)
21+
on_load("windows", "mingw", "msys", function (package)
2122
if not package:config("shared") then
2223
package:add("defines", "LIBDE265_STATIC_BUILD")
2324
end
@@ -30,19 +31,7 @@ package("libde265")
3031
table.insert(configs, "-DDISABLE_SSE=" .. (package:is_arch("x86", "x64", "x86_64") and "OFF" or "ON"))
3132
table.insert(configs, "-DENABLE_ENCODER=" .. (package:config("tools") and "ON" or "OFF"))
3233
table.insert(configs, "-DENABLE_DECODER=" .. (package:config("tools") and "ON" or "OFF"))
33-
if package:is_plat("windows") then
34-
table.insert(configs, "-DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=''")
35-
end
3634
import("package.tools.cmake").install(package, configs)
37-
38-
if package:is_plat("windows") and package:is_debug() then
39-
local dir = package:installdir(package:config("shared") and "bin" or "lib")
40-
os.vcp(path.join(package:buildir(), "libde265/**.pdb"), dir)
41-
if package:config("tools") then
42-
os.vcp(path.join(package:buildir(), "enc265/*.pdb"), package:installdir("bin"))
43-
os.vcp(path.join(package:buildir(), "dec265/*.pdb"), package:installdir("bin"))
44-
end
45-
end
4635
end)
4736

4837
on_test(function (package)

0 commit comments

Comments
 (0)