mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-09 09:13:24 +08:00
Simplified asset makefile
This commit is contained in:
parent
ec2eceb0d5
commit
c20820c106
1
.idea/dictionaries/ericf.xml
generated
1
.idea/dictionaries/ericf.xml
generated
@ -572,6 +572,7 @@
|
|||||||
<w>encerr</w>
|
<w>encerr</w>
|
||||||
<w>endcall</w>
|
<w>endcall</w>
|
||||||
<w>endcommand</w>
|
<w>endcommand</w>
|
||||||
|
<w>endef</w>
|
||||||
<w>endindex</w>
|
<w>endindex</w>
|
||||||
<w>endmessage</w>
|
<w>endmessage</w>
|
||||||
<w>endparen</w>
|
<w>endparen</w>
|
||||||
|
|||||||
12335
assets/Makefile
12335
assets/Makefile
File diff suppressed because it is too large
Load Diff
@ -174,11 +174,19 @@ def _get_py_targets_subset(all_targets: Set[str], subset: str,
|
|||||||
'\t@cp $^ $@\n'
|
'\t@cp $^ $@\n'
|
||||||
'\t@chmod 444 $@\n')
|
'\t@chmod 444 $@\n')
|
||||||
|
|
||||||
out += ('\n# Looks like path mangling from py to pyc is too complex for'
|
# Fancy new simple loop-based target generation.
|
||||||
|
out += (f'\n# These are too complex to define in a pattern rule;\n'
|
||||||
|
f'# Instead we generate individual targets in a loop.\n'
|
||||||
|
f'$(foreach element,$(SCRIPT_TARGETS_PYC{suffix}),\\\n'
|
||||||
|
f'$(eval $(call make-opt-pyc-target,$(element))))')
|
||||||
|
|
||||||
|
# Old code to explicitly emit individual targets.
|
||||||
|
if bool(False):
|
||||||
|
out += (
|
||||||
|
'\n# Looks like path mangling from py to pyc is too complex for'
|
||||||
' pattern rules so\n# just generating explicit targets'
|
' pattern rules so\n# just generating explicit targets'
|
||||||
' for each. Could perhaps look into using a\n# fancy for-loop'
|
' for each. Could perhaps look into using a\n# fancy for-loop'
|
||||||
' instead, but perhaps listing these explicitly isn\'t so bad.\n')
|
' instead, but perhaps listing these explicitly isn\'t so bad.\n')
|
||||||
|
|
||||||
for i, target in enumerate(pyc_targets):
|
for i, target in enumerate(pyc_targets):
|
||||||
# Note: there's currently a bug which can cause python bytecode
|
# Note: there's currently a bug which can cause python bytecode
|
||||||
# generation to be non-deterministic. This can break our blessing
|
# generation to be non-deterministic. This can break our blessing
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user