mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
WIN_RESOURCE_FILE for exe too
This commit is contained in:
parent
84df5b52d4
commit
b948f7ebf7
@ -643,6 +643,15 @@ $[varname] = $[patsubst %,$[%_obj],$[compile_sources]]
|
||||
#define target $[ODIR]/$[TARGET].exe
|
||||
#define sources $($[varname])
|
||||
#define ld $[get_ld]
|
||||
|
||||
#if $[WIN_RESOURCE_FILE]
|
||||
#define resource_file $[WIN_RESOURCE_FILE]
|
||||
#define ver_resource "$[ODIR]\$[TARGET].res"
|
||||
$[ver_resource] : $[resource_file]
|
||||
$[TAB] rc /n /I"$[ODIR]" $[DECYGWINED_INC_PATHLIST_ARGS] /fo$[ver_resource] $[filter /D%, $[flags]] "$[osfilename $[resource_file]]"
|
||||
#set sources $[sources] $[ver_resource]
|
||||
#endif
|
||||
|
||||
$[target] : $[sources] $[static_lib_dependencies]
|
||||
#if $[ld]
|
||||
// If there's a custom linker defined for the target, we have to use it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user