From 43d4e2f024202c4fbf96dd9279b465c4d5cc66e7 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 13 Dec 2024 17:08:09 +0800 Subject: [PATCH] Improved GLFW for installation and compilation with GLFW in standard library. --- build.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/build.py b/build.py index 610d5e7..c5d2d73 100644 --- a/build.py +++ b/build.py @@ -214,19 +214,10 @@ def include_sha_headers(): ] + lib_headers + lib_source_files + cpp_files + ['-o', OUTPUT_EXECUTABLE] include_sha_headers() - lib_source_files += [ - os.path.join( - TEMP_DIR, 'glfw-3.4', - 'lib-mingw-w64', 'libglfw3.a' - ), - os.path.join( - TEMP_DIR, 'glfw-3.4', - 'lib-mingw-w64', 'libglfw3dll.a' - ) - ] lib_build_args = [ 'g++', '-static', '-static-libgcc', '-Iinclude', - '-Istd', '-shared', '-o', OUTPUT_LIBRARY + '.dll' + '-Istd', '-shared', '-o', OUTPUT_LIBRARY + '.dll', + '-L' + os.path.join(TEMP_DIR, 'glfw-3.4', 'lib-mingw-w64') ] + ext_instructions + lib_headers + lib_source_files + cpp_files + cc_files print("Executing:")