Skip to content

Commit

Permalink
fixed port to not override built-in GLFW
Browse files Browse the repository at this point in the history
  • Loading branch information
ypujante committed Mar 22, 2024
1 parent d54ae90 commit c3397e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions port/emscripten-glfw3.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ def get(ports, settings, shared):
def create(final):
root_path = os.path.join(ports.get_dir(), name)
source_path = os.path.join(root_path, 'src', 'cpp')
source_include_paths = [os.path.join(root_path, 'external', 'GLFW'), os.path.join(root_path, 'include', 'GLFW')]
source_include_paths = [os.path.join(root_path, 'external'), os.path.join(root_path, 'include')]
target = os.path.join(name, 'GLFW')
for source_include_path in source_include_paths:
ports.install_headers(source_include_path, target='GLFW')
ports.install_headers(os.path.join(source_include_path, 'GLFW'), target=target)

flags = []

Expand Down

0 comments on commit c3397e0

Please sign in to comment.