mirror of https://github.com/PCSX2/pcsx2.git
gsdx: make png++ optional
Some distributions (Fedora) doesn't have a png++ package...
This commit is contained in:
parent
bd2c04a0ec
commit
979ea92754
|
@ -144,7 +144,7 @@ endif()
|
|||
# requires: -OpenGL
|
||||
# -X11
|
||||
#---------------------------------------
|
||||
if(OPENGL_FOUND AND X11_FOUND AND PNGPP_FOUND AND GTKn_FOUND AND PNG_FOUND AND (EGL_FOUND OR NOT EGL_API))
|
||||
if(OPENGL_FOUND AND X11_FOUND AND GTKn_FOUND AND PNG_FOUND AND (EGL_FOUND OR NOT EGL_API))
|
||||
set(GSdx TRUE)
|
||||
elseif(NOT EXISTS "${CMAKE_SOURCE_DIR}/plugins/GSdx")
|
||||
set(GSdx FALSE)
|
||||
|
|
|
@ -44,6 +44,10 @@ if(LIBLZMA_FOUND)
|
|||
set(GSdxFinalFlags ${GSdxFinalFlags} -DLZMA_SUPPORTED)
|
||||
endif()
|
||||
|
||||
if(PNGPP_FOUND)
|
||||
set(GSdxFinalFlags ${GSdxFinalFlags} -DPNGPP_SUPPORTED)
|
||||
endif()
|
||||
|
||||
#Clang doesn't support a few common flags that GCC does.
|
||||
if(NOT USE_CLANG)
|
||||
set(GSdxFinalFlags ${GSdxFinalFlags} -fabi-version=6)
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
//#define ENABLE_OPENCL
|
||||
#endif
|
||||
|
||||
#if defined(__linux__)
|
||||
#if defined(__linux__) && PNGPP_SUPPORTED
|
||||
// Allow to dump texture as PNG (require libpng++). It reduces the size of the dump
|
||||
// and alpha is well supported (on linux)
|
||||
#define ENABLE_OGL_PNG
|
||||
|
|
Loading…
Reference in New Issue