-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponents.gpr
More file actions
418 lines (402 loc) · 17.3 KB
/
components.gpr
File metadata and controls
418 lines (402 loc) · 17.3 KB
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
with "strings_edit.gpr";
with "tables.gpr";
project Components is
type Object_Tracing_Mode is ("Off", "On");
Object_Tracing : Object_Tracing_Mode := external ("Traced_objects", "Off");
type Tasking_Mode is ("Multiple", "Single");
Tasking : Tasking_Mode := external ("Tasking", "Multiple");
type Atomic_Access_Mode is
( "Pragma-atomic",
"GCC-built-ins",
"GCC-long-offsets",
"auto"
);
Atomic_Access : Atomic_Access_Mode := external ("Atomic_Access", "auto");
Dir_List := ();
case Object_Tracing is
when "Off" =>
null;
when "On" =>
Dir_List := Dir_List & "gnat-debug";
end case;
case Tasking is
when "Multiple" =>
null;
when "Single" =>
Dir_List := Dir_List & "single-task";
end case;
Dir_List := Dir_List & ".";
case Tables.Target_OS is
when "Windows" | "Windows_NT" =>
for Languages use ("Ada");
Dir_List := Dir_List & "os/windows";
when "Linux" | "UNIX" | "auto" =>
for Languages use ("Ada", "C");
Dir_List := Dir_List & "os/linux";
when "OSX" =>
for Languages use ("Ada");
Dir_List := Dir_List & "os/pthreads";
when "FreeBSD" =>
for Languages use ("Ada");
Dir_List := Dir_List & "os/pthreads";
for Library_Options use ("-lpthread");
end case;
case Atomic_Access is
when "auto" =>
case Tables.Arch is
when "x86_64" | "aarch64" =>
Atomic_Access := "Pragma-atomic";
when "i686" | "armhf" | "auto" =>
Atomic_Access := "GCC-long-offsets";
end case;
when others =>
null;
end case;
case Atomic_Access is
when "Pragma-atomic" =>
Dir_List := Dir_List & "atomic-access/ada";
when "GCC-built-ins" =>
Dir_List := Dir_List & "atomic-access/gcc";
when "GCC-long-offsets" | "auto" =>
Dir_List := Dir_List & "atomic-access/gcc-long-offsets";
end case;
Object_Dir_Path := Strings_Edit.Object_Dir_Path;
for Object_Dir use Object_Dir_Path;
for Source_Dirs use Dir_List;
Files_List :=
( "backward_link_handles.ads",
"backward_link_handles-sets.ads",
"block_streams.adb",
"block_streams.ads",
"deposit_handles.ads",
"gamma.adb",
"generic_address_order.adb",
"generic_address_order.ads",
"generic_blackboard.adb",
"generic_blackboard.ads",
"generic_blackboard-generic_task_safe.adb",
"generic_blackboard-generic_task_safe.ads",
"generic_bounded_map.adb",
"generic_bounded_map.ads",
"generic_bounded_indefinite_map.adb",
"generic_bounded_indefinite_map.ads",
"generic_b_tree.adb",
"generic_b_tree.ads",
"generic_chebyshev_polynomials.adb",
"generic_chebyshev_polynomials.ads",
"generic_cubic_spline.adb",
"generic_cubic_spline.ads",
"generic_directed_graph.adb",
"generic_directed_graph.ads",
"generic_directed_weighted_graph.adb",
"generic_directed_weighted_graph.ads",
"generic_directed_graph.ads",
"generic_discrete_map.adb",
"generic_discrete_map.ads",
"generic_discrete_indefinite_map.adb",
"generic_discrete_indefinite_map.ads",
"generic_discrete_set.adb",
"generic_discrete_set.ads",
"generic_doubly_linked.ads",
"generic_doubly_linked_web-generic_list.adb",
"generic_doubly_linked_web-generic_list.ads",
"generic_doubly_linked_web.adb",
"generic_doubly_linked_web.ads",
"generic_fifo.adb",
"generic_fifo.ads",
"generic_fifo-generic_signaled.adb",
"generic_fifo-generic_signaled.ads",
"generic_indefinite_b_tree.adb",
"generic_indefinite_b_tree.ads",
"generic_indefinite_fifo.adb",
"generic_indefinite_fifo.ads",
"generic_indefinite_fifo-generic_signaled.adb",
"generic_indefinite_fifo-generic_signaled.ads",
"generic_indefinite_map.adb",
"generic_indefinite_map.ads",
"generic_indefinite_set.adb",
"generic_indefinite_set.ads",
"generic_map.adb",
"generic_map.ads",
"generic_segmented_stack.adb",
"generic_segmented_stack.ads",
"generic_random_sequence.adb",
"generic_random_sequence.ads",
"generic_set.adb",
"generic_set.ads",
"generic_stack.adb",
"generic_stack.ads",
"generic_unbounded_array.adb",
"generic_unbounded_array.ads",
"generic_unbounded_ptr_array.adb",
"generic_unbounded_ptr_array.ads",
"ieee_754.adb",
"ieee_754.ads",
"ieee_754-decimal32.adb",
"ieee_754-decimal32.ads",
"ieee_754-decimal64.adb",
"ieee_754-decimal64.ads",
"ieee_754-decimal128.adb",
"ieee_754-decimal128.ads",
"ieee_754-edit.adb",
"ieee_754-edit.ads",
"ieee_754-generic_double_precision.adb",
"ieee_754-generic_double_precision.ads",
"ieee_754-generic_single_precision.adb",
"ieee_754-generic_single_precision.ads",
"ieee_754-floats.ads",
"ieee_754-long_floats.ads",
"long_float_chebyshev_polynomials.ads",
"long_float_cubic_spline.ads",
"long_float_waveform.ads",
"object.adb",
"object.ads",
"object-archived-handle.adb",
"object-archived-handle.ads",
"object-archived-iterators.adb",
"object-archived-iterators.ads",
"object-archived-lists.adb",
"object-archived-lists.ads",
"object-archived-sets.adb",
"object-archived-sets.ads",
"object-archived.adb",
"object-archived.ads",
"object-handle-generic_bounded_array.adb",
"object-handle-generic_bounded_array.ads",
"object-handle-generic_handle_set.adb",
"object-handle-generic_handle_set.ads",
"object-handle-generic_set.adb",
"object-handle-generic_set.ads",
"object-handle-generic_unbounded_array.adb",
"object-handle-generic_unbounded_array.ads",
"object-handle.adb",
"object-handle.ads",
"parsers-generic_argument-segmented_stack.adb",
"parsers-generic_argument-segmented_stack.ads",
"parsers-generic_argument.ads",
"parsers-generic_lexer-ada_2005_blanks.adb",
"parsers-generic_lexer-ada_2005_blanks.ads",
"parsers-generic_lexer-ada_blanks.adb",
"parsers-generic_lexer-ada_blanks.ads",
"parsers-generic_lexer-blanks.adb",
"parsers-generic_lexer-blanks.ads",
"parsers-generic_lexer-cpp_blanks.adb",
"parsers-generic_lexer-cpp_blanks.ads",
"parsers-generic_lexer.adb",
"parsers-generic_lexer.ads",
"parsers-generic_operation-generic_stack.adb",
"parsers-generic_operation-generic_stack.ads",
"parsers-generic_operation-segmented_stack.ads",
"parsers-generic_operation.ads",
"parsers-generic_source-get_ada_2005_blank.adb",
"parsers-generic_source-get_ada_2005_blank.ads",
"parsers-generic_source-get_ada_blank.adb",
"parsers-generic_source-get_ada_blank.ads",
"parsers-generic_source-get_blank.adb",
"parsers-generic_source-get_blank.ads",
"parsers-generic_source-get_cpp_blank.adb",
"parsers-generic_source-get_cpp_blank.ads",
"parsers-generic_source-get_text.adb",
"parsers-generic_source-get_text.ads",
"parsers-generic_source-get_token.adb",
"parsers-generic_source-get_token.ads",
"parsers-generic_source-get_utf8_text.adb",
"parsers-generic_source-get_utf8_text.ads",
"parsers-generic_source-keywords.adb",
"parsers-generic_source-keywords.ads",
"parsers-generic_source-text_io.adb",
"parsers-generic_source-text_io.ads",
"parsers-generic_source.ads",
"parsers-generic_token-generic_token_lexer.adb",
"parsers-generic_token-generic_token_lexer.ads",
"parsers-generic_token-segmented_lexer.ads",
"parsers-generic_token.adb",
"parsers-generic_token.ads",
"parsers-multiline_source-latin1_text_io.adb",
"parsers-multiline_source-latin1_text_io.ads",
"parsers-multiline_source-location_text_io.ads",
"parsers-multiline_source-standard_input.adb",
"parsers-multiline_source-standard_input.ads",
"parsers-multiline_source-stream_io.adb",
"parsers-multiline_source-stream_io.ads",
"parsers-multiline_source-text_io.adb",
"parsers-multiline_source-text_io.ads",
"parsers-multiline_source-wide_text_io.adb",
"parsers-multiline_source-wide_text_io.ads",
"parsers-multiline_source.adb",
"parsers-multiline_source.ads",
"parsers-string_source.adb",
"parsers-string_source.ads",
"parsers.ads",
"persistent-blocking_files.adb",
"persistent-blocking_files.ads",
"persistent-blocking_files-text_io.adb",
"persistent-blocking_files-text_io.ads",
"persistent-blocking_files-transactional.adb",
"persistent-blocking_files-transactional.ads",
"persistent-blocking_files-transactional-dump.adb",
"persistent-blocking_files-transactional-dump.ads",
"persistent-data_bank-index.adb",
"persistent-data_bank-index.ads",
"persistent-data_bank-index-text_io.adb",
"persistent-data_bank-index-text_io.ads",
"persistent-data_bank-mutexes.ads",
"persistent-data_bank-indexed.adb",
"persistent-data_bank-indexed.ads",
"persistent-data_bank-indexed-text_io.adb",
"persistent-data_bank-indexed-text_io.ads",
"persistent-data_bank-reference.adb",
"persistent-data_bank-reference.ads",
"persistent-data_bank.adb",
"persistent-data_bank.ads",
"persistent-directory.adb",
"persistent-directory.ads",
"persistent-handle.adb",
"persistent-handle.ads",
"persistent-memory_pools.adb",
"persistent-memory_pools.ads",
"persistent-memory_pools-dump.adb",
"persistent-memory_pools-dump.ads",
"persistent-memory_pools-streams-external_b_tree.adb",
"persistent-memory_pools-streams-external_b_tree.ads",
"persistent-memory_pools-streams-generic_external_b_tree.adb",
"persistent-memory_pools-streams-generic_external_b_tree.ads",
"persistent-memory_pools-streams-generic_external_ptr_b_tree.adb",
"persistent-memory_pools-streams-generic_external_ptr_b_tree.ads",
"persistent-memory_pools-streams-generic_float_waveform.adb",
"persistent-memory_pools-streams-generic_float_waveform.ads",
"persistent-memory_pools-streams-external_b_tree-generic_table.adb",
"persistent-memory_pools-streams-external_b_tree-generic_table.ads",
"persistent-memory_pools-streams-ieee_754.adb",
"persistent-memory_pools-streams-ieee_754.ads",
"persistent-memory_pools-streams.adb",
"persistent-memory_pools-streams.ads",
"persistent-single_file.adb",
"persistent-single_file.ads",
"persistent-single_file_keys.adb",
"persistent-single_file_keys.ads",
"persistent-single_file_keys-arrays.ads",
"persistent-single_file_keys-sets.ads",
"persistent-single_file-text_io.adb",
"persistent-single_file-text_io.ads",
"persistent-streams.adb",
"persistent-streams.ads",
"persistent-streams-dump.adb",
"persistent-streams-dump.ads",
"persistent.adb",
"persistent.ads",
"pipe_streams.adb",
"pipe_streams.ads",
"stack_storage-mark_and_release.adb",
"stack_storage-mark_and_release.ads",
"stack_storage.adb",
"stack_storage.ads",
"storage_streams.adb",
"storage_streams.ads",
"strings_edit-time_conversions.adb",
"strings_edit-time_conversions.ads",
"strings_edit-symmetric_serialization.adb",
"strings_edit-symmetric_serialization.ads",
"synchronization.ads",
"synchronization-events.adb",
"synchronization-events.ads",
"synchronization-generic_events_array.adb",
"synchronization-generic_events_array.ads",
"synchronization-generic_mutexes_array.adb",
"synchronization-generic_mutexes_array.ads",
"synchronization-generic_pulse_events.adb",
"synchronization-generic_pulse_events.ads",
"synchronization-interprocess.adb",
"synchronization-interprocess.ads",
"synchronization-interprocess-events.adb",
"synchronization-interprocess-events.ads",
"synchronization-interprocess-generic_blackboard.adb",
"synchronization-interprocess-generic_blackboard.ads",
"synchronization-interprocess-generic_fifo.adb",
"synchronization-interprocess-generic_fifo.ads",
"synchronization-interprocess-generic_shared_object.adb",
"synchronization-interprocess-generic_shared_object.ads",
"synchronization-interprocess-memory_pools.adb",
"synchronization-interprocess-memory_pools.ads",
"synchronization-interprocess-mutexes.adb",
"synchronization-interprocess-mutexes.ads",
"synchronization-interprocess-process_call_service.adb",
"synchronization-interprocess-process_call_service.ads",
"synchronization-interprocess-process_call_service-generic_call_service_arrays.adb",
"synchronization-interprocess-process_call_service-generic_call_service_arrays.ads",
"synchronization-interprocess-process_call_service-generic_dyadic_function.adb",
"synchronization-interprocess-process_call_service-generic_dyadic_function.ads",
"synchronization-interprocess-process_call_service-generic_dyadic_procedure.adb",
"synchronization-interprocess-process_call_service-generic_dyadic_procedure.ads",
"synchronization-interprocess-process_call_service-generic_parameterless_function.adb",
"synchronization-interprocess-process_call_service-generic_parameterless_function.ads",
"synchronization-interprocess-process_call_service-parameterless_procedure.adb",
"synchronization-interprocess-process_call_service-parameterless_procedure.ads",
"synchronization-interprocess-process_call_service-generic_ternary_function.adb",
"synchronization-interprocess-process_call_service-generic_ternary_function.ads",
"synchronization-interprocess-process_call_service-generic_ternary_procedure.adb",
"synchronization-interprocess-process_call_service-generic_ternary_procedure.ads",
"synchronization-interprocess-process_call_service-generic_unary_function.adb",
"synchronization-interprocess-process_call_service-generic_unary_function.ads",
"synchronization-interprocess-process_call_service-generic_unary_procedure.adb",
"synchronization-interprocess-process_call_service-generic_unary_procedure.ads",
"synchronization-interprocess-process_call_service-get_string.ads",
"synchronization-interprocess-process_call_service-manager.adb",
"synchronization-interprocess-process_call_service-manager.ads",
"synchronization-interprocess-process_call_service-process_string.ads",
"synchronization-interprocess-process_call_service-set_string.ads",
"synchronization-interprocess-pulse_events.adb",
"synchronization-interprocess-pulse_events.ads",
"synchronization-interprocess-streams.adb",
"synchronization-interprocess-streams.ads",
"synchronization-mutexes.adb",
"synchronization-mutexes.ads",
"synchronization-pulse_events.adb",
"synchronization-pulse_events.ads",
"system_errno.ads",
"tables-utf8_names.adb",
"tables-utf8_names.ads",
"universally_unique_identifiers.adb",
"universally_unique_identifiers.ads",
"universally_unique_identifiers-edit.adb",
"universally_unique_identifiers-edit.ads"
);
case Tables.Target_OS is
when "Windows" | "Windows_NT" =>
for Source_Files use
Files_List & ( "synchronization-windows.adb",
"synchronization-windows.ads"
);
when "Linux" | "UNIX" | "auto" =>
for Source_Files use
Files_List & ( "synchronization_linux.c",
"synchronization-linux.adb",
"synchronization-linux.ads"
);
when "OSX" | "FreeBSD" =>
for Source_Files use
Files_List & ( "synchronization-pthreads.adb",
"synchronization-pthreads.ads"
);
end case;
package Compiler renames Strings_Edit.Compiler;
package Binder renames Strings_Edit.Binder;
package Builder renames Strings_Edit.Builder;
package Linker is
case Tables.Target_OS is
when "Linux" =>
case Atomic_Access is
when "GCC-long-offsets" | "GCC-built-ins" =>
for Default_Switches ("Ada") use
Strings_Edit.Linker'Default_Switches ("Ada") &
"-latomic";
when others =>
for Default_Switches ("Ada") use
Strings_Edit.Linker'Default_Switches ("Ada");
end case;
when others =>
for Default_Switches ("Ada") use
Strings_Edit.Linker'Default_Switches ("Ada");
end case;
end Linker;
end Components;