fixed install
This commit is contained in:
@ -14,9 +14,9 @@ depdir = "./dependencies/winx64" #local pre-compiled dependency libraries and th
|
||||
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-g++" #compiler
|
||||
cflags = "-fPIC -O3"
|
||||
cflags = "-fPIC -O3 -std=c++17"
|
||||
libraries = "-l{}".format(libname)
|
||||
libdirs = "-L{} -L{}/lib -L{}/lib".format(builddir,commondir,depdir)
|
||||
linkerflags = "-static -static-libgcc -Wl,-rpath=."
|
||||
@ -49,10 +49,11 @@ objlist = flist(kwargs['objstore'],exts='.o',recurse=True)
|
||||
ar_list(objlist,'{}/lib{}.a'.format(builddir,libname))
|
||||
|
||||
if(doinstall):
|
||||
#Copy a binary to the common bin folder
|
||||
|
||||
#Push any libraries to the common lib folder
|
||||
shutil.copy('{}/lib/lib{}.a'.format(builddir,libname),commondir)
|
||||
shutil.copy(
|
||||
'{}/lib{}.a'.format(builddir,libname),
|
||||
"{}/lib".format(installdir)
|
||||
)
|
||||
|
||||
#Copy include files to the common include folder
|
||||
copytree('./include/',commondir+'/include/',dirs_exist_ok=True)
|
||||
copytree('./include/',installdir+'/include/',dirs_exist_ok=True)
|
||||
|
Reference in New Issue
Block a user