forked from google/certificate-transparency
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDEPS
158 lines (146 loc) · 5.97 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
vars = {
# Change this variable to the name of one of the alternative SSL
# implementations below.
# If you change this in an existing client, you should probably rm -fr
# all the deps and rebuild everything from scratch.
"ssl_impl": "openssl",
# SSL implementation alternatives:
"openssl": "https://github.com/openssl/openssl.git@OpenSSL_1_0_2d",
"boringssl": "https://boringssl.googlesource.com/boringssl.git@2883"
}
deps = {
"openssl": "https://github.com/openssl/openssl.git@OpenSSL_1_0_2d",
"gflags": "https://github.com/gflags/[email protected]",
"glog": "https://github.com/benlaurie/[email protected]",
"googlemock": "https://github.com/google/[email protected]",
"googlemock/gtest": "https://github.com/google/[email protected]",
"json-c": "https://github.com/AlCutter/[email protected]",
"ldns": "https://github.com/benlaurie/[email protected]",
"leveldb": "https://github.com/google/[email protected]",
"libevent": "https://github.com/libevent/[email protected]",
"libevhtp": "https://github.com/RJPercival/libevhtp.git@a89d9b3f9fdf2ebef41893b3d5e4466f4b0ecfda",
"certificate-transparency/third_party/objecthash":
"https://github.com/benlaurie/objecthash.git@798f66bd8c5313da226aa7a60c114147910a7407",
"protobuf": "https://github.com/google/[email protected]",
"protobuf/gtest": "https://github.com/google/[email protected]",
"libsnappy": "https://github.com/google/[email protected]",
# Randomly chosen github mirror
"sqlite3-export": "http://repo.or.cz/sqlite-export.git",
"sqlite3": "http://repo.or.cz/[email protected]",
"tcmalloc": "https://github.com/gperftools/[email protected]"
}
# Can't use deps_os for this because it doesn't know about freebsd :/
deps_overrides = {
"freebsd10": {
"googlemock": "https://github.com/AlCutter/[email protected]",
"googlemock/gtest": "https://github.com/AlCutter/[email protected]",
"protobuf": "https://github.com/benlaurie/[email protected]",
"protobuf/gtest": "https://github.com/AlCutter/[email protected]",
"libunwind": "git://git.sv.gnu.org/[email protected]",
},
"linux2": {
"libunwind": "git://git.sv.gnu.org/[email protected]",
},
"darwin": {
"ldns": "https://github.com/benlaurie/[email protected]",
}
}
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": "sqlite3",
"pattern": "^sqlite3/",
"action": [ make, "-f", os.path.join(here, "certificate-transparency/build.gclient"), "_sqlite3" ],
},
{
"name": "libsnappy",
"pattern": "^libsnappy/",
"action": [ make, "-f", os.path.join(here, "certificate-transparency/build.gclient"), "_libsnappy" ],
},
{
"name": "leveldb",
"pattern": "^leveldb/",
"action": [ make, "-f", os.path.join(here, "certificate-transparency/build.gclient"), "_leveldb" ],
},
{
"name": "json-c",
"pattern": "^json-c/",
"action": [ make, "-f", os.path.join(here, "certificate-transparency/build.gclient"), "_json-c" ],
},
{
"name": "objecthash",
"pattern": "^certificate-transparency/third_party/objecthash/",
"action": [ make, "-f", os.path.join(here, "certificate-transparency/build.gclient"), "_objecthash" ],
}]
# Currently only Openssl is supported for building the DNS server due to LDNS's dependency.
hooks.append(
{
"name": "ldns",
"pattern": "^ldns/",
"action": [ make, "-f", os.path.join(here, "certificate-transparency/build.gclient"), "_ldns" ],
})
# 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" ],
})