update imagequant patches

This commit is contained in:
nulano 2021-09-21 04:49:35 +02:00
parent 52fa7aefb5
commit aa27c4d96b

View File

@ -263,18 +263,19 @@ deps = {
"dir": "libimagequant-f41ee301ff3a407b16991af3dbe03910919bbdc3", "dir": "libimagequant-f41ee301ff3a407b16991af3dbe03910919bbdc3",
"patch": { "patch": {
"CMakeLists.txt": { "CMakeLists.txt": {
"add_library": "add_compile_options(-openmp-)\r\nadd_library", "if(OPENMP_FOUND)": "if(false)",
" SHARED": " STATIC", "install": "#install",
} }
}, },
"build": [ "build": [
# lint: do not inline # lint: do not inline
cmd_cmake(), cmd_cmake(),
cmd_nmake(target="clean"), cmd_nmake(target="clean"),
cmd_nmake(), cmd_nmake(target="imagequant_a"),
cmd_copy("imagequant_a.lib", "imagequant.lib"),
], ],
"headers": [r"*.h"], "headers": [r"*.h"],
"libs": [r"*.lib"], "libs": [r"imagequant.lib"],
}, },
"harfbuzz": { "harfbuzz": {
"url": "https://github.com/harfbuzz/harfbuzz/archive/3.0.0.zip", "url": "https://github.com/harfbuzz/harfbuzz/archive/3.0.0.zip",
@ -437,6 +438,7 @@ def build_dep(name):
assert patch_from in text assert patch_from in text
text = text.replace(patch_from, patch_to) text = text.replace(patch_from, patch_to)
with open(patch_file, "w") as f: with open(patch_file, "w") as f:
print(f"Patching {patch_file}")
f.write(text) f.write(text)
banner = f"Building {name} ({dir})" banner = f"Building {name} ({dir})"