Skip to content

Commit

Permalink
improve awtk_config_common.py for old mac
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Nov 21, 2024
1 parent d92f3ff commit 18abdd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions awtk_config_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ def joinPath(root, subdir):
sdl_path = "/opt/homebrew/Cellar/sdl2/"
if not os.path.exists(sdl_path) :
# Compatible with old systems
sdl_path = '/usr/local/Cellar/sdl2'
sdl_path = '/usr/local/Cellar/sdl2/'
sdl_versions = os.listdir(sdl_path)
if len(sdl_versions)==0:
print("Can not find the SDL version")
exit(-1)
sdl_lib = sdl_path+ sdl_versions[0]+"/lib"
sdl_lib = sdl_path + sdl_versions[0] + "/lib"

TOOLS_NAME = ''
OS_FLAGS = '-Wall -Wno-unused-function -fPIC -DWITHOUT_GLAD=1 '
Expand Down

0 comments on commit 18abdd2

Please sign in to comment.