COMLIB += $(NAN_GUARDEDALLOC)/lib/libguardedalloc.a
COMLIB += $(NAN_BMFONT)/lib/$(DEBUG_DIR)libbmfont.a
COMLIB += $(NAN_PNG)/lib/libpng.a
+ ifeq ($(WITH_QUICKTIME), true)
+ COMLIB += $(OCGDIR)/blender/blenderqt/$(DEBUG_DIR)libblenderqt.a
+ endif
PULIB = $(NAN_IKSOLVER)/lib/libiksolver.a
PULIB += $(NAN_MOTO)/lib/libmoto.a
DIRS += avi imbuf img render radiosity blenlib blenkernel blenpluginapi
DIRS += bpython makesdna src renderconverter
+ifeq ($(WITH_QUICKTIME), true)
+ DIRS += quicktime
+endif
+
DIR = $(OCGDIR)/blender
SOURCEDIR = source/blender
TESTDIRS = deflate streamglue
# external interface of this module
CPPFLAGS += -I..
+ifeq ($(WITH_QUICKTIME), true)
+ CPPFLAGS += -DWITH_QUICKTIME
+endif
+
--- /dev/null
+#
+# $Id$
+#
+# ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version. The Blender
+# Foundation also sells licenses for use in proprietary software under
+# the Blender License. See http://www.blender.org/BL/ for information
+# about this.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
+# All rights reserved.
+#
+# The Original Code is: all of this file.
+#
+# Contributor(s): none yet.
+#
+# ***** END GPL/BL DUAL LICENSE BLOCK *****
+#
+# Bounces make to subdirectories.
+
+SOURCEDIR = source/blender/quicktime
+
+ifeq ($(OS), $(findstring $(OS), "windows, darwin"))
+ DIRS = apple
+endif
+
+include nan_subdirs.mk
--- /dev/null
+#
+# $Id$
+#
+# ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version. The Blender
+# Foundation also sells licenses for use in proprietary software under
+# the Blender License. See http://www.blender.org/BL/ for information
+# about this.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
+# All rights reserved.
+#
+# The Original Code is: all of this file.
+#
+# Contributor(s): none yet.
+#
+# ***** END GPL/BL DUAL LICENSE BLOCK *****
+#
+#
+
+LIBNAME = blenderqt
+DIR = $(OCGDIR)/blender/$(LIBNAME)
+
+include nan_compile.mk
+
+CFLAGS += $(LEVEL1_C_WARNINGS)
+
+CPPFLAGS += -DWITH_QUICKTIME
+
+ifeq ($(CPU),$(findstring $(CPU), "powerpc mips sparc"))
+ CPPFLAGS += -DWORDS_BIGENDIAN
+else
+ # alpha i386
+ CPPFLAGS += -DWORDS_LITTLEENDIAN
+endif
+
+# path to the guarded memory allocator
+CPPFLAGS += -I$(NAN_GUARDEDALLOC)/include
+# our own include
+CPPFLAGS += -I..
+
+# stuff needed by quicktime_[import|export].c
+CPPFLAGS += -I../../readstreamglue -I../../imbuf/intern -I../../imbuf
+CPPFLAGS += -I../../blenlib -I../../makesdna -I../../include -I../../avi
+CPPFLAGS += -I../../blenkernel -I../../render/extern/include
+
+
#include "quicktime_export.h"
-#include <Movies.h>
-#include <QuicktimeComponents.h>
-
#ifdef _WIN32
#include <FixMath.h>
#include <QTML.h>
#include <TextUtils.h>
+#include <Movies.h>
+#include <QuicktimeComponents.h>
#endif /* _WIN32 */
#ifdef __APPLE__
+#undef NDEBUG
+#include <QuickTime/Movies.h>
+#include <QuickTime/QuicktimeComponents.h>
#include <fcntl.h> /* open() */
#include <unistd.h> /* close() */
#include <sys/stat.h> /* file permissions */
#include "IMB_anim.h"
#include "BLO_sys_types.h"
-#include <Movies.h>
+#ifdef __APPLE__
+#include <QuickTime/Movies.h>
+#include <QuickTime/QuickTimeComponents.h>
+#endif
#ifdef _WIN32
+#include <Movies.h>
#include <QTML.h>
-#include <TextUtils.h>
-#endif /* _WIN32 */
-
-//#ifdef __APPLE__
+#include <TextUtils.h>
#include <QuickTimeComponents.h>
-//#endif /* __APPLE__ */
+#endif /* _WIN32 */
#include "quicktime_import.h"
BLI_testextensie(name, ".zip") ||
BLI_testextensie(name, ".mp3")) return 0;
- if(QTIME_DEBUG) printf("qt: checking as movie %s\n");
+ if(QTIME_DEBUG) printf("qt: checking as movie\n");
sprintf(theFullPath, "%s", name);
#ifdef __APPLE__
#include "../imbuf/IMB_imbuf_types.h"
#ifndef __MOVIES__
+#ifdef _WIN32
#include <Movies.h>
+#elif defined(__APPLE__)
+#include <QuickTime/Movies.h>
+#endif
#endif
#ifdef _WIN32
# not very neat: the rest of blender..
CPPFLAGS += -I../../../include
+ifeq ($(WITH_QUICKTIME), true)
+ CPPFLAGS += -DWITH_QUICKTIME
+endif
+
CPPFLAGS += -I/usr/src/MesaCVS/include
endif
endif
+
+ifeq ($(WITH_QUICKTIME),true)
+ CPPFLAGS += -I../quicktime
+ CPPFLAGS += -DWITH_QUICKTIME
+endif
+
#ifdef WITH_QUICKTIME
#ifdef _WIN32
#include <QTML.h>
-#endif /* _WIN32 */
-#if defined (_WIN32) || defined (__APPLE__)
#include <Movies.h>
-#endif /* _WIN32 || __APPLE__ */
+#elif defined(__APPLE__)
+#include <QuickTime/Movies.h>
+#endif /* __APPLE__ */
#endif /* WITH_QUICKTIME */
#include "PIL_time.h"
#include "quicktime_export.h"
#ifdef _WIN32
#include <QTML.h>
-#endif /* _WIN32 */
-#if defined (_WIN32) || defined (__APPLE__)
#include <Movies.h>
-#endif /* _WIN32 || __APPLE__ */
+#elif defined (__APPLE__)
+#undef NDEBUG
+#include <QuickTime/Movies.h>
+#endif /* __APPLE__ */
#endif /* WITH_QUICKTIME */
/***/
CPPFLAGS += -I../kernel/gen_messaging
CPPFLAGS += -I$(NAN_BLENKEY)/include
CPPFLAGS += -I$(NAN_GUARDEDALLOC)/include
+
+ifeq ($(WITH_QUICKTIME), true)
+ CPPFLAGS += -I$(NAN_QUICKTIME)/include -DWITH_QUICKTIME
+endif
#endif
#ifdef WITH_QUICKTIME
-# ifdef _WIN32
-# include <QTML.h>
-# endif /* _WIN32 */
-# if defined (_WIN32) || defined (__APPLE__)
-# include <Movies.h>
-# elif defined (__linux__)
-# include <quicktime/lqt.h>
-# endif /* __linux__ */
+#ifdef _WIN32
+#include <QTML.h>
+#include <Movies.h>
+#elif defined(__APPLE__)
+#undef NDEBUG
+#include <QuickTime/Movies.h>
+#endif /* __APPLE__ */
#endif /* WITH_QUICKTIME */
// from buildinfo.c
# Be paranoid regarding library creation (do not update archives)
export NAN_PARANOID ?= true
+ # enable quicktime by default on OS X
+ export WITH_QUICKTIME ?= true
+
else
ifeq ($(OS),freebsd)
ifeq ($(OS),darwin)
LLIBS += -lGLU -lGL
LLIBS += -lz -framework Carbon -framework AGL
+ ifeq ($(WITH_QUICKTIME), true)
+ LLIBS += -framework QuickTime
+ endif
LDFLAGS += -L/System/Library/Frameworks/OpenGL.framework/Libraries
DBG_LDFLAGS += -L/System/Library/Frameworks/OpenGL.framework/Libraries
endif