Skip to content

Commit

Permalink
remove useless luos_engine shared lib compilation in the end.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-rabault committed Jan 24, 2024
1 parent 2c1a253 commit ded15ff
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions engine/HAL/BROWSER/hal_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@
# Global env, use it if you call this script from a library.json file
genv = DefaultEnvironment()

def shared_lib(source, target, env):
# Try to find the luos_engine.a somwhere on $BUILD_DIR/*/ archive and save it to a libPath variable
libPath = None
for root, dirs, files in os.walk(env.subst("$BUILD_DIR")):
for file in files:
if file.endswith("luos_engine.a"):
libPath = os.path.join(root, file)
break
if libPath is not None:
break
# Convert the luos_engine.a archive to a wasm shared library
env.Execute("gcc -cheerp-pretty-code -O2 -o $BUILD_DIR/libluos_engine.js " + libPath)

# Get the cheerp bin folder
cheerp_bin_path = None
if platform.system() == 'Windows':
Expand Down Expand Up @@ -62,6 +49,3 @@ def shared_lib(source, target, env):

# Replace the output filename with the appropriate extension
e.Replace(PROGNAME="program.js")

# Add the shared_lib callback to the buildprog post action
genv.AddPostAction("$PROGPATH", shared_lib)

0 comments on commit ded15ff

Please sign in to comment.