mirror of
https://github.com/love2d/megasource.git
synced 2026-08-19 20:20:11 +02:00
Disable targets which are not needed.
This commit is contained in:
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8)
|
|||||||
project(DevIL)
|
project(DevIL)
|
||||||
|
|
||||||
option(DEVIL_BUILD_SHARED "Build shared library" ON)
|
option(DEVIL_BUILD_SHARED "Build shared library" ON)
|
||||||
option(DEVIL_BUILD_STATIC "Build static library" ON)
|
option(DEVIL_BUILD_STATIC "Build static library" OFF)
|
||||||
|
|
||||||
set(DEVIL_SRC
|
set(DEVIL_SRC
|
||||||
src-IL/src/altivec_common.c
|
src-IL/src/altivec_common.c
|
||||||
|
|||||||
@@ -229,7 +229,7 @@ set_option(RENDER_D3D "Enable the Direct3D render driver" ${WINDOWS})
|
|||||||
# TODO: We should (should we?) respect cmake's ${BUILD_SHARED_LIBS} flag here
|
# TODO: We should (should we?) respect cmake's ${BUILD_SHARED_LIBS} flag here
|
||||||
# The options below are for compatibility to configure's default behaviour.
|
# The options below are for compatibility to configure's default behaviour.
|
||||||
set(SDL_SHARED ON CACHE BOOL "Build a shared version of the library")
|
set(SDL_SHARED ON CACHE BOOL "Build a shared version of the library")
|
||||||
set(SDL_STATIC ON CACHE BOOL "Build a static version of the library")
|
set(SDL_STATIC OFF CACHE BOOL "Build a static version of the library")
|
||||||
|
|
||||||
# General source files
|
# General source files
|
||||||
file(GLOB SOURCE_FILES
|
file(GLOB SOURCE_FILES
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8)
|
|||||||
|
|
||||||
project(freetype)
|
project(freetype)
|
||||||
|
|
||||||
option(FREETYPE_BUILD_SHARED "Build shared library" ON)
|
option(FREETYPE_BUILD_SHARED "Build shared library" OFF)
|
||||||
option(FREETYPE_BUILD_STATIC "Build static library" ON)
|
option(FREETYPE_BUILD_STATIC "Build static library" ON)
|
||||||
|
|
||||||
set(FREETYPE_SRC
|
set(FREETYPE_SRC
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8)
|
|||||||
|
|
||||||
project(jasper)
|
project(jasper)
|
||||||
|
|
||||||
option(JASPER_BUILD_SHARED "Build shared library" ON)
|
option(JASPER_BUILD_SHARED "Build shared library" OFF)
|
||||||
option(JASPER_BUILD_STATIC "Build static library" ON)
|
option(JASPER_BUILD_STATIC "Build static library" ON)
|
||||||
|
|
||||||
set(JASPER_SRC
|
set(JASPER_SRC
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8)
|
|||||||
|
|
||||||
project(jpeg)
|
project(jpeg)
|
||||||
|
|
||||||
option(JPEG_BUILD_SHARED "Build shared library" ON)
|
option(JPEG_BUILD_SHARED "Build shared library" OFF)
|
||||||
option(JPEG_BUILD_STATIC "Build static library" ON)
|
option(JPEG_BUILD_STATIC "Build static library" ON)
|
||||||
|
|
||||||
set(JPEG_SRC
|
set(JPEG_SRC
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8)
|
|||||||
|
|
||||||
project(modplug)
|
project(modplug)
|
||||||
|
|
||||||
option(MODPLUG_BUILD_SHARED "Build shared library" ON)
|
option(MODPLUG_BUILD_SHARED "Build shared library" OFF)
|
||||||
option(MODPLUG_BUILD_STATIC "Build static library" ON)
|
option(MODPLUG_BUILD_STATIC "Build static library" ON)
|
||||||
|
|
||||||
set(MODPLUG_SRC
|
set(MODPLUG_SRC
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8)
|
|||||||
|
|
||||||
project(ogg)
|
project(ogg)
|
||||||
|
|
||||||
option(OGG_BUILD_SHARED "Build shared library" ON)
|
option(OGG_BUILD_SHARED "Build shared library" OFF)
|
||||||
option(OGG_BUILD_STATIC "Build static library" ON)
|
option(OGG_BUILD_STATIC "Build static library" ON)
|
||||||
|
|
||||||
set(OGG_SRC
|
set(OGG_SRC
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ cmake_minimum_required(VERSION 2.8)
|
|||||||
|
|
||||||
project(vorbis)
|
project(vorbis)
|
||||||
|
|
||||||
option(VORBIS_BUILD_SHARED "Build shared libvorbis" ON)
|
option(VORBIS_BUILD_SHARED "Build shared libvorbis" OFF)
|
||||||
option(VORBIS_BUILD_STATIC "Build static libvorbis" ON)
|
option(VORBIS_BUILD_STATIC "Build static libvorbis" ON)
|
||||||
option(VORBISFILE_BUILD_SHARED "Build shared libvorbisfile" ON)
|
option(VORBISFILE_BUILD_SHARED "Build shared libvorbisfile" OFF)
|
||||||
option(VORBISFILE_BUILD_STATIC "Build static libvorbisfile" ON)
|
option(VORBISFILE_BUILD_STATIC "Build static libvorbisfile" ON)
|
||||||
|
|
||||||
set(VORBIS_SRC
|
set(VORBIS_SRC
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ endif()
|
|||||||
if(DEFINED PNG_SHARED)
|
if(DEFINED PNG_SHARED)
|
||||||
option(PNG_SHARED "Build shared lib" ${PNG_SHARED})
|
option(PNG_SHARED "Build shared lib" ${PNG_SHARED})
|
||||||
else()
|
else()
|
||||||
option(PNG_SHARED "Build shared lib" ON)
|
option(PNG_SHARED "Build shared lib" OFF)
|
||||||
endif()
|
endif()
|
||||||
if(DEFINED PNG_STATIC)
|
if(DEFINED PNG_STATIC)
|
||||||
option(PNG_STATIC "Build static lib" ${PNG_STATIC})
|
option(PNG_STATIC "Build static lib" ${PNG_STATIC})
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8)
|
|||||||
project(lua51)
|
project(lua51)
|
||||||
|
|
||||||
option(LUA_BUILD_SHARED "Build shared library" ON)
|
option(LUA_BUILD_SHARED "Build shared library" ON)
|
||||||
option(LUA_BUILD_STATIC "Build static library" ON)
|
option(LUA_BUILD_STATIC "Build static library" OFF)
|
||||||
|
|
||||||
set(LUA_SRC
|
set(LUA_SRC
|
||||||
src/lapi.c
|
src/lapi.c
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8)
|
|||||||
project(mpg123)
|
project(mpg123)
|
||||||
|
|
||||||
option(MPG123_BUILD_SHARED "Build shared library" ON)
|
option(MPG123_BUILD_SHARED "Build shared library" ON)
|
||||||
option(MPG123_BUILD_STATIC "Build static library" ON)
|
option(MPG123_BUILD_STATIC "Build static library" OFF)
|
||||||
|
|
||||||
set(MPG123_SRC
|
set(MPG123_SRC
|
||||||
src/libmpg123/compat.c
|
src/libmpg123/compat.c
|
||||||
|
|||||||
@@ -62,9 +62,9 @@ OPTION(DLOPEN "Check for the dlopen API for loading optional libs" ON)
|
|||||||
|
|
||||||
OPTION(WERROR "Treat compile warnings as errors" OFF)
|
OPTION(WERROR "Treat compile warnings as errors" OFF)
|
||||||
|
|
||||||
OPTION(UTILS "Build and install utility programs" ON)
|
OPTION(UTILS "Build and install utility programs" OFF)
|
||||||
|
|
||||||
OPTION(EXAMPLES "Build and install example programs" ON)
|
OPTION(EXAMPLES "Build and install example programs" OFF)
|
||||||
|
|
||||||
OPTION(ALSOFT_CONFIG "Install alsoft.conf sample configuration file" ON)
|
OPTION(ALSOFT_CONFIG "Install alsoft.conf sample configuration file" ON)
|
||||||
|
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ IF(PHYSFS_BUILD_STATIC)
|
|||||||
SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs-static")
|
SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs-static")
|
||||||
ENDIF(PHYSFS_BUILD_STATIC)
|
ENDIF(PHYSFS_BUILD_STATIC)
|
||||||
|
|
||||||
OPTION(PHYSFS_BUILD_SHARED "Build shared library" TRUE)
|
OPTION(PHYSFS_BUILD_SHARED "Build shared library" FALSE)
|
||||||
IF(PHYSFS_BUILD_SHARED)
|
IF(PHYSFS_BUILD_SHARED)
|
||||||
ADD_LIBRARY(physfs SHARED ${PHYSFS_SRCS})
|
ADD_LIBRARY(physfs SHARED ${PHYSFS_SRCS})
|
||||||
SET_TARGET_PROPERTIES(physfs PROPERTIES VERSION ${PHYSFS_VERSION})
|
SET_TARGET_PROPERTIES(physfs PROPERTIES VERSION ${PHYSFS_VERSION})
|
||||||
@@ -302,7 +302,7 @@ IF(PHYSFS_BUILD_SHARED AND PHYSFS_BUILD_STATIC)
|
|||||||
SET_TARGET_PROPERTIES(physfs-static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
SET_TARGET_PROPERTIES(physfs-static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
||||||
ENDIF(PHYSFS_BUILD_SHARED AND PHYSFS_BUILD_STATIC)
|
ENDIF(PHYSFS_BUILD_SHARED AND PHYSFS_BUILD_STATIC)
|
||||||
|
|
||||||
OPTION(PHYSFS_BUILD_TEST "Build stdio test program." TRUE)
|
OPTION(PHYSFS_BUILD_TEST "Build stdio test program." FALSE)
|
||||||
MARK_AS_ADVANCED(PHYSFS_BUILD_TEST)
|
MARK_AS_ADVANCED(PHYSFS_BUILD_TEST)
|
||||||
IF(PHYSFS_BUILD_TEST)
|
IF(PHYSFS_BUILD_TEST)
|
||||||
FIND_PATH(READLINE_H readline/readline.h)
|
FIND_PATH(READLINE_H readline/readline.h)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8)
|
|||||||
|
|
||||||
project(tiff)
|
project(tiff)
|
||||||
|
|
||||||
option(TIFF_BUILD_SHARED "Build shared library" ON)
|
option(TIFF_BUILD_SHARED "Build shared library" OFF)
|
||||||
option(TIFF_BUILD_STATIC "Build static library" ON)
|
option(TIFF_BUILD_STATIC "Build static library" ON)
|
||||||
|
|
||||||
set(TIFF_SRC
|
set(TIFF_SRC
|
||||||
|
|||||||
@@ -234,6 +234,8 @@ endif()
|
|||||||
# Example binaries
|
# Example binaries
|
||||||
#============================================================================
|
#============================================================================
|
||||||
|
|
||||||
|
return()
|
||||||
|
|
||||||
add_executable(example test/example.c)
|
add_executable(example test/example.c)
|
||||||
target_link_libraries(example zlib)
|
target_link_libraries(example zlib)
|
||||||
add_test(example example)
|
add_test(example example)
|
||||||
@@ -241,7 +243,7 @@ add_test(example example)
|
|||||||
add_executable(minigzip test/minigzip.c)
|
add_executable(minigzip test/minigzip.c)
|
||||||
target_link_libraries(minigzip zlib)
|
target_link_libraries(minigzip zlib)
|
||||||
|
|
||||||
if(HAVE_OFF64_T)
|
if(HAVE_OFF64_T AND FALSE)
|
||||||
add_executable(example64 test/example.c)
|
add_executable(example64 test/example.c)
|
||||||
target_link_libraries(example64 zlib)
|
target_link_libraries(example64 zlib)
|
||||||
set_target_properties(example64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
|
set_target_properties(example64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
|
||||||
|
|||||||
Reference in New Issue
Block a user