Skip to content

Commit

Permalink
cmake: set AGS defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
sonneveld committed Apr 13, 2019
1 parent 98a2402 commit 51cf508
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 27 deletions.
34 changes: 17 additions & 17 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ include(Common)
# Build options
#

option(SHARED "Build shared library for main Allegro library and addons" on)
option(SHARED "Build shared library for main Allegro library and addons" off)
set(BUILD_SHARED_LIBS ${SHARED}) # actual CMake variable

# On some 64-bit platforms, libraries should be installed into `lib64'
Expand All @@ -106,14 +106,14 @@ option(MAGIC_MAIN "Enable magic main (Unix)" off)

option(WANT_FRAMEWORKS "Want frameworks on Mac OS X" off)
option(WANT_EMBED
"Make frameworks embeddable in application bundles (Mac OS X)" on)
"Make frameworks embeddable in application bundles (Mac OS X)" off)
option(ENABLE_QUICKDRAW "Enable Quick Graphics on OS X" OFF)

set(FRAMEWORK_INSTALL_PREFIX "/Library/Frameworks" CACHE STRING
"Directory in which to install Mac OS X frameworks")

if(MSVC)
option(STATIC_RUNTIME "Use the static MSVC runtime" off)
option(STATIC_RUNTIME "Use the static MSVC runtime" on)
endif(MSVC)

#-----------------------------------------------------------------------------#
Expand Down Expand Up @@ -406,7 +406,7 @@ set(ALLEGRO_NO_ASM 1)
# Unix modules
#

option(WANT_MODULES "Use modules for drivers (Unix)" on)
option(WANT_MODULES "Use modules for drivers (Unix)" off)

if(WANT_MODULES AND ALLEGRO_UNIX)
set(ALLEGRO_WITH_MODULES 1)
Expand Down Expand Up @@ -444,10 +444,10 @@ set(PLATFORM_LIBS_MODULES) # only link with these if modules enabled

# -- Unix --

option(WANT_OSS "Build OSS support" on)
option(WANT_OSS "Build OSS support" off)
option(WANT_ALSA "Build ALSA support" on)
option(WANT_JACK "Build JACK support" on)
option(WANT_SGIAUDIO "Build SGI audio support" on)
option(WANT_SGIAUDIO "Build SGI audio support" off)

if(ALLEGRO_UNIX) # not MACOSX
find_package(Threads)
Expand Down Expand Up @@ -584,10 +584,10 @@ endif(ALLEGRO_WITH_XWINDOWS)
# -- Linux console --

option(WANT_LINUX_CONSOLE "Want Linux console support (Linux)" off)
option(WANT_LINUX_VGA "Want Linux console VGA driver (Linux)" on)
option(WANT_LINUX_FBCON "Want Linux console fbcon driver (Linux)" on)
option(WANT_LINUX_SVGALIB "Want Linux console SVGAlib driver (Linux)" on)
option(WANT_LINUX_TSLIB "Want Linux console tslib mouse driver (Linux)" on)
option(WANT_LINUX_VGA "Want Linux console VGA driver (Linux)" off)
option(WANT_LINUX_FBCON "Want Linux console fbcon driver (Linux)" off)
option(WANT_LINUX_SVGALIB "Want Linux console SVGAlib driver (Linux)" off)
option(WANT_LINUX_TSLIB "Want Linux console tslib mouse driver (Linux)" off)

if(WANT_LINUX_CONSOLE AND CMAKE_SYSTEM_NAME STREQUAL Linux)
set(ALLEGRO_LINUX 1)
Expand Down Expand Up @@ -988,10 +988,10 @@ endif(UNIX)
# Addons
#

option(WANT_ALLEGROGL "Enable AllegroGL" on)
option(WANT_LOADPNG "Enable loadpng" on)
option(WANT_LOGG "Enable logg" on)
option(WANT_JPGALLEG "Enable JPGAlleg" on)
option(WANT_ALLEGROGL "Enable AllegroGL" off)
option(WANT_LOADPNG "Enable loadpng" off)
option(WANT_LOGG "Enable logg" off)
option(WANT_JPGALLEG "Enable JPGAlleg" off)

if (BUILD_SHARED_LIBS)
set(ADDON_LINKAGE SHARED)
Expand Down Expand Up @@ -1069,7 +1069,7 @@ add_subdirectory(docs)
# Samples - after addons because skater can use AllegroGL
#

