This commit is contained in:
2025-06-04 19:08:54 -04:00
parent 00afdc4f8a
commit 91746a838c
14 changed files with 12 additions and 10 deletions

View File

@ -7,14 +7,14 @@ from shutil import copytree
from amsbuildlib4 import *
libname = "amscimglib4.mingw64" #static library name to generate
libname = "amscimglib4.winx64" #static library name to generate
binname = "tests" #create this executable when compiling main.c or main.cpp
commondir = "../../winx64" #common directory to pul libraries and includes from
depdir = "./dependencies/winx64" #local pre-compiled dependency libraries and their includes
installdir = "../../winx64" #directory to install to when finished
builddir = "./build_mingw64"
doinstall = False #copies the build_output to the install dir when finished
doinstall = True #copies the build_output to the install dir when finished
cc = "x86_64-w64-mingw32-gcc" #compiler
cflags = "-fPIC -O3 -DEXPORT_AMSCIMGLIB4"
libraries = "-l{} -ljpeg -lpng -lz -lm".format(libname)
@ -54,7 +54,7 @@ callproc("x86_64-w64-mingw32-strip --strip-all --discard-all {}/lib{}.dll".forma
if(doinstall):
#Push any libraries to the common lib folder
shutil.copy(
'{}/lib{}.lib'.format(builddir,libname),
'{}/lib{}.a'.format(builddir,libname),
"{}/lib".format(installdir)
)