-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmb_install.py.in
628 lines (522 loc) · 23.2 KB
/
mb_install.py.in
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
import os
import platform
import re
import sys
import shutil
import SCons
'''
Some conventions to keep this sane:
* function definitions are in lowercase_with_underscores
* if the function is exported by the tool, it starts with mb_
* functions/builders are exported in camelcase, including the initial MB
* functions are added in the same order as they appear in this file
Feel free to change the conventions if you think they're wrong,
just make sure to update everything to match those conventions
'''
symlink_env_name = 'MB_MAC_FRAMEWORK_HEADER_SYMLINK_DONE'
def recursive_install(env, dest, src):
if not hasattr(src, '__iter__'):
srcs = [src]
else:
srcs = src
installs = []
for source in srcs:
src_str = env.Entry(str(source)).abspath
if not os.path.isdir(src_str):
inst = env.Install(dest, source)
if isinstance(inst, list):
installs.extend(inst)
else:
installs.append(inst)
else:
base = os.path.join(dest, os.path.basename(src_str))
for curpath, dirnames, filenames in os.walk(src_str):
relative = os.path.relpath(curpath, src_str)
installs.append(env.Install(os.path.join(base, relative),
map(lambda f: os.path.join(curpath, f),
filenames)))
return installs
def mb_install_lib(env, source, name, dest=''):
targets = []
if dest is not None and dest != '':
targetpath = os.path.join(env['MB_LIB_DIR'], dest)
else:
targetpath = env['MB_LIB_DIR']
if env.MBIsMac():
libfilename = env.File([source])[0].name
libinst = env.Command(
os.path.join(targetpath, libfilename),
source,
'cp $SOURCE $TARGET && '
'install_name_tool -id @rpath/%s $TARGET' % libfilename
)
targets.append(libinst)
else:
targets.append(env.Install(targetpath, source))
if env.MBIsWindows():
targets.append(env.Install(env['MB_BIN_DIR'], source))
elif env.MBIsLinux():
#make versioned symlinks
def proclib(source, targets):
if isinstance(source, list):
for elem in source:
proclib(elem, targets)
return
elif isinstance(source, SCons.Node.NodeList):
for elem in source:
proclib(elem, targets)
return
vre = re.compile('(?P<libname>\S+\.so)(?P<libver>(\.\d+)+)')
sourcename = str(source.abspath).split('/')[-1]
match = vre.match(sourcename)
if None is not match and None is not match.group('libver'):
libname = match.group('libname')
libver = [elem for elem in match.group('libver').split('.')
if elem != '']
#if we have liblib.so.1.2.3
#we will make symbolic links liblib.so.1.2 and liblib.so.1
libsource = source.abspath
for i in xrange(len(libver) - 1, -1, -1):
ver = libver[:i]
vername = '.'.join([libname] + ver)
createdlink = os.path.join(targetpath, vername)
createdlink = os.path.abspath(createdlink)
linkpath = os.path.relpath(
os.path.join(targetpath, sourcename),
os.path.dirname(createdlink))
print 'Linking', os.path.basename(createdlink),\
'from', linkpath
targets.append(env.Command(createdlink, source,
'ln -sf -T %s %s' % (linkpath, createdlink)))
else:
pass
proclib(source, targets)
env.Append(MB_INSTALL_TARGETS = targets)
return targets
def mb_install_headers(env, source, name, dest='', make_current_link=False):
targets = recursive_install(env, os.path.join(env['MB_INCLUDE_DIR'],
os.path.join(dest, name)),
source)
env.Append(MB_INSTALL_TARGETS = targets)
return targets
def mb_install_bin(env, source):
target = env.Install(env['MB_BIN_DIR'], source)
env.Append(MB_INSTALL_TARGETS = target)
return target
def mb_install_resources(env, source, subdir=''):
targets = recursive_install(env, os.path.join(env['MB_RESOURCE_DIR'], subdir), source)
env.Append(MB_INSTALL_TARGETS = targets)
return targets
def mb_install_config(env, source, dest=None):
if dest is None:
target = env.Install(env['MB_CONFIG_DIR'], source)
else:
target = env.InstallAs(os.path.join(env['MB_CONFIG_DIR'], dest), source)
env.Append(MB_INSTALL_TARGETS = target)
return target
def mb_install_app(env, source):
for file in source:
install_dir = os.path.dirname(file.path)
if install_dir.startswith('obj/'):
install_dir = install_dir.replace('obj/','')
target = env.Install(os.path.join(env['MB_APP_DIR'],install_dir), file)
env.Append(MB_INSTALL_TARGETS = target)
return target
def mb_install_egg(env, source):
target = env.Install(env['MB_EGG_DIR'], source)
env.Append(MB_INSTALL_TARGETS = target)
return target
def mb_install_system(env, source, dest):
target = env.InstallAs(os.path.join(env['MB_PREFIX'], dest), source)
env.Append(MB_INSTALL_TARGETS = target)
return target
def mb_create_install_target(env):
with open(env.File('#/install_manifest.txt').abspath, 'a') as fp:
for target in SCons.Util.flatten(env['MB_INSTALL_TARGETS']):
fp.write("%s\n" % target.path)
env.Alias('install', env['MB_INSTALL_TARGETS'])
def mb_dist_egg(env, egg_name, source, egg_dependencies = [], python = 'python', version = '2.7'):
def eggify(base, version):
return base + '-py' + version + '.egg'
def installfix(egg):
if 'MB_MOD_BUILD' in os.environ:
egg = os.path.join(env['MB_EGG_DIR'], os.path.basename(egg))
return egg
deps = [installfix(eggify(e, version)) for e in egg_dependencies]
environment = env['ENV'].copy()
environment.update({'PYTHONPATH': deps})
egg = env.Command(
eggify(egg_name, version),
source + [env.File('setup.py')],
python + ' -c "import setuptools; execfile(\'setup.py\')" bdist_egg',
ENV = environment)
env.Depends(egg, deps)
return egg
def mb_dist_wheel(env, wheel_name, source, wheel_dependencies = [], python = 'python3', version = '3.4'):
def installfix(wheel):
if 'MB_MOD_BUILD' in os.environ:
wheel = os.path.join(env['MB_EGG_DIR'], os.path.basename(wheel))
return wheel
deps = [installfix(e) for e in wheel_dependencies]
environment = env['ENV'].copy()
environment.update({'PYTHONPATH': deps})
wheel = env.Command(
wheel_name,
source + [env.File('setup.py')],
python + ' setup.py bdist_wheel',
ENV = environment)
env.Depends(wheel, deps)
return wheel
def mb_add_lib(env, name, framework=True):
if env.MBIsMac() and framework and (not env.MBUseDevelLibs()):
env.Append(FRAMEWORKS = [name])
else:
env.Append(LIBS = [name])
def mb_add_include_paths(env, paths):
env.PrependUnique(CPPPATH=[paths])
def mb_add_standard_compiler_flags(env):
if not env.MBIsWindows():
flags = [
'-pedantic',
'-Wall',
'-Wextra',
'-Wno-variadic-macros',
'-Wno-long-long',
'-Wswitch-enum'
]
env.Append(CCFLAGS=flags)
if env.MBDebugBuild():
env.Append(CCFLAGS=['-g'])
else:
env.Append(CCFLAGS=['-O2'])
def mb_add_devel_lib_path(env, path):
if env.MBUseDevelLibs():
if env.MBIsWindows():
env.MBAddWindowsDevelLibPath(path)
else:
env.PrependUnique(LIBPATH = [str(env.Dir(path))])
def mb_add_devel_include_path(env, path):
if env.MBUseDevelLibs():
env.PrependUnique(CPPPATH = [str(env.Dir(path))])
def set_install_paths(env):
prefix = env.MBGetOption('install_prefix')
if prefix == '':
# TODO(ted): suffer the results of doing this
prefix = env.Dir('#/../../Install').path
env.SetDefault(MB_PREFIX=os.path.abspath(prefix))
config_prefix = env.MBGetOption('config_prefix')
if config_prefix != '':
env.SetDefault(MB_CONFIG_DIR=config_prefix)
env.SetDefault(
MB_FINDPACKAGE_DIR = os.path.join(prefix, "@FINDPACKAGE_CONFIG_INSTALL_DIR@"),
MB_DOC_DIR = os.path.join(prefix, "@DOC_INSTALL_DIR@"),
MB_INCLUDE_DIR = os.path.join(prefix, "@HEADER_INSTALL_DIR@"),
MB_LIB_DIR = os.path.join(prefix, "@LIB_INSTALL_DIR@"),
MB_BIN_DIR = os.path.join(prefix, "@BIN_INSTALL_DIR@"),
MB_RESOURCE_DIR = os.path.join(prefix, "@RESOURCE_INSTALL_DIR@"),
MB_CONFIG_DIR = os.path.join(prefix, "@USER_EDITABLE_CONFIG_INSTALL_DIR@"),
MB_PY34_MODULE_DIR = os.path.join(prefix, "@PY34_MODULE_DIR@"),
MB_EGG_DIR = os.path.join(prefix, "@EGG_INSTALL_DIR@"))
if('darwin' == sys.platform):
env.SetDefault(MB_APP_DIR = os.path.join(prefix, "@APP_INSTALL_DIR@"))
# These were getting set ----ing everywhere. There is almost no
# situation where you would want to build against a sibling and
# install to a directory where a different version of that sibling
# was installed, and this should be fine in all other situations.
env.Append(
LIBPATH=env['MB_LIB_DIR'],
CPPPATH=env['MB_INCLUDE_DIR'])
# OSX doesn't use the standard link lines
if env.MBIsMac():
# add the fake root frameworks path
env['MB_FRAMEWORK_DIR'] = os.path.join(prefix, 'Library/Frameworks')
if not env.MBUseDevelLibs():
env.AppendUnique(FRAMEWORKPATH=[env['MB_FRAMEWORK_DIR']])
def set_compiler_flags(env):
''' Sets flags required by all projects.
Really, this just does things needed by C++ projects,
but it won't interfere with the python ones. '''
if env.MBIsMac():
env.Replace(CC='clang')
env.Replace(CXX='clang++')
env.Append(CXXFLAGS='-arch x86_64 -std=c++11 -stdlib=libc++ ' +
'-mmacosx-version-min=10.7 ' +
# Disabling this warning since this extension is
# used a lot in Qt header files
'-Wno-nested-anon-types')
env.Append(CCFLAGS='-arch x86_64 -stdlib=libc++ ' +
'-mmacosx-version-min=10.7 ')
env.Append(LINKFLAGS='-arch x86_64 -stdlib=libc++ ' +
'-mmacosx-version-min=10.7')
env.Append(FRAMEWORKS='CoreFoundation')
elif env.MBIsLinux():
env.Append(CXXFLAGS='-std=c++11 ' +
# Disabling this warning since some of Eigen3's
# headers cause it to happen in our code
'-Wno-unused-local-typedefs')
env.Append(LINKFLAGS='-std=c++11 ' +
# This fixes the need for LD_LIBRARY_PATH=/usr/lib/makerbot
'-Wl,-rpath,\'/usr/lib/makerbot\'')
def mb_set_lib_sym_name(env, name):
if (env.MBIsMac() and
(not env.MBUseDevelLibs()) and
(env.get('MB_LIB_SYM_NAME', None) == None)):
env.SetDefault(MB_LIB_SYM_NAME=name)
libpath = os.path.join('/',
'Library',
'Frameworks',
name + '.framework',
'Versions',
env['MB_VERSION'],
name)
if '-install_name' in env['SHLINKFLAGS']:
nameindex = env['SHLINKFLAGS'].index('-install_name') + 1
env['SHLINKFLAGS'][nameindex] = libpath
else:
env.Append(SHLINKFLAGS = ['-install_name', libpath])
if '-current_version' not in env['LINKFLAGS']:
env.Append(SHLINKFLAGS = ['-current_version', env['MB_VERSION']])
if '-compatibility_version' not in env['LINKFLAGS']:
env.Append(SHLINKFLAGS = ['-compatibility_version',
env['MB_VERSION']])
def api_define(env, target_name):
"""Return the API macro name for specified target.
For most targets this is the target name upcased with special
characters removed and "_API" appended.
A special case for JsonCpp is hardcoded as it is an external
dependency and so does not conform to our naming standard.
"""
if target_name == 'jsoncpp':
return 'JSON_API'
elif target_name == 'embedded_python':
# CMake doesn't strip the underscore and I am fine with that
return 'EMBEDDED_PYTHON_API'
else:
return re.sub('[-_]', '', target_name).upper() + '_API'
def define_api_visibility_public(env, target_name):
"""Set the API macro to make symbols public on g++/clang++."""
if env.MBIsLinux() or env.MBIsMac():
env.Append(CPPDEFINES={
api_define(env, target_name):
'__attribute__ ((visibility (\\"default\\")))'})
def define_api_nothing(env, target):
env.Append(CPPDEFINES={api_define(env, target): ''})
def windows_debug_tweak(env, lib):
if env.MBIsWindows() and env.MBDebugBuild():
lib += 'd'
return lib
def define_cmake_dependency(env, libname):
prefix = env['MB_PREFIX']
if env.MBIsWindows():
env.MBWindowsAddAPIImport(api_define(env, libname))
else:
define_api_visibility_public(env, libname)
# We suffix our debug libraries with "d" on windows
if env.MBIsWindows() and env.MBDebugBuild():
libname += 'd'
env.MBAddLib(libname, framework=False)
def mb_depends_on_mb_core_utils(env):
mb_add_include_paths(env, os.path.join(env['MB_INCLUDE_DIR'],
"bwcoreutils"))
def mb_depends_on_embedded_python(env):
define_cmake_dependency(env, 'embedded_python')
# Embedded python needs clients to pass in the absolute path to
# the python home it should use, or an empty string to indicate
# that the system default python home is acceptable.
if env.MBIsLinux():
env['PYTHON_DEV_HOME'] = ''
elif env.MBIsMac():
env['PYTHON_DEV_HOME'] = os.path.join(env['MB_LIB_DIR'], '..')
else:
env['PYTHON_DEV_HOME'] = os.path.join(env['MB_RESOURCE_DIR'], 'python34')
def mb_depends_on_mbqtutils(env):
define_cmake_dependency(env, 'mbqtutils')
def mb_depends_on_json_cpp(env):
define_cmake_dependency(env, 'jsoncpp')
def mb_depends_on_json_rpc(env):
define_cmake_dependency(env, 'jsonrpc')
def mb_depends_on_thing(env):
define_cmake_dependency(env, 'meshutils')
define_cmake_dependency(env, 'geomutils')
define_cmake_dependency(env, 'thing')
env.MBDependsOnOpenMesh()
def mb_depends_on_geomutils(env):
define_cmake_dependency(env, 'geomutils')
def mb_depends_on_meshutils(env):
define_cmake_dependency(env, 'meshutils')
def mb_depends_on_fopen_hack(env):
define_cmake_dependency(env, 'fopen_hack')
def mb_depends_on_croissant(env):
define_cmake_dependency(env, 'croissant')
def mb_depends_on_conveyor(env):
define_cmake_dependency(env, 'conveyor')
def mb_depends_on_conveyor_ui(env):
define_cmake_dependency(env, 'conveyor-ui')
def mb_depends_on_toolpathviz(env):
define_cmake_dependency(env, 'toolpathviz')
def mb_depends_on_tinything(env):
define_cmake_dependency(env, 'tinything')
def mb_scons_tools_path(env, path):
base_dir = os.path.dirname(os.path.abspath(__file__))
return os.path.join(base_dir, path)
def _common_binary_stuff(env, target, binary):
"""Encapsulates stuff that we do on all binaries"""
env.Alias(target, binary)
if env.MBIsMac():
version = SCons.Node.Python.Value(
env.MBVersion() + '.' + env.MBVersionBuild())
env.Depends(binary, version)
def mb_program(env, target, source, *args, **kwargs):
if env.MBIsWindows():
program = env.MBWindowsProgram(target, source, *args, **kwargs)
else:
if env.MBIsMac():
# OSX needs an rpath option that is only for programs
lib_relpath = os.path.relpath(env['MB_LIB_DIR'], env['MB_BIN_DIR'])
lib_relpath = kwargs.get('MB_LIB_RELPATH', lib_relpath)
linkflags = kwargs.get('LINKFLAGS', env['LINKFLAGS'])
linkflags += ['-rpath', '@executable_path/' + lib_relpath]
kwargs['LINKFLAGS'] = linkflags
program = env.Program(target, source, *args, **kwargs)
_common_binary_stuff(env, target, program)
return program
def set_shared_library_visibility_flags(env, target):
# MSVC doesn't need a flag, it has this behavior by default
if env.MBIsLinux() or env.MBIsMac():
# Sad hack. Ted will probably yell at me when he sees
# this. Basically there are issues with setting the visibility
# flag when typeinfo is needed. Mostly we don't use typeinfo,
# but OpenMesh does use dynamic_cast.
#
# For now we just disable this in the case of libthing, but it
# might yet be possible to fix this properly with more
# research.
if target != 'thing':
env.Append(CCFLAGS=['-fvisibility=hidden'])
def mb_shared_library(env, target, source, *args, **kwargs):
if env.MBIsWindows():
env.MBWindowsSetDefaultAPIExport(api_define(env, target))
library = env.MBWindowsSharedLibrary(target, source, *args, **kwargs)
else:
define_api_visibility_public(env, target)
set_shared_library_visibility_flags(env, target)
env.MBSetLibSymName(target)
library = env.SharedLibrary(target, source, *args, **kwargs)
_common_binary_stuff(env, target, library)
return library
def mb_static_library(env, target, source, *args, **kwargs):
if env.MBIsWindows():
env.MBWindowsSetDefaultAPIExport(api_define(env, target))
library = env.MBWindowsStaticLibrary(target, source, *args, **kwargs)
else:
define_api_nothing(env, target)
library = env.StaticLibrary(target, source, *args, **kwargs)
_common_binary_stuff(env, target, library)
return library
def mb_get_moc_files(env, sources):
target = []
sources = SCons.Util.flatten(sources)
for source in sources:
with open(str(env.File(os.path.join('#', str(source)))), 'r') as contents:
while True:
line = contents.readline()
if line == '':
break
if 'Q_OBJECT' in line:
# this explicit putting it in the variant dir relative
# to the root should satisfy both mac and windows
moc_file = os.path.join(
'#',
env.MBVariantDir(),
'moc',
'moc_${SOURCE.file}.cpp')
mocced = env.ExplicitMoc5(
moc_file,
env.File(source))
target.append(mocced)
break
return target
def common_arguments(env):
# TODO(ted):
# For these two, I'd like to set it up so that mb_install can give us the default locations
# that it uses, so we can include them in the help message
env.MBAddOption(
'--install-prefix',
dest='install_prefix',
nargs=1,
type='string',
action='store',
default='',
help='Sets the location to install everything to. (someone should fill in the defaults here).')
env.MBAddOption(
'--config-prefix',
dest='config_prefix',
nargs=1,
type='string',
action='store',
default='',
help='Sets the location to install configs to. (someone should fill in the defaults here).')
def generate(env):
env.Tool('mb_sconstruct')
common_arguments(env)
env.Tool('vcxproj')
env['MB_INSTALL_TARGETS'] = []
# turn off automoccing
env['QT5_AUTOSCAN'] = 0
# make sure LIBS is initialized
if 'LIBS' not in env or env['LIBS'] is None or env['LIBS'] is '':
env['LIBS'] = []
# Eigen hack:
# Don't let eigen use alignment on 32 bit platforms. This allows us to
# avoid making some far-reaching changes in Miracle-Grue with respect to
# passing aligned types and storing types containing eigen types in std
# containers.
if ((env.MBIsWindows() and env.MBWindowsIs32Bit()) or
(platform.machine() == 'i386')):
env.Append(CPPDEFINES=['EIGEN_DONT_ALIGN'])
# Unpleasant state tracker: in case MBInstallHeaders is called
# multiple times on OSX, ensure that the symlink command isn't
# created multiple times. Should find a more SCons-like way of
# doing the symlink step.
env[symlink_env_name] = False
env.AddMethod(mb_install_lib, 'MBInstallLib')
env.AddMethod(mb_install_headers, 'MBInstallHeaders')
env.AddMethod(mb_install_bin, 'MBInstallBin')
env.AddMethod(mb_install_resources, 'MBInstallResources')
env.AddMethod(mb_install_config, 'MBInstallConfig')
env.AddMethod(mb_install_app, 'MBInstallApp')
env.AddMethod(mb_install_egg, 'MBInstallEgg')
env.AddMethod(mb_install_system, 'MBInstallSystem')
env.AddMethod(mb_create_install_target, 'MBCreateInstallTarget')
env.AddMethod(mb_dist_egg, 'MBDistEgg')
env.AddMethod(mb_dist_wheel, 'MBDistWheel')
env.AddMethod(mb_add_lib, 'MBAddLib')
env.AddMethod(mb_add_include_paths, 'MBAddIncludePaths')
env.AddMethod(mb_add_standard_compiler_flags, 'MBAddStandardCompilerFlags')
env.AddMethod(mb_add_devel_lib_path, 'MBAddDevelLibPath')
env.AddMethod(mb_add_devel_include_path, 'MBAddDevelIncludePath')
env.AddMethod(mb_set_lib_sym_name, 'MBSetLibSymName')
env.AddMethod(mb_depends_on_mb_core_utils, 'MBDependsOnMBCoreUtils')
env.AddMethod(mb_depends_on_mbqtutils, 'MBDependsOnMBQtUtils')
env.AddMethod(mb_depends_on_json_cpp, 'MBDependsOnJsonCpp')
env.AddMethod(mb_depends_on_json_rpc, 'MBDependsOnJsonRpc')
env.AddMethod(mb_depends_on_embedded_python, 'MBDependsOnEmbeddedPython')
env.AddMethod(mb_depends_on_thing, 'MBDependsOnThing')
env.AddMethod(mb_depends_on_geomutils, 'MBDependsOnGeomUtils')
env.AddMethod(mb_depends_on_meshutils, 'MBDependsOnMeshUtils')
env.AddMethod(mb_depends_on_fopen_hack, 'MBDependsOnFOpenHack')
env.AddMethod(mb_depends_on_croissant, 'MBDependsOnCroissant')
env.AddMethod(mb_depends_on_conveyor, 'MBDependsOnConveyor')
env.AddMethod(mb_depends_on_conveyor_ui, 'MBDependsOnConveyorUi')
env.AddMethod(mb_depends_on_toolpathviz, 'MBDependsOnToolPathViz')
env.AddMethod(mb_depends_on_tinything, 'MBDependsOnTinything')
env.AddMethod(mb_scons_tools_path, 'MBSConsToolsPath')
env.AddMethod(mb_shared_library, 'MBSharedLibrary')
env.AddMethod(mb_static_library, 'MBStaticLibrary')
env.AddMethod(mb_program, 'MBProgram')
env.AddMethod(mb_get_moc_files, 'MBGetMocFiles')
set_install_paths(env)
set_compiler_flags(env)
env.Tool('mb_test')
def exists(env) :
return True