blob: 02b3331f4f24a0bb9270e7c1827195971d91615e (
plain)
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
|
# file : libca-certificates-curl/buildfile
# license : Mozilla Public License 2.0; see accompanying LICENSE file
define pem: file
pem{*}: extension = pem
pem{*}: install = data/
lib{ca-certificates-curl}: {h c}{** -ca-certificates-*installed -version} \
{h }{version } \
{pem}{cacert }
lib{ca-certificates-curl}: c{ca-certificates-installed}: for_install = true
lib{ca-certificates-curl}: c{ca-certificates-uninstalled}: for_install = false
# Include the generated version header into the distribution (so that we don't
# pick up an installed one) and don't remove it when cleaning in src (so that
# clean results in a state identical to distributed).
#
h{version}: in{version} $src_root/manifest
{
dist = true
clean = ($src_root != $out_root)
}
# Build options.
#
c.poptions =+ "-I$out_root" "-I$src_root"
obja{*}: c.poptions += -DLIBCA_CERTIFICATES_CURL_STATIC_BUILD
objs{*}: c.poptions += -DLIBCA_CERTIFICATES_CURL_SHARED_BUILD
# While these object files should only be linked in their respective
# cases (installing/not installing), they will be compiled even in
# the other cases.
#
{obja objs}{ca-certificates-uninstalled}: c.poptions += \
-DCA_CERTIFICATES_BUNDLE_PATH=\"$regex.replace(\
$src_base/cacert.pem, '\\', '\\\\')\"
if ($install.root != [null])
{obja objs}{ca-certificates-installed}: c.poptions += \
-DCA_CERTIFICATES_BUNDLE_PATH=\"$regex.replace(\
$install.resolve($install.data)/cacert.pem, '\\', '\\\\')\"
# Export options.
#
lib{ca-certificates-curl}: cc.export.poptions = "-I$out_root" "-I$src_root"
liba{ca-certificates-curl}: cc.export.poptions += -DLIBCA_CERTIFICATES_CURL_STATIC
libs{ca-certificates-curl}: cc.export.poptions += -DLIBCA_CERTIFICATES_CURL_SHARED
# For pre-releases use the complete version to make sure they cannot be used
# in place of another pre-release or the final version. See the version module
# for details on the version.* variable values.
#
if $version.pre_release
lib{ca-certificates-curl}: bin.lib.version = @"-$version.project_id"
else
lib{ca-certificates-curl}: bin.lib.version = @"-$version.major.$version.minor"
# Install into the libca-certificates-curl/ subdirectory of, say, /usr/include/
# recreating subdirectories.
#
{h}{*}:
{
install = include/libca-certificates-curl/
install.subdirs = true
}
|