This commit is contained in:
Brad Nelson
2024-01-01 15:50:27 -08:00
parent b8f4a7b3c4
commit a69961d90d
9 changed files with 91 additions and 80 deletions

View File

@ -12,24 +12,24 @@
# See the License for the specific language governing permissions and
# limitations under the License.
Importation('gen/web_boot.js', '$src/web/web_boot.fs', header_mode='web', name='boot')
Compile('gen/dump_web_opcodes', '$src/web/dump_web_opcodes.c')
GenRun('gen/web_cases.js', 'gen/dump_web_opcodes', 'cases', [])
GenRun('gen/web_dict.js', 'gen/dump_web_opcodes', 'dict', [])
GenRun('gen/web_sys.js', 'gen/dump_web_opcodes', 'sys', [])
Importation('$dst/gen/web_boot.js', '$src/web/web_boot.fs', header_mode='web', name='boot')
Compile('$dst/gen/dump_web_opcodes', '$src/web/dump_web_opcodes.c')
GenRun('$dst/gen/web_cases.js', '$dst/gen/dump_web_opcodes', 'cases', [])
GenRun('$dst/gen/web_dict.js', '$dst/gen/dump_web_opcodes', 'dict', [])
GenRun('$dst/gen/web_sys.js', '$dst/gen/dump_web_opcodes', 'sys', [])
WEB_ITEMS = [
GenRun('web/ueforth.js', '$src/web/fuse_web.js', '', [
GenRun('$dst/web/ueforth.js', '$src/web/fuse_web.js', '', [
'$src/web/web.template.js',
'gen/web_boot.js',
'gen/web_dict.js',
'gen/web_cases.js',
'gen/web_sys.js',
'$dst/gen/web_boot.js',
'$dst/gen/web_dict.js',
'$dst/gen/web_cases.js',
'$dst/gen/web_sys.js',
]),
Copy('web/terminal.html', '$src/web/terminal.html'),
Copy('web/lazy_terminal.html', '$src/web/lazy_terminal.html'),
Copy('web/script_lite_test.html', '$src/web/script_lite_test.html'),
Copy('web/script_test.fs', '$src/web/script_test.fs'),
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.fs', '$src/web/script_test.fs'),
]
Alias('web', ' '.join(WEB_ITEMS))