mirror of https://github.com/PCSX2/pcsx2.git
lilypad: add cmake file
This commit is contained in:
parent
76ff56a4e3
commit
147353a177
|
@ -6,123 +6,99 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
|
|||
endif()
|
||||
|
||||
|
||||
# make cdvdGigaherz
|
||||
#if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/cdvdGigaherz" AND cdvdGigaherz)
|
||||
# add_subdirectory(cdvdGigaherz)
|
||||
#endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/cdvdGigaherz" AND cdvdGigaherz)
|
||||
#endif()
|
||||
|
||||
# make CDVDiso
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/CDVDiso" AND CDVDiso)
|
||||
add_subdirectory(CDVDiso/src)
|
||||
endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/CDVDiso" AND CDVDiso)
|
||||
endif()
|
||||
|
||||
# make CDVDisoEFP
|
||||
# if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/CDVDisoEFP" AND CDVDisoEFP)
|
||||
# add_subdirectory(CDVDisoEFP)
|
||||
# endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/CDVDisoEFP" AND CDVDisoEFP)
|
||||
# endif()
|
||||
|
||||
# make CDVDlinuz
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/CDVDlinuz" AND CDVDlinuz)
|
||||
add_subdirectory(CDVDlinuz/Src)
|
||||
endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/CDVDlinuz" AND CDVDlinuz)
|
||||
endif()
|
||||
|
||||
# make CDVDnull
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/CDVDnull" AND CDVDnull)
|
||||
add_subdirectory(CDVDnull)
|
||||
endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/CDVDnull" AND CDVDnull)
|
||||
endif()
|
||||
|
||||
# make CDVDolio
|
||||
# if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/CDVDolio" AND CDVDolio)
|
||||
# add_subdirectory(CDVDolio)
|
||||
# endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/CDVDolio" AND CDVDolio)
|
||||
# endif()
|
||||
|
||||
# make CDVDpeops
|
||||
#if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/CDVDpeops" AND CDVDpeops)
|
||||
# add_subdirectory(CDVDpeops)
|
||||
#endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/CDVDpeops" AND CDVDpeops)
|
||||
#endif()
|
||||
|
||||
# make dev9null
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/dev9null" AND dev9null)
|
||||
add_subdirectory(dev9null)
|
||||
endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/dev9null" AND dev9null)
|
||||
endif()
|
||||
|
||||
# make FWnull
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/FWnull" AND FWnull)
|
||||
add_subdirectory(FWnull)
|
||||
endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/FWnull" AND FWnull)
|
||||
endif()
|
||||
|
||||
# make GSdx
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/GSdx" AND GSdx)
|
||||
add_subdirectory(GSdx)
|
||||
endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/GSdx" AND GSdx)
|
||||
endif()
|
||||
|
||||
# make GSnull
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/GSnull" AND GSnull)
|
||||
add_subdirectory(GSnull)
|
||||
endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/GSnull" AND GSnull)
|
||||
endif()
|
||||
|
||||
# make LilyPad
|
||||
#if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/LilyPad" AND LilyPad)
|
||||
# add_subdirectory(LilyPad)
|
||||
#endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/LilyPad" AND LilyPad)
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/LilyPad" AND LilyPad)
|
||||
add_subdirectory(LilyPad)
|
||||
endif()
|
||||
|
||||
# make onepad
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/onepad" AND onepad)
|
||||
add_subdirectory(onepad)
|
||||
endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/onepad" AND onepad)
|
||||
endif()
|
||||
|
||||
# make PadNull
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/PadNull" AND PadNull)
|
||||
add_subdirectory(PadNull)
|
||||
endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/PadNull" AND PadNull)
|
||||
endif()
|
||||
|
||||
# make PeopsSPU2
|
||||
# if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/PeopsSPU2" AND PeopsSPU2)
|
||||
# add_subdirectory(PeopsSPU2)
|
||||
# endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/PeopsSPU2" AND PeopsSPU2)
|
||||
# endif()
|
||||
|
||||
# make SPU2null
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/SPU2null" AND SPU2null)
|
||||
add_subdirectory(SPU2null)
|
||||
endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/SPU2null" AND SPU2null)
|
||||
endif()
|
||||
|
||||
# make spu2-x
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/spu2-x" AND spu2-x)
|
||||
add_subdirectory(spu2-x/src)
|
||||
endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/spu2-x" AND spu2-x)
|
||||
endif()
|
||||
|
||||
# make SSSPSXPAD
|
||||
#if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/SSSPSXPAD" AND SSSPSXPAD)
|
||||
# add_subdirectory(SSSPSXPAD)
|
||||
#endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/SSSPSXPAD" AND SSSPSXPAD)
|
||||
#endif()
|
||||
|
||||
# make USBnull
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/USBnull" AND USBnull)
|
||||
add_subdirectory(USBnull)
|
||||
endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/USBnull" AND USBnull)
|
||||
endif()
|
||||
|
||||
# make xpad
|
||||
#if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/xpad" AND xpad)
|
||||
# add_subdirectory(xpad)
|
||||
#endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/xpad" AND xpad)
|
||||
#endif()
|
||||
|
||||
# make zerogs
|
||||
#if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/zerogs" AND zerogs)
|
||||
# add_subdirectory(zerogs)
|
||||
#endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/zerogs" AND zerogs)
|
||||
#endif()
|
||||
|
||||
# make zzogl-pg
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/zzogl-pg" AND zzogl)
|
||||
add_subdirectory(zzogl-pg/opengl)
|
||||
endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/zzogl-pg" AND zzogl)
|
||||
endif()
|
||||
|
||||
# make zeropad
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/zeropad" AND zeropad)
|
||||
add_subdirectory(zeropad)
|
||||
endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/zeropad" AND zeropad)
|
||||
endif()
|
||||
|
||||
# make zerospu2
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/plugins/zerospu2" AND zerospu2)
|
||||
add_subdirectory(zerospu2)
|
||||
endif(EXISTS "${CMAKE_SOURCE_DIR}/plugins/zerospu2" AND zerospu2)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -0,0 +1,70 @@
|
|||
# Check that people use the good file
|
||||
if(NOT TOP_CMAKE_WAS_SOURCED)
|
||||
message(FATAL_ERROR "
|
||||
You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
|
||||
It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
|
||||
endif()
|
||||
|
||||
|
||||
# plugin name
|
||||
set(Output LilyPad-0.11.0)
|
||||
|
||||
set(OptimizationFlags
|
||||
-O2
|
||||
)
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||
set(lilypadFinalFlags "-DPCSX2_DEBUG")
|
||||
|
||||
elseif(CMAKE_BUILD_TYPE STREQUAL Devel)
|
||||
set(lilypadFinalFlags ${OptimizationFlags})
|
||||
|
||||
elseif(CMAKE_BUILD_TYPE STREQUAL Release)
|
||||
set(lilypadFinalFlags ${OptimizationFlags})
|
||||
|
||||
endif()
|
||||
|
||||
# lilypad sources
|
||||
set(lilypadSources
|
||||
DeviceEnumerator.cpp
|
||||
InputManager.cpp
|
||||
Linux/Config.cpp
|
||||
Linux/KeyboardQueue.cpp
|
||||
Linux/LilyPad.cpp)
|
||||
|
||||
# lilypad headers
|
||||
set(lilypadHeaders
|
||||
)
|
||||
|
||||
# lilypad Linux sources
|
||||
set(lilypadLinuxSources
|
||||
)
|
||||
|
||||
# lilypad Linux headers
|
||||
set(lilypadLinuxHeaders
|
||||
)
|
||||
|
||||
if (SDL2_API)
|
||||
set(lilypadFinalLibs
|
||||
${SDL2_LIBRARIES}
|
||||
)
|
||||
else()
|
||||
set(lilypadFinalLibs
|
||||
${SDL_LIBRARY}
|
||||
)
|
||||
endif()
|
||||
|
||||
set(lilypadFinalLibs
|
||||
#${lilypadFinalLibs}
|
||||
#${GTK2_LIBRARIES}
|
||||
${X11_LIBRARIES}
|
||||
)
|
||||
|
||||
set(lilypadFinalSources
|
||||
${lilypadSources}
|
||||
${lilypadHeaders}
|
||||
${lilypadLinuxSources}
|
||||
${lilypadLinuxHeaders}
|
||||
)
|
||||
|
||||
add_pcsx2_plugin(${Output} "${lilypadFinalSources}" "${lilypadFinalLibs}" "${lilypadFinalFlags}")
|
Loading…
Reference in New Issue