Only check for the needed dependencies.

Helpful for dropping dependencies package dependencies.
- Git only needed if there is a .git folder
- bzip2 only needed by CDVDiso
- CG/GLEW was for zerogs and ZZogl
- jpeg was for ZZogl
.
I also added that EGL_API is also for GSdx in option comment.
This commit is contained in:
Miguel A. Colón Vélez 2015-07-27 18:54:04 -04:00
parent e4ab71abf3
commit 41cc153bff
2 changed files with 15 additions and 9 deletions

View File

@ -31,9 +31,9 @@ endif()
#-------------------------------------------------------------------------------
# Graphical option
#-------------------------------------------------------------------------------
option(GLSL_API "Replace zzogl CG backend by GLSL (experimental option)")
option(EGL_API "Use EGL on zzogl (experimental/developer option)")
option(REBUILD_SHADER "Rebuild glsl/cg shader (developer option)")
option(GLSL_API "Replace ZZogl CG backend by GLSL (experimental option)")
option(EGL_API "Use EGL on ZZogl/GSdx (experimental/developer option)")
option(REBUILD_SHADER "Rebuild GLSL/CG shader (developer option)")
option(BUILD_REPLAY_LOADERS "Build GS replayer to ease testing (developer option)")
#-------------------------------------------------------------------------------

View File

@ -3,13 +3,13 @@
#-------------------------------------------------------------------------------
## Use cmake package to find module
find_package(ALSA)
find_package(BZip2)
find_package(Gettext) # translation tool
find_package(Git)
find_package(JPEG)
if(EXISTS ${PROJECT_SOURCE_DIR}/.git)
find_package(Git)
endif()
find_package(LibLZMA)
find_package(PNG)
find_package(OpenGL)
find_package(PNG)
# The requirement of wxWidgets is checked in SelectPcsx2Plugins module
# Does not require the module (allow to compile non-wx plugins)
# Force the unicode build (the variable is only supported on cmake 2.8.3 and above)
@ -62,10 +62,16 @@ find_package(wxWidgets COMPONENTS base core adv)
find_package(ZLIB)
## Use pcsx2 package to find module
include(FindCg)
include(FindGlew)
include(FindLibc)
## Only needed by the extra plugins
if(EXTRA_PLUGINS)
find_package(BZip2)
include(FindCg)
include(FindGlew)
find_package(JPEG)
endif()
## Use CheckLib package to find module
include(CheckLib)
if(Linux)