mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Add support for building without GLideNHQ
This commit is contained in:
parent
13cb7285a8
commit
7a4ef394b1
|
@ -1,8 +1,8 @@
|
|||
cmake project files located inside src folder. To build the project with cmake, run
|
||||
|
||||
cmake [-DCMAKE_BUILD_TYPE=Debug] [-DOPT=On] -DMUPENPLUSAPI=On ../../src/
|
||||
cmake [-DCMAKE_BUILD_TYPE=Debug] [-DOPT=On] [-DNOHQ=On] -DMUPENPLUSAPI=On ../../src/
|
||||
|
||||
-DCMAKE_BUILD_TYPE=Debug - optional parameter, if you want debug build. Default buid type is Release
|
||||
-DOPT=On - optional parameter. set it if you want to enable additional optimizations (can cause additional bugs).
|
||||
-DNOHQ=On - build without realtime texture enhancer library (GLideNHQ)
|
||||
-DMUPENPLUSAPI=On - currently cmake build works only for mupen64plus version of the plugin.
|
||||
|
||||
|
|
|
@ -105,8 +105,15 @@ endif(MUPENPLUSAPI)
|
|||
|
||||
add_subdirectory( osal )
|
||||
include_directories( osal )
|
||||
add_subdirectory( GLideNHQ )
|
||||
include_directories( GLideNHQ )
|
||||
|
||||
if (NOHQ)
|
||||
list(APPEND GLideN64_SOURCES
|
||||
TxFilterStub.cpp
|
||||
)
|
||||
else (NOHQ)
|
||||
add_subdirectory( GLideNHQ )
|
||||
include_directories( GLideNHQ )
|
||||
endif(NOHQ)
|
||||
|
||||
if(UNIX)
|
||||
list(APPEND GLideN64_SOURCES ${GLideN64_SOURCES_UNIX})
|
||||
|
@ -226,9 +233,17 @@ if( CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||
)
|
||||
|
||||
if(SDL)
|
||||
target_link_libraries(${GLideN64_DLL_NAME} PRIVATE ${OPENGL_LIBRARIES} ${SDL_LIBRARIES} ${FREETYPE_LIBRARIES} osald GLideNHQd )
|
||||
if (NOHQ)
|
||||
target_link_libraries(${GLideN64_DLL_NAME} PRIVATE ${OPENGL_LIBRARIES} ${SDL_LIBRARIES} ${FREETYPE_LIBRARIES} osald )
|
||||
else (NOHQ)
|
||||
target_link_libraries(${GLideN64_DLL_NAME} PRIVATE ${OPENGL_LIBRARIES} ${SDL_LIBRARIES} ${FREETYPE_LIBRARIES} osald GLideNHQd )
|
||||
endif (NOHQ)
|
||||
else(SDL)
|
||||
target_link_libraries(${GLideN64_DLL_NAME} PRIVATE ${OPENGL_LIBRARIES} ${FREETYPE_LIBRARIES} osald GLideNHQd )
|
||||
if (NOHQ)
|
||||
target_link_libraries(${GLideN64_DLL_NAME} PRIVATE ${OPENGL_LIBRARIES} ${FREETYPE_LIBRARIES} osald )
|
||||
else (NOHQ)
|
||||
target_link_libraries(${GLideN64_DLL_NAME} PRIVATE ${OPENGL_LIBRARIES} ${FREETYPE_LIBRARIES} osald GLideNHQd )
|
||||
endif (NOHQ)
|
||||
endif(SDL)
|
||||
endif( CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
|
||||
|
@ -242,8 +257,16 @@ if( CMAKE_BUILD_TYPE STREQUAL "Release")
|
|||
)
|
||||
|
||||
if(SDL)
|
||||
target_link_libraries(${GLideN64_DLL_NAME} ${OPENGL_LIBRARIES} ${SDL_LIBRARIES} ${FREETYPE_LIBRARIES} osal GLideNHQ )
|
||||
if (NOHQ)
|
||||
target_link_libraries(${GLideN64_DLL_NAME} ${OPENGL_LIBRARIES} ${SDL_LIBRARIES} ${FREETYPE_LIBRARIES} osal )
|
||||
else (NOHQ)
|
||||
target_link_libraries(${GLideN64_DLL_NAME} ${OPENGL_LIBRARIES} ${SDL_LIBRARIES} ${FREETYPE_LIBRARIES} osal GLideNHQ )
|
||||
endif (NOHQ)
|
||||
else(SDL)
|
||||
target_link_libraries(${GLideN64_DLL_NAME} ${OPENGL_LIBRARIES} ${FREETYPE_LIBRARIES} osal GLideNHQ )
|
||||
if (NOHQ)
|
||||
target_link_libraries(${GLideN64_DLL_NAME} ${OPENGL_LIBRARIES} ${FREETYPE_LIBRARIES} osal )
|
||||
else (NOHQ)
|
||||
target_link_libraries(${GLideN64_DLL_NAME} ${OPENGL_LIBRARIES} ${FREETYPE_LIBRARIES} osal GLideNHQ )
|
||||
endif (NOHQ)
|
||||
endif(SDL)
|
||||
endif( CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
|
|
Loading…
Reference in New Issue
Block a user