Closer.
This commit is contained in:
20
configure.py
20
configure.py
@ -225,6 +225,10 @@ rule run
|
||||
description = RUN $in
|
||||
command = $in >$out
|
||||
|
||||
rule cmd
|
||||
description = CMD
|
||||
command = $cmd
|
||||
|
||||
rule resize
|
||||
description = RESIZE $size
|
||||
command = convert -resize $size $in $out
|
||||
@ -286,15 +290,15 @@ def Importation(target, source, header_mode='cpp', name=None, keep=False, deps=N
|
||||
|
||||
|
||||
def Esp32Optional(main_name, main_source, parts):
|
||||
parts = []
|
||||
implicit = []
|
||||
for name, source in parts:
|
||||
parts.append(Importation('$dst/gen/esp32_' + name + '.h',
|
||||
source, name=name.replace('-', '_') + '_source'))
|
||||
implicit.append(Importation('$dst/gen/esp32_' + name + '.h',
|
||||
source, name=name.replace('-', '_') + '_source'))
|
||||
return Importation('$dst/esp32/ESP32forth/optional/' + main_name + '.h',
|
||||
main_source,
|
||||
keep=True,
|
||||
deps='$dst/gen/esp32_optional_' + main_name + '.h.d',
|
||||
implicit=parts)
|
||||
implicit=implicit)
|
||||
|
||||
|
||||
def Simple(op, target, source, implicit=[]):
|
||||
@ -404,6 +408,14 @@ def ForthTest(target, forth, test, interp='', pool=None):
|
||||
return target
|
||||
|
||||
|
||||
def Command(target, source, command, implicit=[]):
|
||||
global output
|
||||
implicit = ' '.join(implicit)
|
||||
output += f'build {target}: cmd {source} | {implicit}\n'
|
||||
output += f' cmd = {command}\n'
|
||||
return target
|
||||
|
||||
|
||||
def Default(target):
|
||||
global output
|
||||
output += f'default {target}\n'
|
||||
|
||||
@ -54,8 +54,12 @@ ESP32_FILES += [
|
||||
|
||||
# Simulator.
|
||||
ESP32_FILES += [
|
||||
Compile('$dst/esp32-sim/esp32-sim', '$src/esp32/sim_main.cpp',
|
||||
implicit=['$dst/gen/esp32_boot.h', '$dst/gen/esp32_sim_opcodes.h'])
|
||||
Compile('$dst/esp32-sim/Esp32forth-sim', '$src/esp32/sim_main.cpp',
|
||||
implicit=['$dst/gen/esp32_boot.h', '$dst/gen/esp32_sim_opcodes.h']),
|
||||
Command('$dst/esp32-sim/sizes.txt',
|
||||
' '.join(['$dst/esp32-sim/Esp32forth-sim', '$src/tools/memuse.py']),
|
||||
'echo internals size-all bye | $dst/esp32-sim/Esp32forth-sim | '
|
||||
'$src/tools/memuse.py >$dst/esp32-sim/sizes.txt'),
|
||||
]
|
||||
Compile('$dst/gen/print-esp32-builtins', '$src/esp32/print-builtins.cpp'),
|
||||
Run('$dst/gen/esp32_sim_opcodes.h', '$dst/gen/print-esp32-builtins')
|
||||
|
||||
@ -20,10 +20,10 @@ PICO_ICE_ZIP_FILES += [
|
||||
Importation('$dst/pico-ice/ueforth-pico-ice/README.txt',
|
||||
'$src/pico-ice/README.txt'),
|
||||
# TODO: .uf2
|
||||
Copy('$dst/pico-ice/ueforth-pice-ice/LICENSE', '$src/LICENSE'),
|
||||
Copy('$dst/pico-ice/ueforth-pice-ice/pico-ice-sdk-LICENSE.md',
|
||||
Copy('$dst/pico-ice/ueforth-pico-ice/LICENSE', '$src/LICENSE'),
|
||||
Copy('$dst/pico-ice/ueforth-pico-ice/pico-ice-sdk-LICENSE.md',
|
||||
'$src/pico-ice/pico-ice-sdk/LICENSE.md'),
|
||||
Copy('$dst/pico-ice/ueforth-pice-ice/pico-sdk-LICENSE.TXT',
|
||||
Copy('$dst/pico-ice/ueforth-pico-ice/pico-sdk-LICENSE.TXT',
|
||||
'$src/pico-ice/pico-sdk/LICENSE.TXT'),
|
||||
]
|
||||
|
||||
|
||||
@ -56,6 +56,8 @@ DEPLOY_ITEMS += [
|
||||
'esp-cam-wiring.jpg',
|
||||
'serial_bridge.jpg',
|
||||
]
|
||||
] + [
|
||||
Copy('$dst/deploy/static/favicon.ico', '$dst/resources/eforth.ico'),
|
||||
]
|
||||
|
||||
Alias('site', ' '.join(DEPLOY_ITEMS))
|
||||
|
||||
@ -29,6 +29,7 @@ WEB_ITEMS = [
|
||||
Copy('$dst/web/terminal.html', '$src/web/terminal.html'),
|
||||
Copy('$dst/web/lazy_terminal.html', '$src/web/lazy_terminal.html'),
|
||||
Copy('$dst/web/script_lite_test.html', '$src/web/script_lite_test.html'),
|
||||
Copy('$dst/web/script_test.html', '$src/web/script_test.html'),
|
||||
Copy('$dst/web/script_test.fs', '$src/web/script_test.fs'),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user