Skip to content

Commit

Permalink
Perhaps this fixed the windows / freetype build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ixchow committed Aug 28, 2021
1 parent ed23691 commit 88dc70f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rebuild-libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,8 @@ def build_freetype():

run_command([
"cmake",
"--build", "build"
"--build", "build",
"--config", "RelWithDebInfo"
], cwd=lib_dir)


Expand All @@ -973,7 +974,7 @@ def build_freetype():
os.makedirs(target + "/freetype/include", exist_ok=True)
os.makedirs(target + "/freetype/dist", exist_ok=True)
if target == 'windows':
shutil.copy(lib_dir + "/build/freetype.lib", target + "/freetype/lib/")
shutil.copy(lib_dir + "/build/RelWithDebInfo/freetype.lib", target + "/freetype/lib/")
else:
#todo: check what gets build on other oses:
shutil.copy(lib_dir + "/build/libfreetype.a", target + "/freetype/lib/")
Expand Down

0 comments on commit 88dc70f

Please sign in to comment.