Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Gartner <stefang@aon.at>2003-05-02 17:36:56 +0400
committerStefan Gartner <stefang@aon.at>2003-05-02 17:36:56 +0400
commit723b84c79c91abc804380d921c91d850ab68ff0a (patch)
tree08b39407dc10793bf74ee5556f9cd25e0dfab123 /source/blender
parent75014f9f64a1fdde4e1f94d6962e99dea0dcb548 (diff)
fun with quicktime:
#include <QuickTime/Movies.h> instead of #include <Movies.h> on OS X to avoid having to specify the full path to the QT headers in the Makefiles #undef NDEBUG on OS X to avoid errors about ID being declared twice enable support for QuickTime in the original Makefiles on OS X
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/Makefile4
-rw-r--r--source/blender/imbuf/intern/Makefile4
-rw-r--r--source/blender/quicktime/Makefile40
-rw-r--r--source/blender/quicktime/apple/Makefile60
-rw-r--r--source/blender/quicktime/apple/quicktime_export.c8
-rw-r--r--source/blender/quicktime/apple/quicktime_import.c15
-rw-r--r--source/blender/quicktime/quicktime_import.h4
-rw-r--r--source/blender/render/intern/source/Makefile4
-rw-r--r--source/blender/src/Makefile6
-rw-r--r--source/blender/src/playanim.c6
-rw-r--r--source/blender/src/usiblender.c7
11 files changed, 142 insertions, 16 deletions
diff --git a/source/blender/Makefile b/source/blender/Makefile
index 7ccb0f0c042..eb139d8d617 100644
--- a/source/blender/Makefile
+++ b/source/blender/Makefile
@@ -39,6 +39,10 @@ DIRS += writestreamglue readstreamglue writeblenfile readblenfile
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
diff --git a/source/blender/imbuf/intern/Makefile b/source/blender/imbuf/intern/Makefile
index 1517a508cec..0cb0316524d 100644
--- a/source/blender/imbuf/intern/Makefile
+++ b/source/blender/imbuf/intern/Makefile
@@ -59,3 +59,7 @@ CPPFLAGS += -I../../makesdna
# external interface of this module
CPPFLAGS += -I..
+ifeq ($(WITH_QUICKTIME), true)
+ CPPFLAGS += -DWITH_QUICKTIME
+endif
+
diff --git a/source/blender/quicktime/Makefile b/source/blender/quicktime/Makefile
new file mode 100644
index 00000000000..c71ebc4325d
--- /dev/null
+++ b/source/blender/quicktime/Makefile
@@ -0,0 +1,40 @@
+#
+# $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
diff --git a/source/blender/quicktime/apple/Makefile b/source/blender/quicktime/apple/Makefile
new file mode 100644
index 00000000000..7910f25e10e
--- /dev/null
+++ b/source/blender/quicktime/apple/Makefile
@@ -0,0 +1,60 @@
+#
+# $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
+
+
diff --git a/source/blender/quicktime/apple/quicktime_export.c b/source/blender/quicktime/apple/quicktime_export.c
index 7ca6875ea78..b88c72bfb54 100644
--- a/source/blender/quicktime/apple/quicktime_export.c
+++ b/source/blender/quicktime/apple/quicktime_export.c
@@ -82,16 +82,18 @@ DONE:
#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 */
diff --git a/source/blender/quicktime/apple/quicktime_import.c b/source/blender/quicktime/apple/quicktime_import.c
index 61c4fcec215..c961472318b 100644
--- a/source/blender/quicktime/apple/quicktime_import.c
+++ b/source/blender/quicktime/apple/quicktime_import.c
@@ -37,16 +37,17 @@
#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"
@@ -81,7 +82,7 @@ int anim_is_quicktime (char *name)
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__
diff --git a/source/blender/quicktime/quicktime_import.h b/source/blender/quicktime/quicktime_import.h
index 2a2e35fd671..070346413a1 100644
--- a/source/blender/quicktime/quicktime_import.h
+++ b/source/blender/quicktime/quicktime_import.h
@@ -44,7 +44,11 @@
#include "../imbuf/IMB_imbuf_types.h"
#ifndef __MOVIES__
+#ifdef _WIN32
#include <Movies.h>
+#elif defined(__APPLE__)
+#include <QuickTime/Movies.h>
+#endif
#endif
#ifdef _WIN32
diff --git a/source/blender/render/intern/source/Makefile b/source/blender/render/intern/source/Makefile
index 458d26bf050..ff8fc1fceae 100644
--- a/source/blender/render/intern/source/Makefile
+++ b/source/blender/render/intern/source/Makefile
@@ -58,3 +58,7 @@ CPPFLAGS += -I$(NAN_GUARDEDALLOC)/include
# not very neat: the rest of blender..
CPPFLAGS += -I../../../include
+ifeq ($(WITH_QUICKTIME), true)
+ CPPFLAGS += -DWITH_QUICKTIME
+endif
+
diff --git a/source/blender/src/Makefile b/source/blender/src/Makefile
index faae6598263..a20c6e4db3d 100644
--- a/source/blender/src/Makefile
+++ b/source/blender/src/Makefile
@@ -104,3 +104,9 @@ ifeq ($(OS),linux)
CPPFLAGS += -I/usr/src/MesaCVS/include
endif
endif
+
+ifeq ($(WITH_QUICKTIME),true)
+ CPPFLAGS += -I../quicktime
+ CPPFLAGS += -DWITH_QUICKTIME
+endif
+
diff --git a/source/blender/src/playanim.c b/source/blender/src/playanim.c
index 70232870b2b..061df8f7f46 100644
--- a/source/blender/src/playanim.c
+++ b/source/blender/src/playanim.c
@@ -51,10 +51,10 @@
#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"
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c
index 2b5f05c4be1..5a9d0797715 100644
--- a/source/blender/src/usiblender.c
+++ b/source/blender/src/usiblender.c
@@ -120,10 +120,11 @@
#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 */
/***/