diff options
-rw-r--r-- | config/darwin-config.py | 3 | ||||
-rw-r--r-- | intern/ghost/SConscript | 9 | ||||
-rw-r--r-- | source/blender/imbuf/intern/imbuf_cocoa.m | 7 | ||||
-rw-r--r-- | source/blender/windowmanager/SConscript | 3 |
4 files changed, 10 insertions, 12 deletions
diff --git a/config/darwin-config.py b/config/darwin-config.py index 6dd65aeb40f..8a1b0eff6c1 100644 --- a/config/darwin-config.py +++ b/config/darwin-config.py @@ -246,6 +246,9 @@ BF_OPENGL_LIB = 'GL GLU' BF_OPENGL_LIBPATH = '/System/Library/Frameworks/OpenGL.framework/Libraries' BF_OPENGL_LINKFLAGS = ['-framework', 'OpenGL'] +#OpenCollada flags +WITH_BF_COLLADA = False + ############################################################################# ################### various compile settings and flags ################## ############################################################################# diff --git a/intern/ghost/SConscript b/intern/ghost/SConscript index 2dbda4befe7..09da6f94ddc 100644 --- a/intern/ghost/SConscript +++ b/intern/ghost/SConscript @@ -10,15 +10,6 @@ sources = env.Glob('intern/*.cpp') if window_system == 'darwin': sources += env.Glob('intern/*.mm') -#if env['WITH_GHOST_COCOA'] == True: -# env.Append(CFLAGS=['-DGHOST_COCOA']) -# env.Append(CXXFLAGS=['-DGHOST_COCOA']) -# env.Append(CPPFLAGS=['-DGHOST_COCOA']) - -#defs = '' -#if env['WITH_GHOST_COCOA']: -# defs += 'GHOST_COCOA' -# maybe we need it later pf = ['GHOST_DisplayManager', 'GHOST_System', 'GHOST_Window'] diff --git a/source/blender/imbuf/intern/imbuf_cocoa.m b/source/blender/imbuf/intern/imbuf_cocoa.m index e5bebf68f66..5ede7ee3e00 100644 --- a/source/blender/imbuf/intern/imbuf_cocoa.m +++ b/source/blender/imbuf/intern/imbuf_cocoa.m @@ -29,6 +29,7 @@ * */ +#include <stdint.h> #include <string.h> #import <Cocoa/Cocoa.h> @@ -65,7 +66,7 @@ struct ImBuf *imb_cocoaLoadImage(unsigned char *mem, int size, int flags) { struct ImBuf *ibuf = NULL; - uint32 width, height; + uint32_t width, height; uchar *rasterRGB = NULL; uchar *rasterRGBA = NULL; uchar *toIBuf = NULL; @@ -204,7 +205,7 @@ struct ImBuf *imb_cocoaLoadImage(unsigned char *mem, int size, int flags) short imb_cocoaSaveImage(struct ImBuf *ibuf, char *name, int flags) { - uint16 samplesperpixel, bitspersample; + uint16_t samplesperpixel, bitspersample; unsigned char *from = NULL, *to = NULL; unsigned short *to16 = NULL; float *fromf = NULL; @@ -224,7 +225,7 @@ short imb_cocoaSaveImage(struct ImBuf *ibuf, char *name, int flags) /* check for a valid number of bytes per pixel. Like the PNG writer, * the TIFF writer supports 1, 3 or 4 bytes per pixel, corresponding * to gray, RGB, RGBA respectively. */ - samplesperpixel = (uint16)((ibuf->depth + 7) >> 3); + samplesperpixel = (uint16_t)((ibuf->depth + 7) >> 3); switch (samplesperpixel) { case 4: /*RGBA type*/ hasAlpha = YES; diff --git a/source/blender/windowmanager/SConscript b/source/blender/windowmanager/SConscript index c01649485a5..2a86d42f590 100644 --- a/source/blender/windowmanager/SConscript +++ b/source/blender/windowmanager/SConscript @@ -29,4 +29,7 @@ if env['OURPLATFORM'] == 'linux2': if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'): incs += ' ' + env['BF_PTHREADS_INC'] +if env['WITH_GHOST_COCOA']: + sources.remove('intern/wm_apple.c') + env.BlenderLib ( 'bf_windowmanager', sources, Split(incs), defs, libtype=['core'], priority=[5] ) |