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,7 +17,7 @@ builddir = "./build_msvc64"
doinstall = True #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"
cflags = "-dc -Xcompiler /O2"
libraries = "-l{}".format(libname)
libdirs = "-L{} -L{}/lib -L{}/lib".format(builddir,commondir,depdir)
linkerflags = " -Xlinker=-rpath,."
@ -27,7 +27,7 @@ binsrc = ["main.c","main.cpp","main.cu"] #ignore these files when compiling the
#keyword list to control the compilers/linkers
kwargs = dict()
include = "-I./include -I{}/include -I{}/include".format(commondir, depdir)
include = "-I./include -I{}/include".format(commondir)
kwargs["include"] = include
kwargs["flags"] = cflags
kwargs["libdir"] = libdirs
@ -45,7 +45,7 @@ srcfiles = except_contains(srcfiles,binsrc)
#compile all the source files in the list
#gs_compile_list(cc,files,**kwargs)
msvc_incremental_compile_list(cc,srcfiles,**kwargs)
gs_incremental_compile_list(cc,srcfiles,**kwargs)
#archive all the source files into a static library
objlist = flist(kwargs['objstore'],exts='.obj',recurse=True)