From ce75bdbd045a6ae18e5b4f0483b03ab432e9de35 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 13 Dec 2024 12:49:25 +0800 Subject: [PATCH] Improved GLFW for installation and compilation with GLFW in standard library. --- build.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.py b/build.py index c0fbac2..bb6e81a 100644 --- a/build.py +++ b/build.py @@ -186,10 +186,6 @@ def include_sha_headers(): os.path.join('temp', 'glfw-3.4') ) - glfwDll = os.path.join('temp', 'glfw-3.4', 'lib-mingw-w64', 'glfw3.dll') - lib_headers += ['-Itemp/glfw-3.4'] - lib_source_files += [glfwDll] - exe_build_args= [ 'g++', '-Iinclude', '-Wall', '-pedantic', '-Wdisabled-optimization', '-pedantic-errors', '-Wextra', '-Wcast-align', '-Wcast-qual', @@ -212,10 +208,14 @@ def include_sha_headers(): ] + lib_headers + lib_source_files + cpp_files + ['-o', OUTPUT_EXECUTABLE] include_sha_headers() + glfwDll = os.path.join('temp', 'glfw-3.4', 'lib-mingw-w64', 'glfw3.dll') + lib_headers += ['-Itemp/glfw-3.4'] + lib_source_files += [glfwDll] lib_build_args = [ 'g++', '-static', '-static-libgcc', '-Iinclude', '-Istd', '-shared', '-o', OUTPUT_LIBRARY + '.dll' ] + ext_instructions + lib_headers + lib_source_files + cpp_files + cc_files + os.rename(glfwDll, os.path.join( 'dist', 'n8lang', 'modules', 'core@1.0.0', 'lib'