mirror of
https://git.checksum.fail/alec/mujs.git
synced 2026-05-01 18:19:42 +03:00
Use libopenlibm.a from separate build action
This commit is contained in:
@@ -31,7 +31,7 @@ def kill_running_qemu_processes():
|
||||
|
||||
def clang_format_src_files():
|
||||
print("build-all: clang-format-src-files")
|
||||
exclude_paths = ["mujs", "openlibm", ".iso.c"]
|
||||
exclude_paths = ["mujs", ".iso.c"]
|
||||
format_file_extensions = [".c", ".cpp", ".h", ".hc"]
|
||||
for src_file in glob.glob(project_path + "**", recursive=True):
|
||||
exclude_file = False
|
||||
@@ -66,15 +66,8 @@ def build_libtemple():
|
||||
if res:
|
||||
raise ValueError("build-all: step 'build-libtemple' failed, error code " + str(res))
|
||||
|
||||
def build_openlibm():
|
||||
print("build-all: build-openlibm")
|
||||
res = os.system('cd ' + project_path + '&& cd src/openlibm && make clean && make ARCH=amd64')
|
||||
if res:
|
||||
raise ValueError("build-all: step 'build-image' failed, error code " + str(res))
|
||||
|
||||
def build_mujs():
|
||||
print("build-all: build-mujs")
|
||||
#build_specific_options = '-Wl,--section-start=.text=0x1004000 -Wl,--section-start=.plt=0x1002020 -no-pie'
|
||||
res = os.system('cd ' + project_path + '&& cd src/mujs && rm -f one.c && make && cp build/debug/mujs ../../build/bin/mujs')
|
||||
if res:
|
||||
raise ValueError("build-all: step 'build-mujs' failed, error code " + str(res))
|
||||
@@ -107,10 +100,13 @@ def generate_iso_c_file():
|
||||
copy_files_cmd_line += ' --exclude .clang-format'
|
||||
copy_files_cmd_line += ' --exclude .git'
|
||||
copy_files_cmd_line += ' --exclude .gitignore'
|
||||
copy_files_cmd_line += ' --exclude .vscode'
|
||||
copy_files_cmd_line += ' --exclude build/isoc'
|
||||
copy_files_cmd_line += ' --exclude build/lib'
|
||||
copy_files_cmd_line += ' --exclude build/redsea'
|
||||
copy_files_cmd_line += ' --exclude lib'
|
||||
copy_files_cmd_line += ' --exclude scripts'
|
||||
copy_files_cmd_line += ' --exclude screenshot.png'
|
||||
copy_files_cmd_line += ' --exclude src'
|
||||
res = os.system(copy_files_cmd_line)
|
||||
if res:
|
||||
@@ -147,7 +143,6 @@ def build_all():
|
||||
clang_format_src_files()
|
||||
refresh_build_path()
|
||||
build_libtemple()
|
||||
build_openlibm()
|
||||
build_mujs()
|
||||
generate_iso_c_file()
|
||||
generate_slipstream_iso_file()
|
||||
|
||||
Reference in New Issue
Block a user