forked from stcarrez/ada-util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
util_http_curl.gpr.in
53 lines (38 loc) · 1.33 KB
/
util_http_curl.gpr.in
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
with "config";
with "util";
project Util_Http_Curl is
Version := Util.Version;
Library_Dir := Util.Library_Dir;
Has_Curl : Config.Yes_No := "yes";
Library_Type : Config.Library_Type_Type := Util.Library_Type;
case Has_Curl is
when "yes" =>
for Source_Dirs use ("src/http/curl");
for Library_Name use "ada_util_curl";
for Library_Kind use Library_Type;
for Library_Version use "lib" & Project'Library_Name & ".so." & Version;
for Library_Options use (@UTIL_CURL_LIBRARY_OPTIONS@);
for Library_Dir use "lib/util-curl/" & Project'Library_Kind;
for Object_Dir use "obj/util-curl/" & Project'Library_Kind;
case Library_Type is
when "relocatable" =>
for Library_Interface use ("Util.Http.Clients.Curl");
when others =>
null;
end case;
when "no" =>
for Source_Dirs use ();
end case;
package Linker is
case Has_Curl is
when "yes" =>
for Linker_Options use ("-lcurl");
when "no" =>
null;
end case;
end Linker;
package Builder renames Config.Builder;
package Compiler renames Config.Compiler;
package Binder renames Config.Binder;
package Ide renames Config.Ide;
end Util_Http_Curl;