option(WANT_EXAMPLES "Build example programs" on)
option(WANT_EXAMPLES "Build example programs" off)

if(WANT_EXAMPLES)
add_subdirectory(examples)
Expand All @@ -1082,7 +1082,7 @@ endif(WANT_EXAMPLES)
# Tools - after addons because of grabber plugins
#

option(WANT_TOOLS "Build tool programs" on)
option(WANT_TOOLS "Build tool programs" off)

if(WANT_TOOLS)
add_subdirectory(tools)
Expand All @@ -1097,7 +1097,7 @@ endif(WANT_TOOLS)
# Tests
#

option(WANT_TESTS "Build test programs" on)
option(WANT_TESTS "Build test programs" off)

if(WANT_TESTS)
add_subdirectory(tests)
Expand Down
4 changes: 2 additions & 2 deletions cmake/FindDDraw.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ endif(DDRAW_INCLUDE_DIR)

# Makes my life easier.
if(MSVC)
set(HINT_INCLUDE "C:/Program Files/Microsoft DirectX SDK (August 2008)/Include")
set(HINT_LIB "C:/Program Files/Microsoft DirectX SDK (August 2008)/Lib")
set(HINT_INCLUDE "C:/Program Files (x86)/Microsoft DirectX SDK (August 2007)/Include")
set(HINT_LIB "C:/Program Files (x86)/Microsoft DirectX SDK (August 2007)/Lib")
endif(MSVC)

find_path(DDRAW_INCLUDE_DIR ddraw.h
Expand Down
4 changes: 2 additions & 2 deletions cmake/FindDInput.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ endif(DINPUT_INCLUDE_DIR)

# Makes my life easier.
if(MSVC)
set(HINT_INCLUDE "C:/Program Files/Microsoft DirectX SDK (August 2008)/Include")
set(HINT_LIB "C:/Program Files/Microsoft DirectX SDK (August 2008)/Lib")
set(HINT_INCLUDE "C:/Program Files (x86)/Microsoft DirectX SDK (August 2007)/Include")
set(HINT_LIB "C:/Program Files (x86)/Microsoft DirectX SDK (August 2007)/Lib")
endif(MSVC)

find_path(DINPUT_INCLUDE_DIR dinput.h
Expand Down
4 changes: 2 additions & 2 deletions cmake/FindDSound.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ endif(DSOUND_INCLUDE_DIR)

# Makes my life easier.
if(MSVC)
set(HINT_INCLUDE "C:/Program Files/Microsoft DirectX SDK (August 2008)/Include")
set(HINT_LIB "C:/Program Files/Microsoft DirectX SDK (August 2008)/Lib")
set(HINT_INCLUDE "C:/Program Files (x86)/Microsoft DirectX SDK (August 2007)/Include")
set(HINT_LIB "C:/Program Files (x86)/Microsoft DirectX SDK (August 2007)/Lib")
endif(MSVC)

find_path(DSOUND_INCLUDE_DIR dsound.h
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindDXGuid.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

if(MSVC)
find_library(DXGUID_LIBRARY NAMES dxguid
PATHS "C:/Program Files/Microsoft DirectX SDK (August 2008)/Lib"
PATHS "C:/Program Files (x86)/Microsoft DirectX SDK (August 2007)/Lib"
PATH_SUFFIXES x86 x64
)
else()
Expand Down
6 changes: 3 additions & 3 deletions docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Documentation
#

option(WANT_DOCS "Generate documentation" on)
option(WANT_DOCS "Generate documentation" off)
if(NOT WANT_DOCS OR CMAKE_CROSSCOMPILING)
return()
endif()
Expand Down Expand Up @@ -155,7 +155,7 @@ endif(UNIX)
# Man pages
#

option(WANT_DOCS_MAN "Generate man pages" on)
option(WANT_DOCS_MAN "Generate man pages" off)
set(MANDIR "man" CACHE STRING "Install man pages into this directory")

if(WANT_DOCS_MAN)
Expand Down Expand Up @@ -184,7 +184,7 @@ endif(WANT_DOCS_MAN)
# Info
#

option(WANT_DOCS_INFO "Generate Info document" on)
option(WANT_DOCS_INFO "Generate Info document" off)
find_program(MAKEINFO NAMES makeinfo)
mark_as_advanced(MAKEINFO)
set(INFODIR "info" CACHE STRING "Install Info docs into this directory")
Expand Down

0 comments on commit 51cf508

Please sign in to comment.