-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebui_ada_examples.gpr
More file actions
48 lines (39 loc) · 1.7 KB
/
webui_ada_examples.gpr
File metadata and controls
48 lines (39 loc) · 1.7 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
with "config/webui_ada_examples_config.gpr";
with "../webui_ada/webui_ada.gpr";
project Webui_Ada_Examples is
for Source_Dirs use ("src/**", "config/");
for Object_Dir use "obj/" & Webui_Ada_Examples_Config.Build_Profile;
for Create_Missing_Dirs use "True";
for Exec_Dir use "bin";
for Main use ("hello.adb", "ag_charts.adb", "ag_thick.adb", "ag_grid.adb",
"ag_grid_2.adb", "ag_grid_charts.adb",
"call_ada_from_js", "call_js_from_ada");
for Languages use ("Ada", "JavaScript", "HTML");
package Naming is
for Body_Suffix ("JavaScript") use ".js";
for Spec_Suffix ("HTML") use ".html";
end Naming;
package Compiler is
for Default_Switches ("Ada") use Webui_Ada_Examples_Config.Ada_Compiler_Switches;
for Driver ("JavaScript") use "";
for Driver ("HTML") use "";
end Compiler;
package Binder is
for Switches ("Ada") use ("-Es"); -- Symbolic traceback
end Binder;
package Linker is
-- for Required_Switches use ( "-L/home/curator/Projects/webui/dist/without_tls", "-lwebui-2-static");
for Required_Switches use ( "-L../../../webui/dist", "-lwebui-2-static");
--
-- Position Independent Executable (PIE) Enabled by Default on Linux
-- (https://docs.adacore.com/gnat_ugn-docs/html/
-- gnat_ugn/gnat_ugn/platform_specific_information.html#
-- position-independent-executable-pie-enabled-by-default-on-linux)
-- Issue: relocation R_X86_64_32 against
-- Workaround: to disable PIE during the link
-- for Switches ("ada") use ("-no-pie");
end Linker;
package Install is
for Artifacts (".") use ("share");
end Install;
end Webui_Ada_Examples;