[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11712] trunk/lib/darwin-6.1-powerpc/ openexr: precompiled openEXR 1.5 for Os X
JLuc Peuriere
jlp at nerim.net
Sun Aug 19 20:58:50 CEST 2007
Revision: 11712
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11712
Author: lukep
Date: 2007-08-19 20:58:49 +0200 (Sun, 19 Aug 2007)
Log Message:
-----------
precompiled openEXR 1.5 for Os X
Modified Paths:
--------------
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/Iex.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IexBaseExc.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IexErrnoExc.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IexMathExc.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IexThrowErrnoExc.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathBox.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathBoxAlgo.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathColor.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathColorAlgo.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathEuler.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathExc.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathFrustum.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathFun.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathGL.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathGLU.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathHalfLimits.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathInterval.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathLimits.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathLine.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathLineAlgo.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathMath.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathMatrix.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathMatrixAlgo.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathPlane.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathPlatform.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathQuat.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathRandom.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathShear.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathSphere.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathVec.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathVecAlgo.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfAttribute.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfBoxAttribute.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfCRgbaFile.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfChannelList.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfChromaticities.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfConvert.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfEnvmap.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfFrameBuffer.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfHeader.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfIO.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfInputFile.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfInt64.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfLut.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfMatrixAttribute.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfOutputFile.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfRgba.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfRgbaFile.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfTiledInputFile.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfTiledOutputFile.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfTiledRgbaFile.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfTimeCode.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfVecAttribute.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfXdr.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/half.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/halfFunction.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/halfLimits.h
trunk/lib/darwin-6.1-powerpc/openexr/lib/libHalf.a
trunk/lib/darwin-6.1-powerpc/openexr/lib/libIex.a
trunk/lib/darwin-6.1-powerpc/openexr/lib/libIlmImf.a
trunk/lib/darwin-6.1-powerpc/openexr/lib/libImath.a
Added Paths:
-----------
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IlmBaseConfig.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IlmThread.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IlmThreadMutex.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IlmThreadPool.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IlmThreadSemaphore.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImathInt64.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/ImfThreading.h
trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/OpenEXRConfig.h
trunk/lib/darwin-6.1-powerpc/openexr/lib/libIlmThread.a
Modified: trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/Iex.h
===================================================================
--- trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/Iex.h 2007-08-19 18:48:42 UTC (rev 11711)
+++ trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/Iex.h 2007-08-19 18:58:49 UTC (rev 11712)
@@ -45,10 +45,10 @@
//--------------------------------
-#include <IexMacros.h>
-#include <IexBaseExc.h>
-#include <IexMathExc.h>
-#include <IexThrowErrnoExc.h>
+#include "IexMacros.h"
+#include "IexBaseExc.h"
+#include "IexMathExc.h"
+#include "IexThrowErrnoExc.h"
// Note that we do not include file IexErrnoExc.h here. That file
// defines over 150 classes and significantly slows down compilation.
Modified: trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IexBaseExc.h
===================================================================
--- trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IexBaseExc.h 2007-08-19 18:48:42 UTC (rev 11711)
+++ trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IexBaseExc.h 2007-08-19 18:58:49 UTC (rev 11712)
@@ -51,7 +51,7 @@
namespace Iex {
-#if defined PLATFORM_WINDOWS && _MSC_VER
+#if (defined _WIN32 || defined _WIN64) && defined _MSC_VER
// Tell MS VC++ to suppress exception specification warnings
#pragma warning(disable:4290)
#endif
@@ -257,7 +257,7 @@
return _stackTrace;
}
-#if defined PLATFORM_WINDOWS && _MSC_VER
+#if (defined _WIN32 || defined _WIN64) && defined _MSC_VER
#pragma warning(default:4290)
#endif
Modified: trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IexErrnoExc.h
===================================================================
--- trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IexErrnoExc.h 2007-08-19 18:48:42 UTC (rev 11711)
+++ trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IexErrnoExc.h 2007-08-19 18:58:49 UTC (rev 11712)
@@ -43,7 +43,7 @@
//
//----------------------------------------------------------------
-#include <IexBaseExc.h>
+#include "IexBaseExc.h"
namespace Iex {
Modified: trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IexMathExc.h
===================================================================
--- trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IexMathExc.h 2007-08-19 18:48:42 UTC (rev 11711)
+++ trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IexMathExc.h 2007-08-19 18:58:49 UTC (rev 11712)
@@ -37,7 +37,7 @@
#ifndef INCLUDED_IEXMATHEXC_H
#define INCLUDED_IEXMATHEXC_H
-#include <IexBaseExc.h>
+#include "IexBaseExc.h"
namespace Iex {
Modified: trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IexThrowErrnoExc.h
===================================================================
--- trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IexThrowErrnoExc.h 2007-08-19 18:48:42 UTC (rev 11711)
+++ trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IexThrowErrnoExc.h 2007-08-19 18:58:49 UTC (rev 11712)
@@ -43,7 +43,7 @@
//
//----------------------------------------------------------
-#include <IexBaseExc.h>
+#include "IexBaseExc.h"
namespace Iex {
Added: trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IlmBaseConfig.h
===================================================================
--- trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IlmBaseConfig.h (rev 0)
+++ trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IlmBaseConfig.h 2007-08-19 18:58:49 UTC (rev 11712)
@@ -0,0 +1,16 @@
+/* config/IlmBaseConfig.h. Generated by configure. */
+//
+// Define and set to 1 if the target system has POSIX thread support
+// and you want IlmBase to use it for multithreaded file I/O.
+//
+
+#define HAVE_PTHREAD 1
+
+//
+// Define and set to 1 if the target system supports POSIX semaphores
+// and you want OpenEXR to use them; otherwise, OpenEXR will use its
+// own semaphore implementation.
+//
+
+/* #undef HAVE_POSIX_SEMAPHORES */
+
Added: trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IlmThread.h
===================================================================
--- trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IlmThread.h (rev 0)
+++ trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IlmThread.h 2007-08-19 18:58:49 UTC (rev 11712)
@@ -0,0 +1,141 @@
+///////////////////////////////////////////////////////////////////////////
+//
+// Copyright (c) 2005, Industrial Light & Magic, a division of Lucas
+// Digital Ltd. LLC
+//
+// All rights reserved.
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Industrial Light & Magic nor the names of
+// its contributors may be used to endorse or promote products derived
+// from this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+//
+///////////////////////////////////////////////////////////////////////////
+
+#ifndef INCLUDED_ILM_THREAD_H
+#define INCLUDED_ILM_THREAD_H
+
+//-----------------------------------------------------------------------------
+//
+// class Thread
+//
+// Class Thread is a portable interface to a system-dependent thread
+// primitive. In order to make a thread actually do something useful,
+// you must derive a subclass from class Thread and implement the
+// run() function. If the operating system supports threading then
+// the run() function will be executed int a new thread.
+//
+// The actual creation of the thread is done by the start() routine
+// which then calls the run() function. In general the start()
+// routine should be called from the constructor of the derived class.
+//
+// The base-class thread destructor will join/destroy the thread.
+//
+// IMPORTANT: Due to the mechanisms that encapsulate the low-level
+// threading primitives in a C++ class there is a race condition
+// with code resembling the following:
+//
+// {
+// WorkerThread myThread;
+// } // myThread goes out of scope, is destroyed
+// // and the thread is joined
+//
+// The race is between the parent thread joining the child thread
+// in the destructor of myThread, and the run() function in the
+// child thread. If the destructor gets executed first then run()
+// will be called with an invalid "this" pointer.
+//
+// This issue can be fixed by using a Semaphore to keep track of
+// whether the run() function has already been called. You can
+// include a Semaphore member variable within your derived class
+// which you post() on in the run() function, and wait() on in the
+// destructor before the thread is joined. Alternatively you could
+// do something like this:
+//
+// Semaphore runStarted;
+//
+// void WorkerThread::run ()
+// {
+// runStarted.post()
+// // do some work
+// ...
+// }
+//
+// {
+// WorkerThread myThread;
+// runStarted.wait (); // ensure that we have started
+// // the run function
+// } // myThread goes out of scope, is destroyed
+// // and the thread is joined
+//
+//-----------------------------------------------------------------------------
+
+#include "OpenEXRConfig.h"
+
+#if defined _WIN32 || defined _WIN64
+ #ifdef NOMINMAX
+ #undef NOMINMAX
+ #endif
+ #define NOMINMAX
+ #include <windows.h>
+ #include <process.h>
+#elif HAVE_PTHREAD
+ #include <pthread.h>
+#endif
+
+namespace IlmThread {
+
+//
+// Query function to determine if the current platform supports
+// threads AND this library was compiled with threading enabled.
+//
+
+bool supportsThreads ();
+
+
+class Thread
+{
+ public:
+
+ Thread ();
+ virtual ~Thread ();
+
+ void start ();
+ virtual void run () = 0;
+
+ private:
+
+ #if defined _WIN32 || defined _WIN64
+ HANDLE _thread;
+ #elif HAVE_PTHREAD
+ pthread_t _thread;
+ #endif
+
+ void operator = (const Thread& t); // not implemented
+ Thread (const Thread& t); // not implemented
+};
+
+
+} // namespace IlmThread
+
+#endif
Added: trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IlmThreadMutex.h
===================================================================
--- trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IlmThreadMutex.h (rev 0)
+++ trunk/lib/darwin-6.1-powerpc/openexr/include/OpenEXR/IlmThreadMutex.h 2007-08-19 18:58:49 UTC (rev 11712)
@@ -0,0 +1,158 @@
+///////////////////////////////////////////////////////////////////////////
+//
+// Copyright (c) 2005, Industrial Light & Magic, a division of Lucas
+// Digital Ltd. LLC
+//
+// All rights reserved.
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Industrial Light & Magic nor the names of
+// its contributors may be used to endorse or promote products derived
+// from this software without specific prior written permission.
+//
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list