f7239559fb8c50a02869808997d5a925bae42d76
[blender-staging.git] / build_files / cmake / config / blender_release.cmake
1 # Turn everything ON thats expected for an official release builds.
2 #
3 # Example usage:
4 #   cmake -C../blender/build_files/cmake/config/blender_release.cmake  ../blender
5 #
6
7 set(WITH_ALEMBIC             ON  CACHE BOOL "" FORCE)
8 set(WITH_BUILDINFO           ON  CACHE BOOL "" FORCE)
9 set(WITH_BULLET              ON  CACHE BOOL "" FORCE)
10 set(WITH_CODEC_AVI           ON  CACHE BOOL "" FORCE)
11 set(WITH_CODEC_FFMPEG        ON  CACHE BOOL "" FORCE)
12 set(WITH_CODEC_SNDFILE       ON  CACHE BOOL "" FORCE)
13 set(WITH_CYCLES              ON  CACHE BOOL "" FORCE)
14 set(WITH_CYCLES_OSL          ON  CACHE BOOL "" FORCE)
15 set(WITH_CYCLES_OPENSUBDIV   ON  CACHE BOOL "" FORCE)
16 set(WITH_FFTW3               ON  CACHE BOOL "" FORCE)
17 set(WITH_LIBMV               ON  CACHE BOOL "" FORCE)
18 set(WITH_LIBMV_SCHUR_SPECIALIZATIONS ON CACHE BOOL "" FORCE)
19 set(WITH_GAMEENGINE          ON  CACHE BOOL "" FORCE)
20 set(WITH_COMPOSITOR          ON  CACHE BOOL "" FORCE)
21 set(WITH_FREESTYLE           ON  CACHE BOOL "" FORCE)
22 set(WITH_GHOST_XDND          ON  CACHE BOOL "" FORCE)
23 set(WITH_IK_SOLVER           ON  CACHE BOOL "" FORCE)
24 set(WITH_IK_ITASC            ON  CACHE BOOL "" FORCE)
25 set(WITH_IMAGE_CINEON        ON  CACHE BOOL "" FORCE)
26 set(WITH_IMAGE_DDS           ON  CACHE BOOL "" FORCE)
27 set(WITH_IMAGE_FRAMESERVER   ON  CACHE BOOL "" FORCE)
28 set(WITH_IMAGE_HDR           ON  CACHE BOOL "" FORCE)
29 set(WITH_IMAGE_OPENEXR       ON  CACHE BOOL "" FORCE)
30 set(WITH_IMAGE_OPENJPEG      ON  CACHE BOOL "" FORCE)
31 set(WITH_IMAGE_TIFF          ON  CACHE BOOL "" FORCE)
32 set(WITH_INPUT_NDOF          ON  CACHE BOOL "" FORCE)
33 set(WITH_INTERNATIONAL       ON  CACHE BOOL "" FORCE)
34 set(WITH_JACK                ON  CACHE BOOL "" FORCE)
35 set(WITH_LZMA                ON  CACHE BOOL "" FORCE)
36 set(WITH_LZO                 ON  CACHE BOOL "" FORCE)
37 set(WITH_MOD_BOOLEAN         ON  CACHE BOOL "" FORCE)
38 set(WITH_MOD_FLUID           ON  CACHE BOOL "" FORCE)
39 set(WITH_MOD_REMESH          ON  CACHE BOOL "" FORCE)
40 set(WITH_MOD_SMOKE           ON  CACHE BOOL "" FORCE)
41 set(WITH_MOD_OCEANSIM        ON  CACHE BOOL "" FORCE)
42 set(WITH_AUDASPACE           ON  CACHE BOOL "" FORCE)
43 set(WITH_OPENAL              ON  CACHE BOOL "" FORCE)
44 set(WITH_OPENCOLLADA         ON  CACHE BOOL "" FORCE)
45 set(WITH_OPENCOLORIO         ON  CACHE BOOL "" FORCE)
46 set(WITH_OPENMP              ON  CACHE BOOL "" FORCE)
47 set(WITH_OPENVDB             ON  CACHE BOOL "" FORCE)
48 set(WITH_OPENVDB_BLOSC       ON  CACHE BOOL "" FORCE)
49 set(WITH_PYTHON_INSTALL      ON  CACHE BOOL "" FORCE)
50 set(WITH_RAYOPTIMIZATION     ON  CACHE BOOL "" FORCE)
51 set(WITH_SDL                 ON  CACHE BOOL "" FORCE)
52 set(WITH_X11_XINPUT          ON  CACHE BOOL "" FORCE)
53 set(WITH_X11_XF86VMODE       ON  CACHE BOOL "" FORCE)
54
55 set(WITH_PLAYER              ON  CACHE BOOL "" FORCE)
56 set(WITH_MEM_JEMALLOC        ON  CACHE BOOL "" FORCE)
57 set(WITH_CYCLES_CUDA_BINARIES ON  CACHE BOOL "" FORCE)
58 set(CYCLES_CUDA_BINARIES_ARCH sm_20;sm_21;sm_30;sm_35;sm_37;sm_50;sm_52;sm_60;sm_61 CACHE STRING "" FORCE)
59
60 # platform dependent options
61 if(UNIX AND NOT APPLE)
62         set(WITH_JACK                ON  CACHE BOOL "" FORCE)
63         set(WITH_DOC_MANPAGE         ON  CACHE BOOL "" FORCE)
64         set(WITH_OPENSUBDIV          ON  CACHE BOOL "" FORCE)
65 elseif(WIN32)
66         set(WITH_JACK                OFF CACHE BOOL "" FORCE)
67         if(NOT CMAKE_COMPILER_IS_GNUCC)
68                 set(WITH_OPENSUBDIV          ON  CACHE BOOL "" FORCE)
69         else()
70                 # MinGW exceptions
71                 set(WITH_OPENSUBDIV          OFF CACHE BOOL "" FORCE)
72                 set(WITH_CODEC_SNDFILE       OFF CACHE BOOL "" FORCE)
73                 set(WITH_CYCLES_OSL          OFF CACHE BOOL "" FORCE)
74         endif()
75 elseif(APPLE)
76         set(WITH_JACK                ON  CACHE BOOL "" FORCE)
77         set(WITH_CODEC_QUICKTIME     OFF  CACHE BOOL "" FORCE)
78         set(WITH_OPENSUBDIV          OFF CACHE BOOL "" FORCE)
79
80 #       include("${CMAKE_CURRENT_SOURCE_DIR}/../platform/platform_apple_xcode.cmake")
81 #       apple_check_quicktime()
82 endif()