From 7b30b10df4615d398130552020ea82792eed840a Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 13 Dec 2024 22:52:29 +0800 Subject: [PATCH] Updated build script for Glfw inclusion in Windows target. --- build.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/build.py b/build.py index 977deae..57f7c24 100644 --- a/build.py +++ b/build.py @@ -34,6 +34,7 @@ os.makedirs(OUT_DIR) os.makedirs(TEMP_DIR) +os.makedirs(os.path.join('dist', 'n8lang', 'bin')) try: src = 'modules' @@ -47,14 +48,8 @@ PLATFORM = platform.system() ARCH = platform.architecture()[0] -OUTPUT_EXECUTABLE = os.path.join(OUT_DIR, 'bin') -OUTPUT_LIBRARY = os.path.join(OUT_DIR, 'modules', 'core@' + CORE_VERSION, 'lib') - -os.makedirs(OUTPUT_EXECUTABLE) -os.makedirs(OUTPUT_LIBRARY) - -OUTPUT_EXECUTABLE = os.path.join(OUTPUT_EXECUTABLE, 'n8') -OUTPUT_LIBRARY = os.path.join(OUTPUT_LIBRARY, 'n8-std') +OUTPUT_EXECUTABLE = os.path.join(OUT_DIR, 'bin', 'n8') +OUTPUT_LIBRARY = os.path.join(OUT_DIR, 'bin', 'n8-std') cpp_files = [] cc_files = [] @@ -219,8 +214,7 @@ def include_sha_headers(): os.path.join(glfw_lib_path, 'glfw3.dll'), os.path.join( 'dist', 'n8lang', - 'modules', 'core@1.0.0', - 'lib', 'glfw3.dll' + 'bin', 'glfw3.dll' ) )