|
@@ -728,11 +728,12 @@ $[TAB] $[COMPILE_C]
|
|
|
#define source $[file]
|
|
#define source $[file]
|
|
|
#define ipath $[file_ipath]
|
|
#define ipath $[file_ipath]
|
|
|
|
|
|
|
|
|
|
+#define pdb_filename $[st_dir]/$[TARGET(lib_target)]
|
|
|
|
|
+
|
|
|
#if $[DO_PCH]
|
|
#if $[DO_PCH]
|
|
|
// best way to find out if file use pch (and needs /Yu) is to check dependencies
|
|
// best way to find out if file use pch (and needs /Yu) is to check dependencies
|
|
|
// these must be defined before flags (or could defer them)
|
|
// these must be defined before flags (or could defer them)
|
|
|
#define target_pch $[subst \./,\,$[patsubst %.h,$[so_dir]\%.pch,$[filter %_headers.h, $[dependencies $[file]]]]]
|
|
#define target_pch $[subst \./,\,$[patsubst %.h,$[so_dir]\%.pch,$[filter %_headers.h, $[dependencies $[file]]]]]
|
|
|
-#define target_dirname $[patsubst %_headers.pch,%,$[target_pch]]
|
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
#define flags $[c++flags] $[CFLAGS_SHARED] $[all_sources $[building_var:%=/D%],$[file]]
|
|
#define flags $[c++flags] $[CFLAGS_SHARED] $[all_sources $[building_var:%=/D%],$[file]]
|
|
@@ -753,15 +754,17 @@ $[TAB] $[COMPILE_LINE]
|
|
|
// Rules to compile C++ files that appear on a static library or in an
|
|
// Rules to compile C++ files that appear on a static library or in an
|
|
|
// executable.
|
|
// executable.
|
|
|
#foreach file $[sort $[cxx_st_sources]]
|
|
#foreach file $[sort $[cxx_st_sources]]
|
|
|
|
|
+
|
|
|
#define target $[patsubst %.cxx,$[st_dir]\%.obj,$[file]]
|
|
#define target $[patsubst %.cxx,$[st_dir]\%.obj,$[file]]
|
|
|
#define source $[file]
|
|
#define source $[file]
|
|
|
#define ipath $[file_ipath]
|
|
#define ipath $[file_ipath]
|
|
|
|
|
|
|
|
|
|
+#define pdb_filename $[st_dir]/$[TARGET(lib_target)]
|
|
|
|
|
+
|
|
|
#if $[DO_PCH]
|
|
#if $[DO_PCH]
|
|
|
// best way to find out if file use pch (and needs /Yu) is to check dependencies
|
|
// best way to find out if file use pch (and needs /Yu) is to check dependencies
|
|
|
// these must be defined before flags (or could defer them)
|
|
// these must be defined before flags (or could defer them)
|
|
|
#define target_pch $[subst \./,\,$[patsubst %.h,$[st_dir]\%.pch,$[filter %_headers.h, $[dependencies $[file]]]]]
|
|
#define target_pch $[subst \./,\,$[patsubst %.h,$[st_dir]\%.pch,$[filter %_headers.h, $[dependencies $[file]]]]]
|
|
|
-#define target_dirname $[patsubst %_headers.pch,%,$[target_pch]]
|
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
#define flags $[c++flags] $[all_sources $[building_var:%=/D%],$[file]]
|
|
#define flags $[c++flags] $[all_sources $[building_var:%=/D%],$[file]]
|
|
@@ -784,7 +787,7 @@ $[TAB] $[COMPILE_LINE]
|
|
|
#foreach file $[pch_header_source]
|
|
#foreach file $[pch_header_source]
|
|
|
#define target_pch $[patsubst %.h,$[st_dir]\%.pch,$[file]]
|
|
#define target_pch $[patsubst %.h,$[st_dir]\%.pch,$[file]]
|
|
|
#define target_obj $[patsubst %.h,$[st_dir]\%.obj,$[file]]
|
|
#define target_obj $[patsubst %.h,$[st_dir]\%.obj,$[file]]
|
|
|
-#define target_dirname $[patsubst %_headers.pch,%,$[target_pch]]
|
|
|
|
|
|
|
+#define pdb_filename $[st_dir]/$[TARGET(lib_target)]
|
|
|
#define target $[target_obj]
|
|
#define target $[target_obj]
|
|
|
#define source $[file]
|
|
#define source $[file]
|
|
|
#define ipath $[file_ipath]
|
|
#define ipath $[file_ipath]
|