Skip to content

Commit

Permalink
Improved GLFW for installation and compilation with GLFW in standard …
Browse files Browse the repository at this point in the history
…library.
  • Loading branch information
nthnn committed Dec 13, 2024
1 parent 475fc98 commit aa551d2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', '[email protected]',
'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',
Expand Down

0 comments on commit aa551d2

Please sign in to comment.