Browse Source

Don't build Audio library by default.

Because of the OpenAL dependency.
pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
cfc9620535
  1. 2
      CMakeLists.txt
  2. 11
      doc/building.dox

2
CMakeLists.txt

@ -39,7 +39,7 @@ cmake_dependent_option(TARGET_DESKTOP_GLES "Build for OpenGL ES on desktop" OFF
option(WITH_FIND_MODULE "Install FindMagnum.cmake module into CMake's module dir (might require admin privileges)" OFF) option(WITH_FIND_MODULE "Install FindMagnum.cmake module into CMake's module dir (might require admin privileges)" OFF)
# Parts of the library # Parts of the library
option(WITH_AUDIO "Build Audio library" ON) option(WITH_AUDIO "Build Audio library" OFF)
option(WITH_DEBUGTOOLS "Build DebugTools library" ON) option(WITH_DEBUGTOOLS "Build DebugTools library" ON)
cmake_dependent_option(WITH_MESHTOOLS "Build MeshTools library" ON "NOT WITH_DEBUGTOOLS" ON) cmake_dependent_option(WITH_MESHTOOLS "Build MeshTools library" ON "NOT WITH_DEBUGTOOLS" ON)
cmake_dependent_option(WITH_PRIMITIVES "Builf Primitives library" ON "NOT WITH_DEBUGTOOLS" ON) cmake_dependent_option(WITH_PRIMITIVES "Builf Primitives library" ON "NOT WITH_DEBUGTOOLS" ON)

11
doc/building.dox

@ -39,8 +39,6 @@ Minimal set of tools and libraries required for building is:
- **Corrade** - Plugin management and utility library. See - **Corrade** - Plugin management and utility library. See
@ref building-corrade "Corrade download and installation guide" for more @ref building-corrade "Corrade download and installation guide" for more
information. information.
- **OpenAL** - By default needed by Audio library, but you can disable building
of it by setting `WITH_AUDIO` to `OFF` (see below).
@section building-download Downloading the sources @section building-download Downloading the sources
@ -138,11 +136,12 @@ CMake and C++ sources, see @ref cmake and @ref src/Magnum.h for more
information. See also @ref corrade-cmake and @ref src/Corrade.h for additional information. See also @ref corrade-cmake and @ref src/Corrade.h for additional
information. information.
By default the engine is built with everything except application libraries By default the engine is built with nearly everything except Audio library and
(see below). Using `WITH_*` CMake parameters you can specify which parts will application libraries (see below). Using `WITH_*` CMake parameters you can
be built and which not: specify which parts will be built and which not:
- `WITH_AUDIO` - Audio library. - `WITH_AUDIO` - Audio library. Depends on **OpenAL** library, not built by
default.
- `WITH_DEBUGTOOLS` - DebugTools library. Enables also building of MeshTools, - `WITH_DEBUGTOOLS` - DebugTools library. Enables also building of MeshTools,
Primitives, SceneGraph, Shaders and Shapes libraries. Primitives, SceneGraph, Shaders and Shapes libraries.
- `WITH_MESHTOOLS` - MeshTools library. Enabled automatically if `WITH_DEBUGTOOLS` - `WITH_MESHTOOLS` - MeshTools library. Enabled automatically if `WITH_DEBUGTOOLS`

Loading…
Cancel
Save