Skip to content

Commit

Permalink
Updated build script for Glfw inclusion in Windows target.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Dec 13, 2024
1 parent 1e69a97 commit 7b30b10
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

os.makedirs(OUT_DIR)
os.makedirs(TEMP_DIR)
os.makedirs(os.path.join('dist', 'n8lang', 'bin'))

try:
src = 'modules'
Expand All @@ -47,14 +48,8 @@

PLATFORM = platform.system()
ARCH = platform.architecture()[0]
OUTPUT_EXECUTABLE = os.path.join(OUT_DIR, 'bin')
OUTPUT_LIBRARY = os.path.join(OUT_DIR, 'modules', 'core@' + CORE_VERSION, 'lib')

os.makedirs(OUTPUT_EXECUTABLE)
os.makedirs(OUTPUT_LIBRARY)

OUTPUT_EXECUTABLE = os.path.join(OUTPUT_EXECUTABLE, 'n8')
OUTPUT_LIBRARY = os.path.join(OUTPUT_LIBRARY, 'n8-std')
OUTPUT_EXECUTABLE = os.path.join(OUT_DIR, 'bin', 'n8')
OUTPUT_LIBRARY = os.path.join(OUT_DIR, 'bin', 'n8-std')

cpp_files = []
cc_files = []
Expand Down Expand Up @@ -219,8 +214,7 @@ def include_sha_headers():
os.path.join(glfw_lib_path, 'glfw3.dll'),
os.path.join(
'dist', 'n8lang',
'modules', '[email protected]',
'lib', 'glfw3.dll'
'bin', 'glfw3.dll'
)
)

Expand Down

0 comments on commit 7b30b10

Please sign in to comment.