mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-08 16:53:49 +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,22 +174,30 @@ 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
|
# process since we bless in core but then regenerate bytecode in
|
||||||
# process since we bless in core but then regenerate bytecode in
|
# spinoffs. See https://bugs.python.org/issue34722
|
||||||
# spinoffs. See https://bugs.python.org/issue34722
|
# For now setting PYTHONHASHSEED=1 is a workaround.
|
||||||
# For now setting PYTHONHASHSEED=1 is a workaround.
|
out += ('\n' + target + ': \\\n ' + py_targets[i] +
|
||||||
out += ('\n' + target + ': \\\n ' + py_targets[i] +
|
'\n\t@echo Compiling script: $^\n'
|
||||||
'\n\t@echo Compiling script: $^\n'
|
'\t@rm -rf $@ && PYTHONHASHSEED=1 $(TOOLS_DIR)/pcommand'
|
||||||
'\t@rm -rf $@ && PYTHONHASHSEED=1 $(TOOLS_DIR)/pcommand'
|
' compile_python_files $^'
|
||||||
' compile_python_files $^'
|
' && chmod 444 $@\n')
|
||||||
' && chmod 444 $@\n')
|
|
||||||
|
|
||||||
return out
|
return out
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user