forked from AdaCore/templates-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
templates_parser.gpr
93 lines (75 loc) · 3.39 KB
/
templates_parser.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
------------------------------------------------------------------------------
-- Templates Parser --
-- --
-- Copyright (C) 1999-2022, AdaCore --
-- --
-- This is free software; you can redistribute it and/or modify it --
-- under terms of the GNU General Public License as published by the --
-- Free Software Foundation; either version 3, or (at your option) any --
-- later version. This software is distributed in the hope that it will --
-- be useful, but WITHOUT ANY WARRANTY; without even the implied warranty --
-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --
-- General Public License for more details. --
-- --
-- You should have received a copy of the GNU General Public License --
-- distributed with this software; see file COPYING3. If not, go --
-- to http://www.gnu.org/licenses for a complete copy of the license. --
------------------------------------------------------------------------------
with "tp_shared";
with "tp_xmlada";
library project Templates_Parser is
So_Ext := "";
case TP_Shared.Target_OS is
when "Windows" =>
So_Ext := ".dll";
when "macOS" =>
So_Ext := ".dylib";
when others =>
So_Ext := ".so";
end case;
for Source_Dirs use ("src");
for Object_Dir use TP_Shared.Build_Dir & "/obj";
for Library_Dir use TP_Shared.Build_Dir & "/lib";
for Library_Name use "templates_parser";
for Library_Kind use TP_Shared.Library_Type;
for Library_Version use "libtemplates_parser-" & TP_Shared.Version & So_Ext;
case TP_Shared.Library_Type is
when "relocatable" =>
-- Put options like --as-needed before options like -l.
for Leading_Library_Options use TP_Shared.Ldflags;
when others =>
null;
end case;
case TP_Shared.XMLAda is
when "Installed" =>
for Source_Dirs use project'Source_Dirs & ("xsrc");
when "Disabled" =>
null;
end case;
package Naming is
for Specification ("Templates_Parser.Configuration")
use "templates_parser-configuration__standalone.ads";
for Implementation ("Templates_Parser.Input")
use "templates_parser-input__standalone.adb";
case TP_Shared.Tasking is
when "No_Tasking" =>
for Implementation ("Templates_Parser_Tasking")
use "templates_parser_tasking__no_tasking.adb";
when "Standard_Tasking" =>
for Implementation ("Templates_Parser_Tasking")
use "templates_parser_tasking__standard_tasking.adb";
end case;
end Naming;
package Compiler is
for Default_Switches ("Ada")
use TP_Shared.Compiler'Default_Switches ("Ada");
end Compiler;
package Binder renames TP_Shared.Binder;
package Builder renames TP_Shared.Builder;
package Ide renames TP_Shared.Ide;
package Install is
for Artifacts ("share/doc/templates_parser") use ("docs/build/html");
for Artifacts ("share/doc/templates_parser/pdf")
use ("docs/build/latex/*.pdf");
end Install;
end Templates_Parser;