forked from google/certificate-transparency
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DEPS
110 lines (101 loc) · 3.9 KB
/
DEPS
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
deps = {
"openssl": "https://github.com/openssl/openssl.git@OpenSSL_1_1_1c",
"gflags": "https://github.com/gflags/gflags.git@v2.1.2",
"glog": "https://github.com/benlaurie/glog.git@0.3.4-fix",
"googlemock": "https://github.com/google/googlemock.git@release-1.7.0",
"googlemock/gtest": "https://github.com/google/googletest.git@release-1.7.0",
"json-c": "https://github.com/AlCutter/json-c.git@json-c-0.12-20140410-fix",
"libevent": "https://github.com/libevent/libevent.git@release-2.1.10-stable",
"libevhtp": "https://github.com/criticalstack/libevhtp.git@1.2.18",
"protobuf": "https://github.com/google/protobuf.git@v3.8.0",
"protobuf/gtest": "https://github.com/google/googletest.git@release-1.7.0",
"tcmalloc": "https://github.com/gperftools/gperftools.git@gperftools-2.4"
}
# Can't use deps_os for this because it doesn't know about freebsd :/
deps_overrides = {
"freebsd10": {
"googlemock": "https://github.com/AlCutter/googlemock-fbsd.git@1.7.0",
"googlemock/gtest": "https://github.com/AlCutter/googletest-fbsd.git@1.7.0",
"protobuf": "https://github.com/benlaurie/protobuf.git@2.6.1-fix",
"protobuf/gtest": "https://github.com/AlCutter/googletest-fbsd.git@1.7.0",
"libunwind": "git://git.sv.gnu.org/libunwind.git@v1.1",
},
"linux2": {
"libunwind": "git://git.sv.gnu.org/libunwind.git@v1.1",
},
"darwin": {
"ldns": "https://github.com/benlaurie/ldns.git@1.6.17-fix",
}
}
make_os = {
"freebsd10": "gmake",
"darwin": "gnumake"
}
import os
import multiprocessing
import sys
print("Host platform is %s" % sys.platform)
if sys.platform in deps_overrides:
print("Have %d overrides for platform" % len(deps_overrides[sys.platform]))
deps.update(deps_overrides[sys.platform])
if sys.platform in make_os:
make = make_os[sys.platform]
else:
make = "make"
num_cores = multiprocessing.cpu_count()
print("Building with %s" % "openssl")
print("Using make %s with %d jobs" % (make, num_cores))
here = os.getcwd()
hooks = [
{
"name": "libunwind",
"pattern": "^libunwind/",
"action": [ make, "-f", os.path.join(here, "certificate-transparency/build.gclient"), "_libunwind" ],
},
{
"name": "tcmalloc",
"pattern": "^tcmalloc/",
"action": [ make, "-f", os.path.join(here, "certificate-transparency/build.gclient"), "_tcmalloc" ],
},
{
"name": "ssl",
"pattern": "openssl/",
"action": [ make, "-f", os.path.join(here, "certificate-transparency/build.gclient"), "_" + "openssl" ],
},
{
"name": "libevent",
"pattern": "^libevent/",
"action": [ make, "-f", os.path.join(here, "certificate-transparency/build.gclient"), "_libevent" ],
},
{
"name": "libevhtp",
"pattern": "^libevhtp/",
"action": [ make, "-f", os.path.join(here, "certificate-transparency/build.gclient"), "_libevhtp" ],
},
{
"name": "gflags",
"pattern": "^gflags/",
"action": [ make, "-f", os.path.join(here, "certificate-transparency/build.gclient"), "_gflags" ],
},
{
"name": "glog",
"pattern": "^glog/",
"action": [ make, "-f", os.path.join(here, "certificate-transparency/build.gclient"), "_glog" ],
},
{
"name": "protobuf",
"pattern": "^protobuf/",
"action": [ make, "-f", os.path.join(here, "certificate-transparency/build.gclient"), "_protobuf" ],
},
{
"name": "json-c",
"pattern": "^json-c/",
"action": [ make, "-f", os.path.join(here, "certificate-transparency/build.gclient"), "_json-c" ],
}]
# Do this last
hooks.append(
{
"name": "ct",
"pattern": "^certificate-transparency/",
"action": [ make, "-j", str(num_cores), "-f", os.path.join(here, "certificate-transparency/build.gclient"), "_configure-ct" ],
})