~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to extern/eltopo/SConscript

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
import sys
 
3
import os
 
4
 
 
5
Import('env')
 
6
 
 
7
defs = ' -DUSE_FORTRAN_BLAS -DNOGUI'
 
8
cflags = []
 
9
 
 
10
if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
 
11
    defs += ' WIN32 NDEBUG _WINDOWS'
 
12
    #cflags += ['/MT', '/W3', '/GX', '/O2', '/Op']
 
13
    cflags += ['/MT', '/W3', '/GX', '/Og', '/Ot', '/Ob1', '/Op', '/G6', '/O3', '/EHcs']
 
14
elif env['OURPLATFORM'] in ('win32-mingw', 'linuxcross', 'win64-mingw'):
 
15
    defs += ' NDEBUG'
 
16
    cflags += ['-O2']
 
17
elif env['OURPLATFORM'] in ('linux', 'freebsd4', 'freebsd5'):
 
18
    defs += ' NDEBUG'
 
19
    cflags += ['-O2']
 
20
elif sys.platform=='darwin':
 
21
    defs += ' NDEBUG'
 
22
    cflags += ['-O2','-pipe', '-fPIC', '-funsigned-char', '-ffast-math']
 
23
 
 
24
eltopo_src = env.Glob("common/*.cpp") + env.Glob("eltopo3d/*.cpp") + env.Glob("common/newsparse/*.cpp") + env.Glob("common/sparse/*.cpp") + env.Glob("common/meshes/*.cpp") + ["eltopo-capi.cpp"]
 
25
incs = '. common eltopo3d common/newsparse common/meshes common/sparse'
 
26
 
 
27
env.BlenderLib ( libname = 'extern_eltopo3d', sources=eltopo_src, includes=Split(incs), defines=Split(defs), libtype=['extern','player'], priority=[20,137], compileflags=cflags )
 
28