OpenToonz - An open-source full-featured 2D animation creation software
C
#mingw #win32: disable quicktime
Ivan Mahonindb7f146cab83
diff --git a/toonz/sources/CMakeLists.txt b/toonz/sources/CMakeLists.txtindex d9b0c34c8..053b62214 100644--- a/toonz/sources/CMakeLists.txt+++ b/toonz/sources/CMakeLists.txt@@ -382,9 +382,6 @@ elseif(BUILD_ENV_APPLE)pkg_check_modules(MYPAINT_LIB REQUIRED libmypaint)elseif(BUILD_ENV_UNIXLIKE)if(BUILD_TARGET_WIN)- if(PLATFORM EQUAL 32)- set(QT_LIB ${SDKROOT}/quicktime/QT73SDK/Libraries/QTMLClient.lib)- endif()find_library(GL_LIB opengl32)find_library(GLU_LIB glu32)find_library(GLUT_LIB NAMES glut freeglut)@@ -588,7 +585,7 @@ if(BUILD_ENV_APPLE)add_subdirectory(mousedragfilter)endif()-if((PLATFORM EQUAL 32) AND (BUILD_TARGET_WIN OR BUILD_TARGET_APPLE))+if((PLATFORM EQUAL 32) AND ((BUILD_TARGET_WIN AND BUILD_ENV_MSVC) OR BUILD_TARGET_APPLE))add_subdirectory(t32bitsrv)endif()diff --git a/toonz/sources/common/tiio/movsettings.cpp b/toonz/sources/common/tiio/movsettings.cppindex e8cb9c24e..4b095fb63 100644--- a/toonz/sources/common/tiio/movsettings.cpp+++ b/toonz/sources/common/tiio/movsettings.cpp@@ -7,7 +7,7 @@#include "tproperty.h"#include "tiio.h"-#if !(defined(x64) || defined(__LP64__) || defined(LINUX))+#if !defined(x64) && !defined(__LP64__) && !defined(LINUX) && !(defined(__GNUC__) && defined(_WIN32))//*******************************************************************************// 32-bit versiondiff --git a/toonz/sources/image/3gp/tiio_3gp.h b/toonz/sources/image/3gp/tiio_3gp.hindex 631dfbe77..6d1180016 100644--- a/toonz/sources/image/3gp/tiio_3gp.h+++ b/toonz/sources/image/3gp/tiio_3gp.h@@ -3,7 +3,7 @@#ifndef TIIO_3GP_H#define TIIO_3_H-#ifdef x64+#if defined(x64) || (defined(__GNUC__) && defined(_WIN32))#include "tiio_3gp_proxy.h"#elsediff --git a/toonz/sources/image/3gp/tiio_3gpW.cpp b/toonz/sources/image/3gp/tiio_3gpW.cppindex 0a7472f01..669bdec83 100644--- a/toonz/sources/image/3gp/tiio_3gpW.cpp+++ b/toonz/sources/image/3gp/tiio_3gpW.cpp@@ -1,6 +1,6 @@-#ifndef x64+#if !defined(x64) && !(defined(__GNUC__) && defined(_WIN32))#include <cstdint>diff --git a/toonz/sources/image/3gp/tiio_3gp_proxy.cpp b/toonz/sources/image/3gp/tiio_3gp_proxy.cppindex 76c82a505..4fba3d815 100644--- a/toonz/sources/image/3gp/tiio_3gp_proxy.cpp+++ b/toonz/sources/image/3gp/tiio_3gp_proxy.cpp@@ -1,6 +1,6 @@-#if (defined(x64) || defined(__LP64__) || defined(LINUX))+#if defined(x64) || defined(__LP64__) || defined(LINUX) || (defined(_WIN32) && defined(__GNUC__))// Toonz includes#include "tfilepath.h"diff --git a/toonz/sources/image/3gp/tiio_3gp_proxy.h b/toonz/sources/image/3gp/tiio_3gp_proxy.hindex db8a539d5..744769e6a 100644--- a/toonz/sources/image/3gp/tiio_3gp_proxy.h+++ b/toonz/sources/image/3gp/tiio_3gp_proxy.h@@ -3,7 +3,7 @@#ifndef TIIO_3GP_PROXY_H#define TIIO_3GP_PROXY_H-#if defined(x64) || defined(__LP64__) || defined(LINUX)+#if defined(x64) || defined(__LP64__) || defined(LINUX) || (defined(_WIN32) && defined(__GNUC__))// Qt includes#include <QString>diff --git a/toonz/sources/image/mov/tiio_mov.h b/toonz/sources/image/mov/tiio_mov.hindex 2e58cd88c..37990f647 100644--- a/toonz/sources/image/mov/tiio_mov.h+++ b/toonz/sources/image/mov/tiio_mov.h@@ -3,7 +3,7 @@#ifndef TIIO_MOV_H#define TIIO_MOV_H-#ifdef x64+#if defined(x64) || (defined(__GNUC__) && defined(_WIN32))#include "tiio_mov_proxy.h"#elsediff --git a/toonz/sources/image/mov/tiio_movW.cpp b/toonz/sources/image/mov/tiio_movW.cppindex 0b07b7c73..f02692050 100644--- a/toonz/sources/image/mov/tiio_movW.cpp+++ b/toonz/sources/image/mov/tiio_movW.cpp@@ -1,6 +1,6 @@-#ifndef x64+#if !defined(x64) && !(defined(__GNUC__) && defined(_WIN32))#include "texception.h"#include "tsound.h"diff --git a/toonz/sources/image/mov/tiio_mov_proxy.cpp b/toonz/sources/image/mov/tiio_mov_proxy.cppindex f8fa95f49..816171d90 100644--- a/toonz/sources/image/mov/tiio_mov_proxy.cpp+++ b/toonz/sources/image/mov/tiio_mov_proxy.cpp@@ -1,6 +1,6 @@-#if (defined(x64) || defined(__LP64__) || defined(LINUX))+#if defined(x64) || defined(__LP64__) || defined(LINUX) || (defined(_WIN32) && defined(__GNUC__))// Toonz includes#include "tfilepath.h"diff --git a/toonz/sources/image/mov/tiio_mov_proxy.h b/toonz/sources/image/mov/tiio_mov_proxy.hindex 386c79d40..68d0c88ae 100644--- a/toonz/sources/image/mov/tiio_mov_proxy.h+++ b/toonz/sources/image/mov/tiio_mov_proxy.h@@ -3,7 +3,7 @@#ifndef TIIO_MOV_PROXY_H#define TIIO_MOV_PROXY_H-#if defined(x64) || defined(__LP64__) || defined(LINUX)+#if defined(x64) || defined(__LP64__) || defined(LINUX) || (defined(_WIN32) && defined(__GNUC__))// Qt includes#include <QString>diff --git a/toonz/sources/image/tiio.cpp b/toonz/sources/image/tiio.cppindex dfbd74d8e..4433ba5c5 100644--- a/toonz/sources/image/tiio.cpp+++ b/toonz/sources/image/tiio.cpp@@ -20,7 +20,7 @@// Platform-specific includes#if defined(_WIN32)-#ifndef x64+#if !defined(x64) && !defined(__GNUC__)#define list QuickTime_list#define map QuickTime_map@@ -169,7 +169,7 @@ void initImageIo(bool lightVersion) {new Tiio::SpriteWriterProperties());// ffmpeg-#if !defined(_WIN32) || defined(x64)+#if !defined(_WIN32) || defined(x64) || (defined(_WIN32) && defined(__GNUC__))if (Ffmpeg::checkFfmpeg()) {bool ffprobe = Ffmpeg::checkFfprobe();if (Ffmpeg::checkFormat("webm")) {diff --git a/toonz/sources/include/movsettings.h b/toonz/sources/include/movsettings.hindex 591d53834..a152d18b7 100644--- a/toonz/sources/include/movsettings.h+++ b/toonz/sources/include/movsettings.h@@ -13,7 +13,7 @@#define DVVAR DV_IMPORT_VAR#endif-#if !(defined(x64) || defined(__LP64__) || defined(LINUX))+#if !defined(x64) && !defined(__LP64__) && !defined(LINUX) && !(defined(__GNUC__) && defined(_WIN32))#ifdef _WIN32