mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Allow disabling certain parts of the build
This commit is contained in:
@ -99,6 +99,11 @@ if(PLASMA_TARGETS STREQUAL "Ethereal")
|
|||||||
add_definitions(-DSTREAM_LOGGER)
|
add_definitions(-DSTREAM_LOGGER)
|
||||||
endif(PLASMA_TARGETS STREQUAL "Ethereal")
|
endif(PLASMA_TARGETS STREQUAL "Ethereal")
|
||||||
|
|
||||||
|
#Allow us to disable certain parts of the build
|
||||||
|
option(PLASMA_BUILD_RESOURCE_DAT "Do we want to build resource.dat?" ON)
|
||||||
|
option(PLASMA_BUILD_LAUNCHER "Do we want to build plUruLauncher?" ON)
|
||||||
|
option(PLASMA_BUILD_TOOLS "Do we want to build the Plasma tools?" ON)
|
||||||
|
|
||||||
option(USE_VLD "Build and link with Visual Leak Detector (MSVC only)" OFF)
|
option(USE_VLD "Build and link with Visual Leak Detector (MSVC only)" OFF)
|
||||||
if(USE_VLD)
|
if(USE_VLD)
|
||||||
add_definitions(-DUSE_VLD)
|
add_definitions(-DUSE_VLD)
|
||||||
|
@ -1,9 +1,15 @@
|
|||||||
add_subdirectory(plClient)
|
add_subdirectory(plClient)
|
||||||
add_subdirectory(plClientPatcher)
|
|
||||||
add_subdirectory(plCrashHandler)
|
add_subdirectory(plCrashHandler)
|
||||||
add_subdirectory(plPythonPack)
|
|
||||||
add_subdirectory(plUruLauncher)
|
if(PLASMA_BUILD_LAUNCHER)
|
||||||
add_subdirectory(plFileSecure)
|
add_subdirectory(plUruLauncher)
|
||||||
add_subdirectory(plFileEncrypt)
|
endif()
|
||||||
add_subdirectory(plPageInfo)
|
|
||||||
add_subdirectory(plPageOptimizer)
|
if(PLASMA_BUILD_TOOLS)
|
||||||
|
add_subdirectory(plClientPatcher)
|
||||||
|
add_subdirectory(plPythonPack)
|
||||||
|
add_subdirectory(plFileSecure)
|
||||||
|
add_subdirectory(plFileEncrypt)
|
||||||
|
add_subdirectory(plPageInfo)
|
||||||
|
add_subdirectory(plPageOptimizer)
|
||||||
|
endif()
|
||||||
|
@ -23,12 +23,10 @@ if(PYTHONINTERP_FOUND)
|
|||||||
find_python_module(rsvg)
|
find_python_module(rsvg)
|
||||||
find_python_module(Image)
|
find_python_module(Image)
|
||||||
if((DEFINED PY_RSVG) AND (DEFINED PY_IMAGE))
|
if((DEFINED PY_RSVG) AND (DEFINED PY_IMAGE))
|
||||||
set(BUILD_RESOURCE_DAT ON)
|
set(CAN_BUILD_RESOURCE_DAT ON)
|
||||||
endif((DEFINED PY_RSVG) AND (DEFINED PY_IMAGE))
|
endif((DEFINED PY_RSVG) AND (DEFINED PY_IMAGE))
|
||||||
endif(PYTHONINTERP_FOUND)
|
endif(PYTHONINTERP_FOUND)
|
||||||
|
|
||||||
add_subdirectory(external)
|
|
||||||
|
|
||||||
set(plClient_HEADERS
|
set(plClient_HEADERS
|
||||||
plClient.h
|
plClient.h
|
||||||
plClientCreatable.h
|
plClientCreatable.h
|
||||||
@ -63,9 +61,10 @@ set(plClient_RESOURCES
|
|||||||
add_executable(plClient WIN32 ${plClient_SOURCES} ${plClient_HEADERS}
|
add_executable(plClient WIN32 ${plClient_SOURCES} ${plClient_HEADERS}
|
||||||
${plClient_TEXT} ${plClient_RESOURCES})
|
${plClient_TEXT} ${plClient_RESOURCES})
|
||||||
|
|
||||||
if(BUILD_RESOURCE_DAT)
|
if(CAN_BUILD_RESOURCE_DAT AND PLASMA_BUILD_RESOURCE_DAT)
|
||||||
|
add_subdirectory(external)
|
||||||
add_dependencies(plClient externalResources)
|
add_dependencies(plClient externalResources)
|
||||||
endif(BUILD_RESOURCE_DAT)
|
endif()
|
||||||
|
|
||||||
if(PLASMA_EXTERNAL_RELEASE)
|
if(PLASMA_EXTERNAL_RELEASE)
|
||||||
set_target_properties(plClient PROPERTIES OUTPUT_NAME "UruExplorer")
|
set_target_properties(plClient PROPERTIES OUTPUT_NAME "UruExplorer")
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
add_subdirectory(plLocalizationEditor)
|
if(PLASMA_BUILD_TOOLS)
|
||||||
add_subdirectory(plResBrowser)
|
add_subdirectory(plLocalizationEditor)
|
||||||
add_subdirectory(plShaderAssembler)
|
add_subdirectory(plResBrowser)
|
||||||
|
add_subdirectory(plShaderAssembler)
|
||||||
if(FREETYPE_FOUND)
|
if(FREETYPE_FOUND)
|
||||||
add_subdirectory(plFontConverter)
|
add_subdirectory(plFontConverter)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Max Stuff goes below here...
|
# Max Stuff goes below here...
|
||||||
|
Reference in New Issue
Block a user