Jolt Patch

This commit is contained in:
2026-07-09 17:25:48 -07:00
parent cb19c9b5b4
commit 9d83c318b6
18 changed files with 2542 additions and 157 deletions

View File

@ -290,12 +290,28 @@ let project = new Project('""" + lnx.utils.safesrc(wrd.lnx_project_name + '-' +
if not os.path.exists('Libraries/haxejolt'):
khafile.write(add_leenkx_library(sdk_path + '/lib/', 'haxejolt', rel_path=do_relpath_sdk))
if state.target.startswith('krom') or state.target == 'html5' or state.target == 'node':
joltjs_path = sdk_path + '/lib/haxejolt/jolt/jolt.wasm.js'
joltjs_path = joltjs_path.replace('\\', '/').replace('//', '/')
khafile.write(add_assets(joltjs_path, rel_path=do_relpath_sdk))
joltjs_wasm_path = sdk_path + '/lib/haxejolt/jolt/jolt.wasm.wasm'
joltjs_wasm_path = joltjs_wasm_path.replace('\\', '/').replace('//', '/')
khafile.write(add_assets(joltjs_wasm_path, rel_path=do_relpath_sdk))
jolt_mt = wrd.lnx_jolt_multithread
multithread = False
if jolt_mt == 'Enabled':
multithread = True
elif jolt_mt == 'Auto':
if state.target.startswith('krom') or state.target == 'node':
multithread = True
if multithread:
assets.add_khafile_def('lnx_jolt_mt')
joltjs_path = sdk_path + '/lib/haxejolt/jolt/jolt.mt.wasm.js'
joltjs_path = joltjs_path.replace('\\', '/').replace('//', '/')
khafile.write(add_assets(joltjs_path, rel_path=do_relpath_sdk))
joltjs_wasm_path = sdk_path + '/lib/haxejolt/jolt/jolt.mt.wasm.wasm'
joltjs_wasm_path = joltjs_wasm_path.replace('\\', '/').replace('//', '/')
khafile.write(add_assets(joltjs_wasm_path, rel_path=do_relpath_sdk))
else:
joltjs_path = sdk_path + '/lib/haxejolt/jolt/jolt.wasm.js'
joltjs_path = joltjs_path.replace('\\', '/').replace('//', '/')
khafile.write(add_assets(joltjs_path, rel_path=do_relpath_sdk))
joltjs_wasm_path = sdk_path + '/lib/haxejolt/jolt/jolt.wasm.wasm'
joltjs_wasm_path = joltjs_wasm_path.replace('\\', '/').replace('//', '/')
khafile.write(add_assets(joltjs_wasm_path, rel_path=do_relpath_sdk))
if export_navigation:
assets.add_khafile_def('lnx_navigation')