mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 18:40:09 +00:00
Use -lcg on Win32-targeted builds
This commit is contained in:
parent
560341ec02
commit
399718fd18
@ -466,14 +466,7 @@ endif
|
|||||||
ifeq ($(HAVE_CG), 1)
|
ifeq ($(HAVE_CG), 1)
|
||||||
DEFINES += -DHAVE_CG
|
DEFINES += -DHAVE_CG
|
||||||
OBJ += gfx/shader_cg.o
|
OBJ += gfx/shader_cg.o
|
||||||
ifeq ($(OSX), 1)
|
LIBS += $(CG_LIBS)
|
||||||
LIBS += -framework Cg
|
|
||||||
else
|
|
||||||
LIBS += -lCg -lCgGL
|
|
||||||
ifeq ($(HAVE_D3D9),1)
|
|
||||||
LIBS += -lcgD3D9
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_D3D9), 1)
|
ifeq ($(HAVE_D3D9), 1)
|
||||||
@ -485,9 +478,10 @@ ifeq ($(HAVE_D3D9), 1)
|
|||||||
gfx/context/d3d_ctx.o
|
gfx/context/d3d_ctx.o
|
||||||
DEFINES += -DHAVE_WIN32_D3D9
|
DEFINES += -DHAVE_WIN32_D3D9
|
||||||
LIBS += -ld3d9 -ld3dx9 -ldxguid
|
LIBS += -ld3d9 -ld3dx9 -ldxguid
|
||||||
ifeq ($(HAVE_CG), 1)
|
|
||||||
LIBS += -lcg -lcgD3D9
|
ifeq ($(HAVE_CG), 1)
|
||||||
endif
|
LIBS += -lcgD3D9
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_LIBXML2), 1)
|
ifeq ($(HAVE_LIBXML2), 1)
|
||||||
|
@ -33,6 +33,8 @@ ifeq ($(SLIM),)
|
|||||||
HAVE_FFMPEG = 1
|
HAVE_FFMPEG = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
CG_LIBS := -lcg -lcgGL
|
||||||
|
|
||||||
FREETYPE_CFLAGS := -DHAVE_FREETYPE -Ifreetype2
|
FREETYPE_CFLAGS := -DHAVE_FREETYPE -Ifreetype2
|
||||||
FREETYPE_LIBS := -lfreetype
|
FREETYPE_LIBS := -lfreetype
|
||||||
|
|
||||||
|
@ -209,9 +209,14 @@ fi
|
|||||||
if [ "$HAVE_OPENGL" != 'no' ] && [ "$HAVE_GLES" != 'yes' ]; then
|
if [ "$HAVE_OPENGL" != 'no' ] && [ "$HAVE_GLES" != 'yes' ]; then
|
||||||
if [ "$OS" = 'Darwin' ]; then
|
if [ "$OS" = 'Darwin' ]; then
|
||||||
check_lib CG "-framework Cg" cgCreateContext
|
check_lib CG "-framework Cg" cgCreateContext
|
||||||
|
[ "$HAVE_CG" = 'yes' ] && CG_LIBS='-framework Cg'
|
||||||
|
elif [ "$OS" = 'Win32' ]; then
|
||||||
|
check_lib_cxx CG -lcg cgCreateContext
|
||||||
|
[ "$HAVE_CG" = 'yes' ] && CG_LIBS='-lcg -lcgGL'
|
||||||
else
|
else
|
||||||
# On some distros, -lCg doesn't link against -lstdc++ it seems ...
|
# On some distros, -lCg doesn't link against -lstdc++ it seems ...
|
||||||
check_lib_cxx CG -lCg cgCreateContext
|
check_lib_cxx CG -lCg cgCreateContext
|
||||||
|
[ "$HAVE_CG" = 'yes' ] && CG_LIBS='-lCg -lCgGL'
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Ignoring Cg. Desktop OpenGL is not enabled."
|
echo "Ignoring Cg. Desktop OpenGL is not enabled."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user