cmake: add an option to build the new legacy GSdx plugin

+ bump the new one to 1.1.0 (to ease reporting)
This commit is contained in:
Gregory Hainaut 2016-04-07 21:46:42 +02:00
parent 8751203986
commit 1208dbe8c7
5 changed files with 9 additions and 4 deletions

View File

@ -35,6 +35,7 @@ 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)")
option(GSDX_LEGACY "Build a GSdx legacy plugin compatible with GL3.3")
#-------------------------------------------------------------------------------
# Path and lib option

View File

@ -631,7 +631,7 @@ set(pcsx2FinalLibs
)
if(BUILTIN_GS)
set(pcsx2FinalLibs "${pcsx2FinalLibs} GSdx-1.0.0")
set(pcsx2FinalLibs "${pcsx2FinalLibs} GSdx")
endif()
if(BUILTIN_PAD)
set(pcsx2FinalLibs "${pcsx2FinalLibs} onepad-1.2.0")

View File

@ -46,6 +46,10 @@ if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/GSdx" AND GSdx)
add_subdirectory(GSdx)
endif()
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/GSdx_legacy" AND GSdx AND GSDX_LEGACY)
add_subdirectory(GSdx_legacy)
endif()
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/GSnull" AND GSnull)
add_subdirectory(GSnull)
endif()

View File

@ -6,8 +6,8 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
endif()
# plugin name
set(Output GSdx-1.0.0)
# plugin name (no version number to ease future version bump and bisect)
set(Output GSdx)
set(CommonFlags
-fno-operator-names # because Xbyak uses and()/xor()/or()/not() function

View File

@ -83,7 +83,7 @@ EXPORT_C_(const char*) PS2EgetLibName()
EXPORT_C_(uint32) PS2EgetLibVersion2(uint32 type)
{
const uint32 revision = 1;
const uint32 build = 0;
const uint32 build = 1;
return (build << 0) | (revision << 8) | (PS2E_GS_VERSION << 16) | (PLUGIN_VERSION << 24);
}