Buildbot: Initial work to move linux build environment to CMake
[blender.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 # ######## Linux-specific build options ########
6 # Options which are specific to Linux-only platforms
7 set(WITH_DOC_MANPAGE         OFF CACHE BOOL "" FORCE)
8
9 # ######## Official release-specific build options ########
10 # Options which are specific to Linux release builds only
11 set(WITH_JACK_DYNLOAD        ON  CACHE BOOL "" FORCE)
12 set(WITH_SDL_DYNLOAD         ON  CACHE BOOL "" FORCE)
13 set(WITH_SYSTEM_GLEW         OFF CACHE BOOL "" FORCE)
14
15 set(WITH_OPENMP_STATIC       ON  CACHE BOOL "" FORCE)
16
17 set(WITH_PYTHON_INSTALL_NUMPY    ON CACHE BOOL "" FORCE)
18 set(WITH_PYTHON_INSTALL_REQUESTS ON CACHE BOOL "" FORCE)
19
20 # ######## Release environment specific settings ########
21 # All the hardcoded libraru paths and such
22
23 # LLVM libraries
24 set(LLVM_VERSION             "3.4"  CACHE STRING "" FORCE)
25 set(LLVM_ROOT_DIR            "/opt/lib/llvm-${LLVM_VERSION}"  CACHE STRING "" FORCE)
26 set(LLVM_STATIC              ON  CACHE BOOL "" FORCE)
27
28 # BOOST libraries
29 set(BOOST_ROOT               "/opt/lib/boost" CACHE STRING "" FORCE)
30 set(Boost_USE_STATIC_LIBS    ON CACHE BOOL "" FORCE)
31
32 # FFmpeg libraries
33 set(FFMPEG                   "/opt/lib/ffmpeg" CACHE STRING "" FORCE)
34 set(FFMPEG_LIBRARIES
35     avdevice avformat avcodec avutil avfilter swscale swresample
36     /usr/lib/libxvidcore.a
37     /usr/lib/libx264.a
38     /usr/lib/libmp3lame.a
39     /usr/lib/libvpx.a
40     /usr/lib/libvorbis.a
41     /usr/lib/libogg.a
42     /usr/lib/libvorbisenc.a
43     /usr/lib/libtheora.a
44     /usr/lib/libschroedinger-1.0.a
45     /usr/lib/liborc-0.4.a
46     CACHE STRING "" FORCE
47 )
48
49 # SndFile libraries
50 set(SNDFILE_LIBRARY          "/usr/lib/libsndfile.a;/usr/lib/libFLAC.a" CACHE STRING "" FORCE)
51
52 # OpenAL libraries
53 set(OPENAL_ROOT_DIR           "/opt/lib/openal" CACHE STRING "" FORCE)
54 set(OPENAL_INCLUDE_DIR        "${OPENAL_ROOT_DIR}/include" CACHE STRING "" FORCE)
55 set(OPENAL_LIBRARY
56     ${OPENAL_ROOT_DIR}/lib/libopenal.a
57     ${OPENAL_ROOT_DIR}/lib/libcommon.a
58     CACHE STRING "" FORCE
59 )
60
61 # OpenCollada libraries
62 set(OPENCOLLADA_UTF_LIBRARY   "" CACHE STRING "" FORCE)
63
64 # OpenColorIO libraries
65 set(OPENCOLORIO_ROOT_DIR      "/opt/lib/ocio" CACHE STRING "" FORCE)
66 set(OPENCOLORIO_OPENCOLORIO_LIBRARY "${OPENCOLORIO_ROOT_DIR}/lib/libOpenColorIO.a" CACHE STRING "" FORCE)
67 set(OPENCOLORIO_TINYXML_LIBRARY "${OPENCOLORIO_ROOT_DIR}/lib/libtinyxml.a"         CACHE STRING "" FORCE)
68 set(OPENCOLORIO_YAML-CPP_LIBRARY "${OPENCOLORIO_ROOT_DIR}/lib/libyaml-cpp.a"       CACHE STRING "" FORCE)
69
70 # OpenSubdiv libraries
71 set(OPENSUBDIV_ROOT_DIR "/opt/lib/opensubdiv" CACHE STRING "" FORCE)
72 set(OPENSUBDIV_OSDCPU_LIBRARY "${OPENSUBDIV_ROOT_DIR}/lib/libosdCPU.a" CACHE STRING "" FORCE)
73 set(OPENSUBDIV_OSDGPU_LIBRARY "${OPENSUBDIV_ROOT_DIR}/lib/libosdGPU.a" CACHE STRING "" FORCE)
74
75 # OpenEXR libraries
76 set(OPENEXR_ROOT_DIR          "/opt/lib/openexr"                    CACHE STRING "" FORCE)
77 set(OPENEXR_HALF_LIBRARY      "/opt/lib/openexr/lib/libHalf.a"      CACHE STRING "" FORCE)
78 set(OPENEXR_IEX_LIBRARY       "/opt/lib/openexr/lib/libIex.a"       CACHE STRING "" FORCE)
79 set(OPENEXR_ILMIMF_LIBRARY    "/opt/lib/openexr/lib/libIlmImf.a"    CACHE STRING "" FORCE)
80 set(OPENEXR_ILMTHREAD_LIBRARY "/opt/lib/openexr/lib/libIlmThread.a" CACHE STRING "" FORCE)
81 set(OPENEXR_IMATH_LIBRARY     "/opt/lib/openexr/lib/libImath.a"     CACHE STRING "" FORCE)
82
83 # JeMalloc library
84 set(JEMALLOC_LIBRARY    "/opt/lib/jemalloc/lib/libjemalloc.a" CACHE STRING "" FORCE)
85
86 # Foce some system libraries to be static
87 set(FFTW3_LIBRARY       "/usr/lib/libfftw3.a" CACHE STRING "" FORCE)
88 set(JPEG_LIBRARY        "/usr/lib/libjpeg.a"  CACHE STRING "" FORCE)
89 set(PNG_LIBRARY         "/usr/lib/libpng.a"   CACHE STRING "" FORCE)
90 set(TIFF_LIBRARY        "/usr/lib/libtiff.a"  CACHE STRING "" FORCE)
91 set(ZLIB_LIBRARY        "/usr/lib/libz.a"     CACHE STRING "" FORCE)
92
93 # Additional linking libraries
94 set(CMAKE_EXE_LINKER_FLAGS   "-lrt"  CACHE STRING "" FORCE)