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