-
Notifications
You must be signed in to change notification settings - Fork 20
/
phclib.gpr
155 lines (137 loc) · 6.41 KB
/
phclib.gpr
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
with "config/phcpack_config.gpr";
library project phclib is
case phcpack_config.Alire_Host_OS is
when "windows" =>
for Source_Dirs use
(
"src/Ada/Main", "src/Ada/System", "src/Ada/System/Basic_Timer",
"src/Ada/Math_Lib/Numbers", "src/Ada/Math_Lib/QD",
"src/Ada/Math_Lib/Vectors", "src/Ada/Math_Lib/Matrices",
"src/Ada/Math_Lib/Reduction", "src/Ada/Math_Lib/Divisors",
"src/Ada/Math_Lib/Polynomials", "src/Ada/Math_Lib/Functions",
"src/Ada/Math_Lib/Supports", "src/Ada/Math_Lib/Series",
"src/Ada/Math_Lib/Circuits", "src/Ada/Math_Lib/Laurent",
"src/Ada/Deformations/Solutions", "src/Ada/Deformations/Homotopy",
"src/Ada/Deformations/Newton", "src/Ada/Deformations/Curves",
"src/Ada/Deformations/End_Games",
"src/Ada/Deformations/Trackers", "src/Ada/Deformations/Sweep",
"src/Ada/Deformations/Continuation",
"src/Ada/Root_Counts/Product", "src/Ada/Root_Counts/Binomials",
"src/Ada/Root_Counts/Implift", "src/Ada/Root_Counts/Stalift",
"src/Ada/Root_Counts/Dynlift", "src/Ada/Root_Counts/Symmetry",
"src/Ada/Root_Counts/MixedVol", "src/Ada/Root_Counts/Puiseux",
"src/Ada/Root_Counts/DEMiCs",
"src/Ada/Schubert/SAGBI", "src/Ada/Schubert/Pieri",
"src/Ada/Schubert/Induction",
"src/Ada/Components/Samplers", "src/Ada/Components/Interpolators",
"src/Ada/Components/Factorization", "src/Ada/Components/Decomposition",
"src/Ada/Components/Solver", "src/Ada/Components/Tropical",
"src/Ada/CtoPHC/Types", "src/Ada/CtoPHC/Structures",
"src/Ada/CtoPHC/Funky", "src/Ada/CtoPHC/State", "src/Ada/Tasking",
"src/Feedback"
);
for Excluded_Source_Files use
(
"ts_use_syscon.c", "corecount.c",
"ts_smith.c", "ts_roots.c", "ts_timer.c", "ts_gcd.c",
-- to avoid multiple mains ...
"ts_divide.c", "ts_explore_Cpoles.c" ,
"ts_feedback.c", "ts_cosupoly.c", "ts_cosupsys.c",
"ts_c2str.c", "ts_c2ada.c", "ts_dcmplx.c",
"ts_explore_poles.c", "ts_dc_determinant.c",
"ts_use_syspool.c", "ts_use_celcon.c", "ts_pieri_solver.c",
"root_count.c", "main.cpp", "ts_c2phc.c",
"ts_hermite.c", "ts_dc_inverse.c", "ts_phc_sol_rw.c",
"pass_poly.c", "ts_use_solpool.c", "ts_realization.c",
"read_input.c", "ts_use_c2fac.c",
"ts_multiply.c", "ts_interpolation.c", "ts_getsys.c",
"ts_c2phc.c", "ts_use_solcon.c", "ts_poly_inverse.c",
"ts_phc_sys_rw.c" , "ts_use_c2pieri.c",
"ts_inputData.cpp", "ts_outputData.cpp", "getsys2.c"
);
for Languages use ("Ada", "C", "C++");
when others =>
for Source_Dirs use
(
"src/Ada/Main", "src/Ada/System", "src/Ada/System/Unix_Timer",
"src/Ada/Math_Lib/Numbers", "src/Ada/Math_Lib/QD",
"src/Ada/Math_Lib/Vectors", "src/Ada/Math_Lib/Matrices",
"src/Ada/Math_Lib/Reduction", "src/Ada/Math_Lib/Divisors",
"src/Ada/Math_Lib/Polynomials", "src/Ada/Math_Lib/Functions",
"src/Ada/Math_Lib/Supports", "src/Ada/Math_Lib/Series",
"src/Ada/Math_Lib/Circuits", "src/Ada/Math_Lib/Laurent",
"src/Ada/Deformations/Solutions", "src/Ada/Deformations/Homotopy",
"src/Ada/Deformations/Newton", "src/Ada/Deformations/Curves",
"src/Ada/Deformations/End_Games",
"src/Ada/Deformations/Trackers", "src/Ada/Deformations/Sweep",
"src/Ada/Deformations/Continuation",
"src/Ada/Root_Counts/Product", "src/Ada/Root_Counts/Binomials",
"src/Ada/Root_Counts/Implift", "src/Ada/Root_Counts/Stalift",
"src/Ada/Root_Counts/Dynlift", "src/Ada/Root_Counts/Symmetry",
"src/Ada/Root_Counts/MixedVol", "src/Ada/Root_Counts/Puiseux",
"src/Ada/Root_Counts/DEMiCs",
"src/Ada/Schubert/SAGBI", "src/Ada/Schubert/Pieri",
"src/Ada/Schubert/Induction",
"src/Ada/Components/Samplers", "src/Ada/Components/Interpolators",
"src/Ada/Components/Factorization", "src/Ada/Components/Decomposition",
"src/Ada/Components/Solver", "src/Ada/Components/Tropical",
"src/Ada/CtoPHC/Types", "src/Ada/CtoPHC/Structures",
"src/Ada/CtoPHC/Funky", "src/Ada/CtoPHC/State", "src/Ada/Tasking",
"src/Feedback"
);
for Excluded_Source_Files use
(
"ts_use_syscon.c",
"corecount.c", "corecountwindows.c",
"ts_smith.c", "ts_roots.c", "ts_timer.c", "ts_gcd.c",
-- to avoid multiple mains ...
"ts_divide.c", "ts_explore_Cpoles.c" ,
"ts_feedback.c", "ts_cosupoly.c", "ts_cosupsys.c",
"ts_c2str.c", "ts_c2ada.c", "ts_dcmplx.c",
"ts_explore_poles.c", "ts_dc_determinant.c",
"ts_use_syspool.c", "ts_use_celcon.c", "ts_pieri_solver.c",
"root_count.c", "main.cpp", "ts_c2phc.c",
"ts_hermite.c", "ts_dc_inverse.c", "ts_phc_sol_rw.c",
"pass_poly.c", "ts_use_solpool.c", "ts_realization.c",
"read_input.c", "ts_use_c2fac.c",
"ts_multiply.c", "ts_interpolation.c", "ts_getsys.c",
"ts_c2phc.c", "ts_use_solcon.c", "ts_poly_inverse.c",
"ts_phc_sys_rw.c" , "ts_use_c2pieri.c",
"ts_inputData.cpp", "ts_outputData.cpp", "getsys2.c"
);
for Languages use ("Ada", "C++", "C");
end case;
for Object_Dir use "obj";
for Exec_Dir use "bin";
for Library_Dir use "lib";
for Library_Name use "PHCpack";
for Library_Kind use "dynamic";
for Library_Interface use
(
"standard_integer_numbers",
"c_integer_arrays", "c_double_arrays",
"phctop", "use_c2phc"
);
for Library_Standalone use "encapsulated";
package Compiler is
-- for Default_Switches ("Ada") use ("-gnatwa", "-gnatva");
for Default_Switches ("Ada") use ("-O3", "-gnatv", "-gnatp", "-gnatf");
for Switches ("use_c2phc.adb") use ("-c");
for Switches ("simplex.cpp") use
(
"-Dcompilewgpp=1", "-Dcompile4phc=1"
);
for Switches ("mvc.cpp") use
(
"-Dcompilewgpp=1", "-Dcompile4phc=1"
);
for Switches ("demicsrun.cpp") use
(
"-Dcompilewgpp=1", "-Dcompile4phc"
);
for Switches ("outputData.cpp") use ("-Dcompilewgpp=1");
end Compiler;
package Binder is
for Default_Switches ("Ada") use ("-n", "-Lada");
end Binder;
end phclib;