improve build scripts

This commit is contained in:
lixianjing 2024-09-06 10:33:30 +08:00
parent 1b2aa3fe38
commit 79e19acbba
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ if OS_NAME == 'Darwin':
OS_LIBS = ['stdc++', 'iconv', 'pthread', 'm', 'dl']
OS_LINKFLAGS = '-framework IOKit -framework Cocoa -framework QuartzCore -framework OpenGL -weak_framework Metal -weak_framework MetalKit'
OS_FLAGS = OS_FLAGS + ' -DHAS_SEM_OPEN '
OS_FLAGS = OS_FLAGS + ' -D__APPLE__ -DHAS_PTHREAD -DMACOS -Dmacintosh '
OS_FLAGS = OS_FLAGS + ' -D__APPLE__ -DHAS_PTHREAD -DMACOS '
OS_FLAGS = OS_FLAGS + ' -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -DBGFX_CONFIG_RENDERER_METAL=1 '
OS_LIBPATH = ['/usr/local/lib/', sdl_lib]

View File

@ -20,7 +20,7 @@
# include "e_amiga.h"
#elif defined (DJGPP)
# include "e_djgpp.h"
#elif defined (macintosh)
#elif defined (__APPLE__)
# include "e_mac.h"
#elif defined (MSDOS) || defined (WIN32)
# include "e_msoft.h"