~ubuntu-branches/ubuntu/utopic/blender/utopic-proposed

« back to all changes in this revision

Viewing changes to intern/ghost/SConscript

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-02-19 11:24:23 UTC
  • mfrom: (14.2.23 sid)
  • Revision ID: package-import@ubuntu.com-20140219112423-rkmaz2m7ha06d4tk
Tags: 2.69-3ubuntu1
* Merge with Debian; remaining changes:
  - Configure without OpenImageIO on armhf, as it is not available on
    Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
window_system = env['OURPLATFORM']
34
34
 
35
35
sources = env.Glob('intern/*.cpp')
 
36
sources2 = env.Glob('intern/GHOST_NDOFManager3Dconnexion.c')
36
37
if window_system == 'darwin':
37
38
    sources += env.Glob('intern/*.mm')
38
39
 
39
40
 
40
41
pf = ['GHOST_DisplayManager', 'GHOST_System', 'GHOST_SystemPaths', 'GHOST_Window', 'GHOST_DropTarget', 'GHOST_NDOFManager']
41
 
defs=['_USE_MATH_DEFINES']
 
42
defs=['_USE_MATH_DEFINES', 'GLEW_STATIC']
42
43
 
43
44
incs = [
44
45
    '.',
75
76
    ## So until this is supported properly as with CMake,
76
77
    ## just dont use the PREFIX.
77
78
    # defs += ['PREFIX=\\"/usr/local/\\"']  # XXX, make an option
78
 
    defs += ['WITH_X11_XINPUT']  # XXX, make an option
 
79
    if env['WITH_X11_XINPUT']:
 
80
        defs += ['WITH_X11_XINPUT']
 
81
 
 
82
    if env['WITH_X11_XF86VMODE']:
 
83
        #incs += env['X11_xf86vmode_INCLUDE_PATH']
 
84
        defs += ['WITH_X11_XF86VMODE']
79
85
 
80
86
    # freebsd doesn't seem to support XDND protocol
81
87
    if env['WITH_GHOST_XDND'] and window_system not in ('freebsd7', 'freebsd8', 'freebsd9'):
142
148
    except ValueError:
143
149
        pass
144
150
 
145
 
 
146
151
if window_system in ('win32-vc', 'win32-mingw', 'cygwin', 'linuxcross', 'win64-vc', 'win64-mingw'):
147
152
    incs = env['BF_WINTAB_INC'] + ' ' + incs
148
153
    incs += ' ../utfconv'
153
158
elif env['WITH_GHOST_COCOA']:    # always use default-Apple-gcc for objC language, for gnu-compilers do not support it fully yet
154
159
    env.BlenderLib ('bf_intern_ghost', sources, Split(incs), defines=defs, libtype=['intern','player'], priority = [40,15], cc_compilerchange='/usr/bin/gcc', cxx_compilerchange='/usr/bin/g++' )
155
160
    print "GHOST COCOA WILL BE COMPILED WITH APPLE GCC"
 
161
    if env['WITH_BF_3DMOUSE']:
 
162
        env.BlenderLib ('bf_intern_ghostndof3dconnexion', sources2, Split(incs), defines=defs, libtype=['intern','player'], priority = [40,15], cc_compilerchange='/usr/bin/gcc', cxx_compilerchange='/usr/bin/g++' )
156
163
 
157
164
else:
158
165
    env.BlenderLib ('bf_intern_ghost', sources, Split(incs), defines=defs, libtype=['intern','player'], priority = [40,15] )