Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SConscript « boolop « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f630d1d58e0ee71c91fd9721ad609172616ff9bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/python
Import ('env')

incs = '. intern extern ../moto/include ../container ../memutil'
incs += ' ../../source/blender/makesdna ../../intern/guardedalloc'
incs += ' ../../source/blender/blenlib'

defs = []

if not env['WITH_BF_CARVE']:
    import os
    sources = env.Glob('intern/*.cpp')
    sources.remove('intern' + os.sep + 'BOP_CarveInterface.cpp')
else:
    sources = env.Glob('intern/BOP_CarveInterface.cpp')
    incs += ' ../../extern/carve/include'

    if env['WITH_BF_BOOST']:
        if env['OURPLATFORM'] not in ('win32-vc', 'win64-vc'):
            # Boost is setting as preferred collections library in the Carve code when using MSVC compiler
            if env['OURPLATFORM'] not in ('win32-mingw', 'win64-mingw'):
                defs.append('HAVE_BOOST_UNORDERED_COLLECTIONS')

        defs.append('CARVE_SYSTEM_BOOST')
        incs +=  ' ' + env['BF_BOOST_INC']

if (env['OURPLATFORM'] in ('win32-mingw', 'win64-mingw')):
    env.BlenderLib ('bf_intern_bop', sources, Split(incs) , [], libtype='intern', priority = 5 )
else:
    env.BlenderLib ('bf_intern_bop', sources, Split(incs) , defs, libtype='intern', priority = 5 )