Skip to content

Commit

Permalink
Updated build script for Glfw inclusion in Windows target.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Dec 13, 2024
1 parent 3558e97 commit 53aa661
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,21 @@

os.makedirs(OUT_DIR)
os.makedirs(TEMP_DIR)
os.makedirs(os.path.join('dist', 'n8lang', 'bin'))

try:
src = 'modules'
shutil.copytree(
src,
os.path.join(OUT_DIR, os.path.basename(src)),
dirs_exist_ok=True
)

shutil.copytree(src, os.path.join(OUT_DIR, os.path.basename(src)), dirs_exist_ok=True)
print(f"Successfully copied '{src}' to '{OUT_DIR}'")
os.makedirs(os.path.join('dist', 'n8lang', 'bin'))
os.makedirs(os.path.join(
'dist', 'n8lang', 'modules',
'[email protected]', 'lib'
))

except Exception as e:
print("Failed to copy modules.")
Expand All @@ -49,7 +57,11 @@
PLATFORM = platform.system()
ARCH = platform.architecture()[0]
OUTPUT_EXECUTABLE = os.path.join(OUT_DIR, 'bin', 'n8')
OUTPUT_LIBRARY = os.path.join(OUT_DIR, 'modules', '[email protected]', 'lib', 'core')
OUTPUT_LIBRARY = os.path.join(
OUT_DIR,
'modules', '[email protected]',
'lib', 'core'
)

cpp_files = []
cc_files = []
Expand Down

0 comments on commit 53aa661

Please sign in to comment.