40909418db6e91d2a7203a983d5ba70fb72846a8
[blender-staging.git] / build_files / buildbot / config / blender_linux.cmake
1 # ######## Global feature set settings ########
2
3 include("${CMAKE_CURRENT_LIST_DIR}/../../cmake/config/blender_full.cmake")
4
5 # Default to only build Blender, not the player
6 set(WITH_BLENDER             ON  CACHE BOOL "" FORCE)
7 set(WITH_PLAYER              OFF CACHE BOOL "" FORCE)
8
9 # ######## Linux-specific build options ########
10 # Options which are specific to Linux-only platforms
11 set(WITH_DOC_MANPAGE         OFF CACHE BOOL "" FORCE)
12
13 # ######## Official release-specific build options ########
14 # Options which are specific to Linux release builds only
15 set(WITH_JACK_DYNLOAD        ON  CACHE BOOL "" FORCE)
16 set(WITH_SDL_DYNLOAD         ON  CACHE BOOL "" FORCE)
17 set(WITH_SYSTEM_GLEW         OFF CACHE BOOL "" FORCE)
18
19 set(WITH_OPENMP_STATIC       ON  CACHE BOOL "" FORCE)
20
21 set(WITH_PYTHON_INSTALL_NUMPY    ON CACHE BOOL "" FORCE)
22 set(WITH_PYTHON_INSTALL_REQUESTS ON CACHE BOOL "" FORCE)
23
24 # ######## Release environment specific settings ########
25 # All the hardcoded libraru paths and such
26
27 # LLVM libraries
28 set(LLVM_VERSION             "3.4"  CACHE STRING "" FORCE)
29 set(LLVM_ROOT_DIR            "/opt/lib/llvm-${LLVM_VERSION}"  CACHE STRING "" FORCE)
30 set(LLVM_STATIC              ON  CACHE BOOL "" FORCE)
31
32 # BOOST libraries
33 set(BOOST_ROOT               "/opt/lib/boost" CACHE STRING "" FORCE)
34 set(Boost_USE_STATIC_LIBS    ON CACHE BOOL "" FORCE)
35
36 # FFmpeg libraries
37 set(FFMPEG                   "/opt/lib/ffmpeg" CACHE STRING "" FORCE)
38 set(FFMPEG_LIBRARIES
39     avdevice avformat avcodec avutil avfilter swscale swresample
40     /usr/lib/libxvidcore.a
41     /usr/lib/libx264.a
42     /usr/lib/libmp3lame.a
43     /usr/lib/libvpx.a
44     /usr/lib/libvorbis.a
45     /usr/lib/libogg.a
46     /usr/lib/libvorbisenc.a
47     /usr/lib/libtheora.a
48     /usr/lib/libschroedinger-1.0.a
49     /usr/lib/liborc-0.4.a
50     CACHE STRING "" FORCE
51 )
52
53 # SndFile libraries
54 set(SNDFILE_LIBRARY          "/usr/lib/libsndfile.a;/usr/lib/libFLAC.a" CACHE STRING "" FORCE)
55
56 # OpenAL libraries
57 set(OPENAL_ROOT_DIR           "/opt/lib/openal" CACHE STRING "" FORCE)
58 set(OPENAL_INCLUDE_DIR        "${OPENAL_ROOT_DIR}/include" CACHE STRING "" FORCE)
59 set(OPENAL_LIBRARY
60     ${OPENAL_ROOT_DIR}/lib/libopenal.a
61     ${OPENAL_ROOT_DIR}/lib/libcommon.a
62     CACHE STRING "" FORCE
63 )
64
65 # OpenCollada libraries
66 set(OPENCOLLADA_UTF_LIBRARY   ""                   CACHE STRING "" FORCE)
67 set(PCRE_INCLUDE_DIR          "/usr/include"       CACHE STRING "" FORCE)
68 set(PCRE_LIBRARY              "/usr/lib/libpcre.a" CACHE STRING "" FORCE)
69 set(XML2_INCLUDE_DIR          "/usr/include"       CACHE STRING "" FORCE)
70 set(XML2_LIBRARY              "/usr/lib/libxml2.a" CACHE STRING "" FORCE)
71
72 # OpenColorIO libraries
73 set(OPENCOLORIO_ROOT_DIR      "/opt/lib/ocio" CACHE STRING "" FORCE)
74 set(OPENCOLORIO_OPENCOLORIO_LIBRARY "${OPENCOLORIO_ROOT_DIR}/lib/libOpenColorIO.a" CACHE STRING "" FORCE)
75 set(OPENCOLORIO_TINYXML_LIBRARY "${OPENCOLORIO_ROOT_DIR}/lib/libtinyxml.a"         CACHE STRING "" FORCE)
76 set(OPENCOLORIO_YAML-CPP_LIBRARY "${OPENCOLORIO_ROOT_DIR}/lib/libyaml-cpp.a"       CACHE STRING "" FORCE)
77
78 # OpenSubdiv libraries
79 set(OPENSUBDIV_ROOT_DIR "/opt/lib/opensubdiv" CACHE STRING "" FORCE)
80 set(OPENSUBDIV_OSDCPU_LIBRARY "${OPENSUBDIV_ROOT_DIR}/lib/libosdCPU.a" CACHE STRING "" FORCE)
81 set(OPENSUBDIV_OSDGPU_LIBRARY "${OPENSUBDIV_ROOT_DIR}/lib/libosdGPU.a" CACHE STRING "" FORCE)
82
83 # OpenEXR libraries
84 set(OPENEXR_ROOT_DIR          "/opt/lib/openexr"                    CACHE STRING "" FORCE)
85 set(OPENEXR_HALF_LIBRARY      "/opt/lib/openexr/lib/libHalf.a"      CACHE STRING "" FORCE)
86 set(OPENEXR_IEX_LIBRARY       "/opt/lib/openexr/lib/libIex.a"       CACHE STRING "" FORCE)
87 set(OPENEXR_ILMIMF_LIBRARY    "/opt/lib/openexr/lib/libIlmImf.a"    CACHE STRING "" FORCE)
88 set(OPENEXR_ILMTHREAD_LIBRARY "/opt/lib/openexr/lib/libIlmThread.a" CACHE STRING "" FORCE)
89 set(OPENEXR_IMATH_LIBRARY     "/opt/lib/openexr/lib/libImath.a"     CACHE STRING "" FORCE)
90
91 # JeMalloc library
92 set(JEMALLOC_LIBRARY    "/opt/lib/jemalloc/lib/libjemalloc.a" CACHE STRING "" FORCE)
93
94 # Space navigation
95 set(SPACENAV_ROOT_DIR       "/opt/lib/libspnav" CACHE STRING "" FORCE)
96
97 # Force some system libraries to be static
98 set(FFTW3_LIBRARY       "/usr/lib/libfftw3.a" CACHE STRING "" FORCE)
99 set(JPEG_LIBRARY        "/usr/lib/libjpeg.a"  CACHE STRING "" FORCE)
100 set(PNG_LIBRARY         "/usr/lib/libpng.a"   CACHE STRING "" FORCE)
101 set(TIFF_LIBRARY        "/usr/lib/libtiff.a"  CACHE STRING "" FORCE)
102 set(ZLIB_LIBRARY        "/usr/lib/libz.a"     CACHE STRING "" FORCE)
103
104 # Additional linking libraries
105 set(CMAKE_EXE_LINKER_FLAGS   "-lrt -static-libstdc++"  CACHE STRING "" FORCE)