From aa551d2535c648239198f8ba405e85c5e27e8659 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 13 Dec 2024 18:14:54 +0800 Subject: [PATCH] Improved GLFW for installation and compilation with GLFW in standard library. --- build.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index 838329c..a7632ba 100644 --- a/build.py +++ b/build.py @@ -215,10 +215,19 @@ def include_sha_headers(): include_sha_headers() glfw_lib_path = os.path.join(TEMP_DIR, 'glfw-3.4', 'lib-mingw-w64') + shutil.copy( + os.path.join(glfw_lib_path, 'glfw3.dll'), + os.path.join( + 'dist', 'n8lang', + 'modules', 'core@1.0.0', + 'lib', 'glfw3.dll' + ) + ) + lib_source_files += [ os.path.join(glfw_lib_path, 'libglfw3.a'), - # os.path.join(glfw_lib_path, 'libglfw3dll.a'), - # os.path.join(glfw_lib_path, 'glfw3.dll') + os.path.join(glfw_lib_path, 'libglfw3dll.a'), + os.path.join(glfw_lib_path, 'glfw3.dll') ] lib_build_args = [ 'g++', '-static', '-static-libgcc', '-Iinclude',