commit 895077e83d7423593d9d96b35a93d2f30994bce7
parent 922c2d71fbaedc268305bcbd87778ee31fdf5f55
Author: Michael Savage <mikejsavage@gmail.com>
Date: Mon, 30 Oct 2017 23:14:42 +0200
RC file compilation
Diffstat:
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/scripts/gen_makefile.lua b/scripts/gen_makefile.lua
@@ -195,6 +195,18 @@ function lib( lib_name, objs )
printf( "%s/%s%s%s: %s", dir, lib_prefix, lib_name, lib_suffix, join( objs, obj_suffix ) )
end
+function rc( rc_name )
+ if OS == "windows" then
+ printf( "%s/%s%s: %s.rc %s.xml", dir, rc_name, obj_suffix, rc_name, rc_name )
+ printf( "\t@printf \"\\033[1;33mbuilding $@\\033[0m\\n\"" )
+ printf( "\t@rc /fo$@ /nologo $<" )
+ else
+ printf( "%s/%s%s:", dir, rc_name, obj_suffix )
+ printf( "\t@printf \"\\033[1;33mbuilding $@\\033[0m\\n\"" )
+ printf( "\t@%s -x c++ /dev/null -o $@", cxx )
+ end
+end
+
function bin_ldflags( bin_name, ldflags )
local bin_path = ( "%s%s%s" ):format( bin_prefix, bin_name, bin_suffix )
printf( "%s: LDFLAGS += %s", bin_path, ldflags )
@@ -242,7 +254,7 @@ DX = ${ProgramFiles(x86)}\Microsoft DirectX SDK (June 2010)
export INCLUDE := $(VC)\include;$(KIT10)\Include\10.0.10240.0\ucrt;$(KIT81)\Include\shared;$(DX)\Include;$(KIT81)\Include\um;$(KIT81)\Include\winrt
export LIB := $(VC)\lib\amd64;$(KIT10)\Lib\10.0.10240.0\ucrt\x64;$(KIT81)\lib\winv6.3\um\x64
-export PATH := /cygdrive/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/:$(PATH)
+export PATH := /cygdrive/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/:/cygdrive/c/Program Files (x86)/Windows Kits/8.1/bin/x64/:$(PATH)
]] )
printf( [[