msvc scripts

This commit is contained in:
2026-06-03 10:13:28 -04:00
parent fa09e3be9c
commit 4356f3eacf
71 changed files with 2705 additions and 10 deletions

View File

@ -17,10 +17,10 @@ builddir = "./build_msvc64"
doinstall = False #copies the build_output to the install dir when finished
cc = "nvcc" #compiler
#cflags = "-dc --compiler-options '-fPIC -O3'"
cflags = "-dc -Xcompiler -fPIC -Xcompiler -O3"
libraries = "-l{}".format(libname)
cflags = "-dc -Xcompiler /O2"
libraries = "-llib{}".format(libname)
libdirs = "-L{} -L{}/lib -L{}/lib".format(builddir,commondir,depdir)
linkerflags = " -Xlinker=-rpath,."
linkerflags = ""
srcexts = [".c",".cpp",".cu"]
binsrc = ["main.c","main.cpp","main.cu"] #ignore these files when compiling the static library
@ -35,6 +35,7 @@ kwargs["linkerflags"] = linkerflags
kwargs["recurse"] = True
kwargs["objstore"] = "{}/objstore".format(builddir)
kwargs["searchincdirs"] = "./include"
kwargs["objext"] = ".obj"
#Pull required binary dynamic libraries to the bin folder
#shutil.copy('{}/lib/libcamsimg3.linux64.so'.format(commondir),builddir);
@ -42,9 +43,9 @@ kwargs["searchincdirs"] = "./include"
#shutil.copy('{}/lib/glew32.dll','./bin_winx64');
#Designate source files for main test program
fsrc = ['./src/main.cpp']
fsrc = ['./src/main.cu']
fobj = replaceexts(fsrc,'.obj')
#Compile test programs
msvc_compile_list(cc,fsrc,**kwargs)
msvc_link_list(list_to_sss(fobj),'{}/{}'.format(builddir,binname),**kwargs)
gs_compile_list(cc,fsrc,**kwargs)
gs_link_list(cc,list_to_sss(fobj),'{}/{}'.format(builddir,binname),**kwargs)