mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
generate composite.cxx files into odir
This commit is contained in:
parent
5bbb137059
commit
2acf89afeb
@ -77,7 +77,7 @@
|
|||||||
#if $[> $[words $[cxx_sources]], 1]
|
#if $[> $[words $[cxx_sources]], 1]
|
||||||
// If we have multiple C++ files, put them together into one
|
// If we have multiple C++ files, put them together into one
|
||||||
// composite file.
|
// composite file.
|
||||||
#define composite_file $[TARGET]_composite.cxx
|
#define composite_file $[st_dir]/$[TARGET]_composite.cxx
|
||||||
#set composite_list $[composite_list] $[composite_file]
|
#set composite_list $[composite_list] $[composite_file]
|
||||||
#define $[composite_file]_sources $[cxx_sources]
|
#define $[composite_file]_sources $[cxx_sources]
|
||||||
#push 1 $[composite_file]_sources
|
#push 1 $[composite_file]_sources
|
||||||
@ -87,7 +87,7 @@
|
|||||||
#if $[> $[words $[c_sources]], 1]
|
#if $[> $[words $[c_sources]], 1]
|
||||||
// If we have multiple C files, put them together into one
|
// If we have multiple C files, put them together into one
|
||||||
// composite file also.
|
// composite file also.
|
||||||
#define composite_file $[TARGET]_composite_c.c
|
#define composite_file $[st_dir]/$[TARGET]_composite_c.c
|
||||||
#set composite_list $[composite_list] $[composite_file]
|
#set composite_list $[composite_list] $[composite_file]
|
||||||
#define $[composite_file]_sources $[c_sources]
|
#define $[composite_file]_sources $[c_sources]
|
||||||
#push 1 $[composite_file]_sources
|
#push 1 $[composite_file]_sources
|
||||||
|
@ -306,7 +306,7 @@
|
|||||||
// the target is not to be interrogated.
|
// the target is not to be interrogated.
|
||||||
#defer get_igatedb \
|
#defer get_igatedb \
|
||||||
$[if $[and $[run_interrogate],$[IGATESCAN]], \
|
$[if $[and $[run_interrogate],$[IGATESCAN]], \
|
||||||
lib$[TARGET]$[dllext].in]
|
$[st_dir]/lib$[TARGET]$[dllext].in]
|
||||||
|
|
||||||
// This variable returns the name of the interrogate code file
|
// This variable returns the name of the interrogate code file
|
||||||
// that will be generated for a particular target, or empty string if
|
// that will be generated for a particular target, or empty string if
|
||||||
|
@ -129,6 +129,24 @@
|
|||||||
// bison and flex (or copy from *.prebuilt if we don't have them).
|
// bison and flex (or copy from *.prebuilt if we don't have them).
|
||||||
#define bison_prebuilt $[patsubst %.yxx,%.cxx %.h,$[yxx_st_sources]] $[patsubst %.lxx,%.cxx,$[lxx_st_sources]]
|
#define bison_prebuilt $[patsubst %.yxx,%.cxx %.h,$[yxx_st_sources]] $[patsubst %.lxx,%.cxx,$[lxx_st_sources]]
|
||||||
|
|
||||||
|
// Rather than making a rule to generate each install directory later,
|
||||||
|
// we create the directories now. This reduces problems from
|
||||||
|
// multiprocess builds.
|
||||||
|
#mkdir $[sort \
|
||||||
|
$[if $[install_lib],$[install_lib_dir]] \
|
||||||
|
$[if $[install_bin] $[install_scripts],$[install_bin_dir]] \
|
||||||
|
$[if $[install_headers],$[install_headers_dir]] \
|
||||||
|
$[if $[install_parser_inc],$[install_parser_inc_dir]] \
|
||||||
|
$[if $[install_data],$[install_data_dir]] \
|
||||||
|
$[if $[install_config],$[install_config_dir]] \
|
||||||
|
$[if $[install_igatedb],$[install_igatedb_dir]] \
|
||||||
|
]
|
||||||
|
|
||||||
|
// Similarly, we need to ensure that $[st_dir] exists. Trying to make
|
||||||
|
// the makefiles do this automatically just causes problems with
|
||||||
|
// multiprocess builds.
|
||||||
|
#mkdir $[st_dir]
|
||||||
|
|
||||||
// Pre-compiled headers are one way to speed the compilation of many
|
// Pre-compiled headers are one way to speed the compilation of many
|
||||||
// C++ source files that include similar headers, but it turns out a
|
// C++ source files that include similar headers, but it turns out a
|
||||||
// more effective (and more portable) way is simply to compile all the
|
// more effective (and more portable) way is simply to compile all the
|
||||||
@ -227,7 +245,7 @@ $[TAB] rm -f $[igatemout] $[$[igatemout]_obj]
|
|||||||
$[INSTALL_CONFIG:%=$[install_config_dir]/%]
|
$[INSTALL_CONFIG:%=$[install_config_dir]/%]
|
||||||
|
|
||||||
#define installed_igate_files \
|
#define installed_igate_files \
|
||||||
$[get_igatedb(metalib_target lib_target ss_lib_target):%=$[install_igatedb_dir]/%]
|
$[get_igatedb(metalib_target lib_target ss_lib_target):$[st_dir]/%=$[install_igatedb_dir]/%]
|
||||||
|
|
||||||
#define install_targets \
|
#define install_targets \
|
||||||
$[active_target(metalib_target lib_target static_lib_target ss_lib_target):%=install-lib%] \
|
$[active_target(metalib_target lib_target static_lib_target ss_lib_target):%=install-lib%] \
|
||||||
@ -256,28 +274,10 @@ $[TAB] rm -f $[sort $[patsubst %,%.prebuilt,$[bison_prebuilt]]]
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Rather than making a rule to generate each install directory later,
|
|
||||||
// we create the directories now. This reduces problems from
|
|
||||||
// multiprocess builds.
|
|
||||||
#mkdir $[sort \
|
|
||||||
$[if $[install_lib],$[install_lib_dir]] \
|
|
||||||
$[if $[install_bin] $[install_scripts],$[install_bin_dir]] \
|
|
||||||
$[if $[install_headers],$[install_headers_dir]] \
|
|
||||||
$[if $[install_parser_inc],$[install_parser_inc_dir]] \
|
|
||||||
$[if $[install_data],$[install_data_dir]] \
|
|
||||||
$[if $[install_config],$[install_config_dir]] \
|
|
||||||
$[if $[install_igatedb],$[install_igatedb_dir]] \
|
|
||||||
]
|
|
||||||
|
|
||||||
// Similarly, we need to ensure that $[st_dir] exists. Trying to make
|
|
||||||
// the makefiles do this automatically just causes problems with
|
|
||||||
// multiprocess builds.
|
|
||||||
#mkdir $[st_dir]
|
|
||||||
|
|
||||||
// Now it's time to start generating the rules to make our actual
|
// Now it's time to start generating the rules to make our actual
|
||||||
// targets.
|
// targets.
|
||||||
|
|
||||||
igate : $[get_igatedb(metalib_target lib_target ss_lib_target):%=$[st_dir]/%]
|
igate : $[get_igatedb(metalib_target lib_target ss_lib_target)]
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
@ -382,7 +382,7 @@ $[st_dir]/lib$[TARGET]$[dllext].pdb : $[st_dir]/lib$[TARGET]$[dllext].dll
|
|||||||
$[INSTALL_HEADERS:%=$[install_headers_dir]/%] \
|
$[INSTALL_HEADERS:%=$[install_headers_dir]/%] \
|
||||||
$[INSTALL_DATA:%=$[install_data_dir]/%] \
|
$[INSTALL_DATA:%=$[install_data_dir]/%] \
|
||||||
$[INSTALL_CONFIG:%=$[install_config_dir]/%] \
|
$[INSTALL_CONFIG:%=$[install_config_dir]/%] \
|
||||||
$[igatedb:%=$[install_igatedb_dir]/%]
|
$[igatedb:$[st_dir]/%=$[install_igatedb_dir]/%]
|
||||||
|
|
||||||
install-lib$[TARGET] : $[installed_files]
|
install-lib$[TARGET] : $[installed_files]
|
||||||
|
|
||||||
@ -423,10 +423,10 @@ $[TAB] cp -f $[st_dir]/$[local] $[dest]
|
|||||||
#define igatemod $[TARGET]
|
#define igatemod $[TARGET]
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
$[install_igatedb_dir]/$[igatedb] : $[st_dir]/$[igatedb]
|
$[igatedb:$[st_dir]/%=$[install_igatedb_dir]/%] : $[igatedb]
|
||||||
#define local $[igatedb]
|
#define local $[igatedb]
|
||||||
#define dest $[install_igatedb_dir]
|
#define dest $[install_igatedb_dir]
|
||||||
$[TAB] cp -f $[st_dir]/$[local] $[dest]
|
$[TAB] cp -f $[local] $[dest]
|
||||||
|
|
||||||
// We have to split this out as a separate rule to properly support
|
// We have to split this out as a separate rule to properly support
|
||||||
// parallel make.
|
// parallel make.
|
||||||
@ -717,8 +717,8 @@ $[TAB] cp $[target_prebuilt] $[target]
|
|||||||
#define flags $[cflags] $[building_var:%=/D%]
|
#define flags $[cflags] $[building_var:%=/D%]
|
||||||
#if $[ne $[file], $[notdir $file]]
|
#if $[ne $[file], $[notdir $file]]
|
||||||
// If the source file is not in the current directory, tack on "."
|
// If the source file is not in the current directory, tack on "."
|
||||||
// to the ipath.
|
// to front of the ipath.
|
||||||
#set ipath $[ipath] .
|
#set ipath . $[ipath]
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
$[target] : $[source] $[get_depends $[source]]
|
$[target] : $[source] $[get_depends $[source]]
|
||||||
@ -735,8 +735,8 @@ $[TAB] $[COMPILE_C]
|
|||||||
#define flags $[c++flags] $[building_var:%=/D%]
|
#define flags $[c++flags] $[building_var:%=/D%]
|
||||||
#if $[ne $[file], $[notdir $file]]
|
#if $[ne $[file], $[notdir $file]]
|
||||||
// If the source file is not in the current directory, tack on "."
|
// If the source file is not in the current directory, tack on "."
|
||||||
// to the ipath.
|
// to front of the ipath.
|
||||||
#set ipath $[ipath] .
|
#set ipath . $[ipath]
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Yacc must run before some files can be compiled, so all files
|
// Yacc must run before some files can be compiled, so all files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user