Skip to content

Commit

Permalink
Supressing GLFW warning for deprecations in Darwin platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Dec 14, 2024
1 parent 06b3c90 commit 8543cd6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,12 @@ def include_sha_headers():
ext_instructions = get_ext_instructions()
if PLATFORM == 'Linux':
subprocess.run([
'sudo', 'apt', 'install',
'-y', 'libglfw3-dev', 'libgl1-mesa-dev'
'sudo', 'apt', 'install', '-y',
'libglfw3-dev', 'libgl1-mesa-dev'
])
elif PLATFORM == 'Darwin':
subprocess.run([
'brew', 'install', 'glfw'
])
subprocess.run(['brew', 'install', 'glfw'])
subprocess.run(['brew', 'link', 'glfw'])

print('Building binaries...')
if PLATFORM == 'Windows':
Expand Down Expand Up @@ -355,7 +354,8 @@ def include_sha_headers():
lib_build_args = [
'/opt/homebrew/opt/llvm/bin/clang++', '-Iinclude',
'-Istd', '-shared', '-o', OUTPUT_LIBRARY + '.dylib',
'-Wno-deprecated-declarations', '-DGL_SILENCE_DEPRECATION'
'-Wno-deprecated-declarations', '-DGL_SILENCE_DEPRECATION',
'-L/opt/homebrew/lib'
] + ext_instructions + lib_headers + lib_source_files + cpp_files + cc_files + [
'-lglfw', '-framework', 'OpenGL'
]
Expand Down

0 comments on commit 8543cd6

Please sign in to comment.