@@ -1,7 +1,7 @@
#define BUILD_DIRECTORY $[HAVE_TINYDISPLAY]
#define BUILDING_DLL BUILDING_TINYDISPLAY
-#define OSX_SYS_FRAMEWORKS ApplicationServices Carbon CoreServices Cocoa
+#define OSX_SYS_FRAMEWORKS $[if $[not $[BUILD_IPHONE]],ApplicationServices Carbon CoreServices Cocoa ]
#define OTHER_LIBS interrogatedb:c dconfig:c dtoolconfig:m \
dtoolutil:c dtoolbase:c dtool:m prc:c
@@ -151,7 +151,7 @@ init_libtinydisplay() {
ps->set_system_tag("TinyPanda", "native_window_system", "Win");
#endif
-#ifdef IS_OSX
+#if defined(IS_OSX) && !defined(BUILD_IPHONE)
TinyOsxGraphicsPipe::init_type();
TinyOsxGraphicsWindow::init_type();
selection->add_pipe_type(TinyOsxGraphicsPipe::get_class_type(),
@@ -185,7 +185,7 @@ get_pipe_type_tinydisplay() {
return TinyWinGraphicsPipe::get_class_type().get_index();
return TinyOsxGraphicsPipe::get_class_type().get_index();
@@ -14,7 +14,7 @@
#include "pandabase.h"
#include "tinyOsxGraphicsPipe.h"
#include "config_tinydisplay.h"
@@ -17,7 +17,7 @@
// We have to include this early, before anyone includes
// netinet/tcp.h, which will define TCP_NODELAY and other symbols and
#include <Carbon/Carbon.h>
@@ -8,6 +8,11 @@
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
+
+#include "pandabase.h"
#include <Cocoa/Cocoa.h>
@@ -1791,3 +1796,5 @@ create_frame_buffer() {
_frame_buffer = ZB_open(_properties.get_x_size(), _properties.get_y_size(), ZB_MODE_RGBA, 0, 0, 0, 0);
}
+#endif // IS_OSX