Disable targets which are not needed.

This commit is contained in:
rude
2013-09-28 01:32:47 +02:00
parent 283a50aba9
commit 63865e5a72
15 changed files with 20 additions and 18 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8)
project(DevIL)
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
src-IL/src/altivec_common.c
+1 -1
View File
@@ -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
# 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_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
file(GLOB SOURCE_FILES
+1 -1
View File
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8)
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)
set(FREETYPE_SRC
+1 -1
View File
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8)
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)
set(JASPER_SRC
+1 -1
View File
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8)
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)
set(JPEG_SRC
+1 -1
View File
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8)
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)
set(MODPLUG_SRC
+1 -1
View File
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8)
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)
set(OGG_SRC
+2 -2
View File
@@ -2,9 +2,9 @@ cmake_minimum_required(VERSION 2.8)
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(VORBISFILE_BUILD_SHARED "Build shared libvorbisfile" ON)
option(VORBISFILE_BUILD_SHARED "Build shared libvorbisfile" OFF)
option(VORBISFILE_BUILD_STATIC "Build static libvorbisfile" ON)
set(VORBIS_SRC
+1 -1
View File
@@ -42,7 +42,7 @@ endif()
if(DEFINED PNG_SHARED)
option(PNG_SHARED "Build shared lib" ${PNG_SHARED})
else()
option(PNG_SHARED "Build shared lib" ON)
option(PNG_SHARED "Build shared lib" OFF)
endif()
if(DEFINED PNG_STATIC)
option(PNG_STATIC "Build static lib" ${PNG_STATIC})
+1 -1
View File
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8)
project(lua51)
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
src/lapi.c
+1 -1
View File
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8)
project(mpg123)
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
src/libmpg123/compat.c
+2 -2
View File
@@ -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(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)
+2 -2
View File
@@ -281,7 +281,7 @@ IF(PHYSFS_BUILD_STATIC)
SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs-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)
ADD_LIBRARY(physfs SHARED ${PHYSFS_SRCS})
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)
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)
IF(PHYSFS_BUILD_TEST)
FIND_PATH(READLINE_H readline/readline.h)
+1 -1
View File
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8)
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)
set(TIFF_SRC
+3 -1
View File
@@ -234,6 +234,8 @@ endif()
# Example binaries
#============================================================================
return()
add_executable(example test/example.c)
target_link_libraries(example zlib)
add_test(example example)
@@ -241,7 +243,7 @@ add_test(example example)
add_executable(minigzip test/minigzip.c)
target_link_libraries(minigzip zlib)
if(HAVE_OFF64_T)
if(HAVE_OFF64_T AND FALSE)
add_executable(example64 test/example.c)
target_link_libraries(example64 zlib)
set_target_properties(example64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")