OpenSubdiv: Enable by default on the supported platforms
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 5 Aug 2015 10:42:00 +0000 (12:42 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 5 Aug 2015 11:29:39 +0000 (13:29 +0200)
This commit makes sure Linux and Windows buildbots are using OpenSubdiv
and also enables OpenSubdiv by default on Windows.

OSX is kept disabled still, this is due to OpenGL restrictions which are
not solved in any way yet.

Linux is defaults to OpenSubdiv disabled because it needs precompiled
library.

The documentation could be found there:

  http://wiki.blender.org/index.php/User:Nazg-gul/OpenSubdiv

CMakeLists.txt
build_files/buildbot/config/user-config-glibc211-i686.py
build_files/buildbot/config/user-config-glibc211-x86_64.py
build_files/cmake/config/blender_full.cmake
build_files/scons/config/win32-vc-config.py
build_files/scons/config/win64-vc-config.py

index 198f6a3a6feced5a6214f04c7651712c7c421dd2..c6e3c7a3f9f5b68ddfeaf5b2040f323f97a57d31 100644 (file)
@@ -158,6 +158,7 @@ option_defaults_init(
        _init_SDL
        _init_FFTW3
        _init_GAMEENGINE
+       _init_OPENSUBDIV
 )
 
 # customize...
@@ -174,11 +175,13 @@ if (UNIX AND NOT APPLE)
        set(_init_OPENCOLORIO                    OFF)
        set(_init_SDL                            OFF)
        set(_init_FFTW3                          OFF)
+       set(_init_OPENSUBDIV                     OFF)
 elseif(WIN32)
        set(_init_JACK                           OFF)
 elseif(APPLE)
        set(_init_INPUT_NDOF                     OFF)
        set(_init_JACK                           OFF)
+       set(_init_OPENSUBDIV                     OFF)
 endif()
 
 
@@ -229,7 +232,7 @@ option(WITH_COMPOSITOR         "Enable the tile based nodal compositor" ON)
 option(WITH_COMPOSITOR_WERROR  "Treat warnings as errors in compositor code" OFF)
 mark_as_advanced(WITH_COMPOSITOR_WERROR)
 
-option(WITH_OPENSUBDIV    "Enable OpenSubdiv for surface subdivision" OFF)
+option(WITH_OPENSUBDIV    "Enable OpenSubdiv for surface subdivision" _init_OPENSUBDIV)
 option(WITH_SUBSURF_WERROR  "Treat warnings as errors in subsurf code" OFF)
 mark_as_advanced(WITH_COMPOSITOR_WERROR)
 
index b054abe7005510d723bec34395ff845ec96e3d3e..239625c1bef556a7c2dffd3424269aab3267cb74 100644 (file)
@@ -167,7 +167,7 @@ BF_BOOST_LIBPATH = '${BF_BOOST}/lib'
 WITH_BF_OCEANSIM = True
 
 # OpenSubdiv
-WITH_BF_OPENSUBDIV = False
+WITH_BF_OPENSUBDIV = True
 WITH_BF_STATICOPENSUBDIV = True
 BF_OPENSUBDIV = '/opt/lib/opensubdiv'
 BF_OPENSUBDIV_INC = '${BF_OPENSUBDIV}/include'
index eeca622ea3187bfc88ad9ad00592c782d77062a9..a3195cd9f061cdfcd715cdbadd79550045e9f7bc 100644 (file)
@@ -167,7 +167,7 @@ BF_BOOST_LIBPATH = '${BF_BOOST}/lib'
 WITH_BF_OCEANSIM = True
 
 # OpenSubdiv
-WITH_BF_OPENSUBDIV = False
+WITH_BF_OPENSUBDIV = True
 WITH_BF_STATICOPENSUBDIV = True
 BF_OPENSUBDIV = '/opt/lib/opensubdiv'
 BF_OPENSUBDIV_INC = '${BF_OPENSUBDIV}/include'
index 6410aeb397b3a962bfc1f8e3bfb4bc8b8710bd27..881dc515499e94bb163792d11a19040109dd0a7c 100644 (file)
@@ -57,10 +57,13 @@ set(WITH_MEM_JEMALLOC        ON  CACHE BOOL "" FORCE)
 if(UNIX AND NOT APPLE)
        set(WITH_JACK                ON  CACHE BOOL "" FORCE)
        set(WITH_DOC_MANPAGE         ON  CACHE BOOL "" FORCE)
+       set(WITH_OPENSUBDIV          ON  CACHE BOOL "" FORCE)
 elseif(WIN32)
        set(WITH_JACK                OFF CACHE BOOL "" FORCE)
+       set(WITH_OPENSUBDIV          ON  CACHE BOOL "" FORCE)
 elseif (APPLE)
        set(WITH_JACK                ON  CACHE BOOL "" FORCE)
        set(WITH_CODEC_QUICKTIME     ON  CACHE BOOL "" FORCE)
+       set(WITH_OPENSUBDIV          OFF CACHE BOOL "" FORCE)
 endif()
 
index 94e6cf9c8c4f3c37685b44d8132fe4af06ec05ff..9bd23a46d662da77b00140fa500ac47f6ea366e3 100644 (file)
@@ -210,7 +210,7 @@ BF_RAYOPTIMIZATION_SSE_FLAGS = ['/arch:SSE']
 #Freestyle
 WITH_BF_FREESTYLE = True
 
-WITH_BF_OPENSUBDIV = False
+WITH_BF_OPENSUBDIV = True
 BF_OPENSUBDIV = LIBDIR + '/opensubdiv'
 BF_OPENSUBDIV_INC = '${BF_OPENSUBDIV}/include'
 BF_OPENSUBDIV_LIB = 'osdCPU osdGPU'
index c25b62a756ad383a5e30d7ae58d6e2317bf87076..adacc2946c58f2d9dbcf57064302bf271ba4ac7d 100644 (file)
@@ -214,7 +214,7 @@ BF_RAYOPTIMIZATION_SSE_FLAGS = ['']
 #Freestyle
 WITH_BF_FREESTYLE = True
 
-WITH_BF_OPENSUBDIV = False
+WITH_BF_OPENSUBDIV = True
 BF_OPENSUBDIV = LIBDIR + '/opensubdiv'
 BF_OPENSUBDIV_INC = '${BF_OPENSUBDIV}/include'
 BF_OPENSUBDIV_LIB = 'osdCPU osdGPU'