From 3adb2b4a3c8e7ed9a3aabfca3e6754ab8bee3772 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 13 Dec 2024 12:59:37 +0800 Subject: [PATCH] Improved GLFW for installation and compilation with GLFW in standard library. --- build.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 45099ff..947cd1b 100644 --- a/build.py +++ b/build.py @@ -166,10 +166,15 @@ def include_sha_headers(): ext_instructions = get_ext_instructions() if PLATFORM == 'Linux': + subprocess.run(['sudo', 'apt', 'update']) + subprocess.run(['sudo', 'apt', 'upgrade']) subprocess.run([ - 'sudo', 'apt', 'install', '-y', 'libglfw3-dev', 'libgl1-mesa-dev' + 'sudo', 'apt', 'install', + '-y', 'libglfw3-dev', 'libgl1-mesa-dev' ]) + lib_headers += ['-Itemp/glfw-3.4'] + if PLATFORM == 'Windows': if ARCH == '64bit': download_file(get_glfw_file('win64'), 'glfw.zip')