updates
This commit is contained in:
@ -16,6 +16,7 @@ builddir = "./build_linux64"
|
||||
|
||||
doinstall = True #copies the build_output to the install dir when finished
|
||||
cc = "gcc" #compiler
|
||||
# -fvisibility=hidden -- stripping symbols to avoid namespace pollution doesn't seem to work on Linux
|
||||
cflags = "-fPIC -O3 -DEXPORT_AMSCIMGLIB4"
|
||||
libraries = "-l{} -ljpeg -lpng -lz -lm".format(libname)
|
||||
libdirs = "-L{} -L{}/lib -L{}/lib".format(builddir,commondir,depdir)
|
||||
|
@ -14,7 +14,7 @@ depdir = "./dependencies/linux64" #local pre-compiled dependency libraries and t
|
||||
installdir = "../../linux64" #directory to install to when finished
|
||||
builddir = "./build_linux64"
|
||||
|
||||
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 = "gcc" #compiler
|
||||
cflags = "-fPIC -O3"
|
||||
libraries = "-l{}".format(libname)
|
||||
|
@ -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)
|
||||
)
|
||||
|
||||
|
@ -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"
|
||||
libraries = "-l{}".format(libname)
|
||||
|
@ -7,14 +7,14 @@ from shutil import copytree
|
||||
|
||||
from amsbuildlib4 import *
|
||||
|
||||
libname = "amscimglib4.msvc64" #static library name to generate
|
||||
libname = "amscimglib4.winx64" #static library name to generate
|
||||
binname = "tests.exe" #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_msvc64"
|
||||
|
||||
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 = "cl" #compiler
|
||||
cflags = "/MT /O2 /DEXPORT_TEMPLATEDLL"
|
||||
libraries = "lib{}.lib".format(libname)
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -12,8 +12,9 @@
|
||||
#define AMSCIMGLIB4_API __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
//#define AMSCPPDLL_API __attribute__((visibility("default")))
|
||||
#define AMSCIMGLIB4_API
|
||||
#define AMSCIMGLIB4_API __attribute__((visibility("default")))
|
||||
//#define AMSCIMGLIB4_API
|
||||
//#define AMSCIMGLIB4_API __attribute__((visibility("hidden")))
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user