SConscript 2.37 KB
Newer Older
1
import imp
2

3
Import('env')
4

5
custom = imp.load_source('custom_scons_functions', '{0}/custom_scons_functions.py'.format(env["HAPPY_HEART_SCONS"]))
6
7
8
9

list_exec = []


10
# For the time being only main_test in Tests folder is considered... Later on should be as ModelInstances.
11
#for problem in problems:
12
#    list_exec.append(SConscript(os.path.join(problem, 'SConscript'), ['env'], duplicate=0))
13
14
15
16


main_src = Split('''
    main_test.cpp
17
''')
18
19


20
test = custom.HappyHeartProgram(env, 'test', main_src, [])
21

22

23
24
25
26
27
#main_ondomatic_numbering_src = Split('''
#     OndomaticNumbering/main_test_ondomatic_numbering.cpp
#     ''')
#
# test_ondomatic_numbering = custom.HappyHeartProgram(env, 'test_ondomatic_numbering', main_ondomatic_numbering_src, [])
28

29
30

main_coloring_src = Split('''
31
    Geometry/Coloring/main_test_coloring.cpp
32
    Geometry/Coloring/Model.cpp    
33
34
    ''')

35
test_coloring = custom.HappyHeartProgram(env, 'test_coloring', main_coloring_src, [])
36
37


38
39


40
41
42
43
44
main_conform_operator_src = Split('''
    Operators/ConformProjector/Model.cpp
    Operators/ConformProjector/main.cpp
    ''')

45
test_conform_operator = custom.HappyHeartProgram(env, 'test_conform_operator', main_conform_operator_src, [])
46

47
main_test_p1_to_p2_src = Split('''
48
    Operators/P1_to_HigherOrder/main_interpolator_P1_P2.cpp
49
50
51
    ''')


52
53
54
55
56
57
58
59
60
61
62
63
test_p1_to_p2 = custom.HappyHeartProgram(env, 'test_p1_to_p2', main_test_p1_to_p2_src, [])



main_test_p1_to_p1b_src = Split('''
    Operators/P1_to_HigherOrder/main_interpolator_P1_P1b.cpp
    ''')


test_p1_to_p1b = custom.HappyHeartProgram(env, 'test_p1_to_p1b', main_test_p1_to_p1b_src, [])


64

65
66
67
68
main_test_fiber_list_manager_src = Split('''
    Parameter/AtDof/main.cpp
    Parameter/AtDof/Model.cpp
    ''')
69
70


71
test_fiber_list_manager = custom.HappyHeartProgram(env, 'test_fiber_list_manager', main_test_fiber_list_manager_src, [])
72

73

74
75
76
77
78
79
80
81
main_test_parameter_time_dep =  Split('''
    Parameter/TimeDependency/Model.cpp
    Parameter/TimeDependency/main.cpp
    ''')

test_parameter_time_dep = custom.HappyHeartProgram(env, 'test_parameter_time_dep', main_test_parameter_time_dep, [])


82
list_exec.extend((test,
83
                  test_coloring,
84
                  test_conform_operator,
85
                  test_p1_to_p2,
86
                  test_p1_to_p1b,
87
88
                  test_fiber_list_manager,
                  test_parameter_time_dep
89
                  )) #test_ondomatic_numbering deactivated for the moment #523
90
91
92

Return('list_exec')