Skip to content

Commit

Permalink
site customization file for Pixar
Browse files Browse the repository at this point in the history
  • Loading branch information
lgritz committed Jun 8, 2015
1 parent 1e38b7e commit 3f0bb3c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -42,6 +42,9 @@ endif
ifneq (${shell echo ${OSL_SITE} | grep imageworks},)
include ${working_dir}/site/spi/Makefile-bits
endif
ifneq (${shell echo ${OSL_SITE} | grep pixar},)
include ${working_dir}/site/pixar/Makefile-bits
endif

# Set up variables holding the names of platform-dependent directories --
# set these after evaluating site-specific instructions
Expand Down
28 changes: 28 additions & 0 deletions site/pixar/Makefile-bits
@@ -0,0 +1,28 @@
# Pixar-specific settings

ifneq (${VERBOSE},)
$(info Including pixar/Makefile-bits)
endif

MY_CMAKE_FLAGS += -DUSE_fPIC:BOOL=1
MY_CMAKE_FLAGS += -DENABLE_RTTI:BOOL=1
MY_CMAKE_FLAGS += -DSTOP_ON_WARNING:BOOL=0
MY_CMAKE_FLAGS += -DHIDE_SYMBOLS:BOOL=1
MY_CMAKE_FLAGS += -DBUILDSTATIC:BOOL=1
MY_CMAKE_FLAGS += -DLINKSTATIC:BOOL=1
MY_CMAKE_FLAGS += -DUSE_FAST_MATH:BOOL=1
MY_CMAKE_FLAGS += -DILMBASE_LIB_AREA:STRING=${ILMBASE_HOME}/lib/linux-ix86-64/gcc4.1
MY_CMAKE_FLAGS += -DILMBASE_CUSTOM:BOOL=True
MY_CMAKE_FLAGS += -DILMBASE_CUSTOM_LIBRARIES:STRING="Half-fPIC Iex-fPIC IexMath-fPIC IlmThread-fPIC Imath-fPIC"

# Don't build testshade or testrender (mostly because they require the
# image-handling parts of OIIO, which Pixar doesn't build)
MY_CMAKE_FLAGS += -DOSL_BUILD_TESTS:BOOL=0

# Don't let OSL create a default OIIO::TextureSystem. If the renderer
# doesn't pass in whatever proxy it wants, it will assert.
MY_CMAKE_FLAGS += -DOSL_NO_DEFAULT_TEXTURESYSTEM:BOOL=1

ifneq (${VERBOSE},)
$(info MY_CMAKE_FLAGS: $(MY_CMAKE_FLAGS))
endif

0 comments on commit 3f0bb3c

Please sign in to comment.