From 3f0bb3cb7bc0d7fcfbe86d33e6087e66838a9ece Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Fri, 5 Jun 2015 16:10:33 -0700 Subject: [PATCH] site customization file for Pixar --- Makefile | 3 +++ site/pixar/Makefile-bits | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 site/pixar/Makefile-bits diff --git a/Makefile b/Makefile index a16e61f9c..56baf8ffd 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/site/pixar/Makefile-bits b/site/pixar/Makefile-bits new file mode 100644 index 000000000..7e3e990ef --- /dev/null +++ b/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