mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
support LIMIT_OPTCHAR
This commit is contained in:
parent
440c6f4131
commit
d95260c65e
@ -486,6 +486,19 @@ $[TAB]$[COMMAND]
|
|||||||
|
|
||||||
// Character optimization.
|
// Character optimization.
|
||||||
#forscopes optchar_egg
|
#forscopes optchar_egg
|
||||||
|
#if $[LIMIT_OPTCHAR]
|
||||||
|
// With LIMIT_OPTCHAR enabled, we only want to make local optchar
|
||||||
|
// operations, allowing one operation at a time.
|
||||||
|
#foreach egg $[SOURCES]
|
||||||
|
#define source $[source_prefix]$[egg]
|
||||||
|
#define target $[TARGET_DIR]/$[notdir $[egg]]
|
||||||
|
$[target] : $[source] $[TARGET_DIR]/stamp
|
||||||
|
$[TAB]egg-optchar -keepall $[OPTCHAR_OPTS] -d $[TARGET_DIR] $[source]
|
||||||
|
#end egg
|
||||||
|
|
||||||
|
#else
|
||||||
|
// In the normal mode, we allow global optchar operations, requiring
|
||||||
|
// all egg files to be processed in a single pass.
|
||||||
#define sources $[SOURCES:%=$[source_prefix]%]
|
#define sources $[SOURCES:%=$[source_prefix]%]
|
||||||
#define target $[TARGET_DIR]/$[notdir $[firstword $[SOURCES]]]
|
#define target $[TARGET_DIR]/$[notdir $[firstword $[SOURCES]]]
|
||||||
|
|
||||||
@ -503,6 +516,8 @@ $[TAB]$[TOUCH_CMD] $[TARGET_DIR]/$[egg]
|
|||||||
// And this is the actual optchar pass.
|
// And this is the actual optchar pass.
|
||||||
$[target] : $[sources] $[TARGET_DIR]/stamp
|
$[target] : $[sources] $[TARGET_DIR]/stamp
|
||||||
$[TAB]egg-optchar $[OPTCHAR_OPTS] -d $[TARGET_DIR] $[sources]
|
$[TAB]egg-optchar $[OPTCHAR_OPTS] -d $[TARGET_DIR] $[sources]
|
||||||
|
#endif
|
||||||
|
|
||||||
#end optchar_egg
|
#end optchar_egg
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user