safe iphone build
This commit is contained in:
parent
45dddf3661
commit
8a44eb5b92
|
|
@ -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();
|
||||
#endif
|
||||
|
||||
#ifdef IS_OSX
|
||||
#if defined(IS_OSX) && !defined(BUILD_IPHONE)
|
||||
return TinyOsxGraphicsPipe::get_class_type().get_index();
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#include "pandabase.h"
|
||||
|
||||
#ifdef IS_OSX
|
||||
#if defined(IS_OSX) && !defined(BUILD_IPHONE)
|
||||
|
||||
#include "tinyOsxGraphicsPipe.h"
|
||||
#include "config_tinydisplay.h"
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#include "pandabase.h"
|
||||
|
||||
#ifdef IS_OSX
|
||||
#if defined(IS_OSX) && !defined(BUILD_IPHONE)
|
||||
|
||||
// We have to include this early, before anyone includes
|
||||
// netinet/tcp.h, which will define TCP_NODELAY and other symbols and
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#include "pandabase.h"
|
||||
|
||||
#ifdef IS_OSX
|
||||
#if defined(IS_OSX) && !defined(BUILD_IPHONE)
|
||||
|
||||
#include <Carbon/Carbon.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,11 @@
|
|||
// with this source code in a file named "LICENSE."
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "pandabase.h"
|
||||
|
||||
#if defined(IS_OSX) && !defined(BUILD_IPHONE)
|
||||
|
||||
#include <Carbon/Carbon.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
|
||||
|
|
|
|||
Loading…
Reference in New Issue