11deps = {
22 "gflags" : "https://github.com/gflags/gflags.git@v2.1.2" ,
3- "glog" : "https://github.com/google/glog.git@v0.3.4" ,
4- "gperftools" : "https://github.com/gperftools/gperftools.git@gperftools-2.4" ,
3+ "glog" : "https://github.com/benlaurie/glog.git@0.3.4-fix" ,
54 "googlemock" : "https://github.com/google/googlemock.git@release-1.7.0" ,
65 "googlemock/gtest" : "https://github.com/google/googletest.git@release-1.7.0" ,
7- "json-c" : "https://github.com/json-c /json-c.git@json-c-0.12-20140410" ,
8- "ldns" : "git ://git.nlnetlabs.nl/ ldns@release- 1.6.17" ,
6+ "json-c" : "https://github.com/AlCutter /json-c.git@json-c-0.12-20140410-fix " ,
7+ "ldns" : "https ://github.com/benlaurie/ ldns.git@ 1.6.17-fix " ,
98 "leveldb" : "https://github.com/google/leveldb.git@v1.18" ,
109 "libevent" : "https://github.com/libevent/libevent.git@release-2.0.22-stable" ,
1110 "libevhtp" : "https://github.com/ellzey/libevhtp.git@ba4c44eed1fb7a5cf8e4deb236af4f7675cc72d5" ,
12- "openssl" : "https://github.com/benlaurie /openssl.git@fd5d2ba5e09f86e9ccf797dddd2d09ac8e197e35" , # 1.0.2-freebsd
13- "protobuf/gtest " : "https://github.com/google/googletest .git@release-1.5.0 " ,
14- "protobuf" : "https://github.com/google/protobuf .git@v2.6.1 " ,
11+ "openssl" : "https://github.com/openssl /openssl.git@OpenSSL_1_0_2d" ,
12+ "protobuf" : "https://github.com/google/protobuf .git@v2.6.1 " ,
13+ "protobuf/gtest " : "https://github.com/google/googletest .git@release-1.7.0 " ,
1514 # Randomly chosen github mirror
1615 "sqlite3-export" : "http://repo.or.cz/sqlite-export.git" ,
1716 "sqlite3" : "http://repo.or.cz/sqlite.git@version-3.8.10.1" ,
@@ -23,10 +22,12 @@ deps_overrides = {
2322 "freebsd10" : {
2423 "googlemock" : "https://github.com/AlCutter/googlemock-fbsd.git@1.7.0" ,
2524 "googlemock/gtest" : "https://github.com/AlCutter/googletest-fbsd.git@1.7.0" ,
26- "protobuf/gtest" : "https://github.com/benlaurie/googletest.git@1.5.0-fix" ,
27- "protobuf" : "https://github.com/benlaurie/protobuf.git@2.6.1-fix" ,
28- "glog" : "https://github.com/benlaurie/glog.git@0.3.4-fix" ,
29- "ldns" : "https://github.com/benlaurie/ldns.git@1.6.17-fix" ,
25+ "protobuf" : "https://github.com/benlaurie/protobuf.git@2.6.1-fix" ,
26+ "protobuf/gtest" : "https://github.com/AlCutter/googletest-fbsd.git@1.7.0" ,
27+ "libunwind" : "git://git.sv.gnu.org/libunwind.git@v1.1" ,
28+ },
29+ "linux2" : {
30+ "libunwind" : "git://git.sv.gnu.org/libunwind.git@v1.1" ,
3031 },
3132 "darwin" : {
3233 "ldns" : "https://github.com/benlaurie/ldns.git@1.6.17-fix" ,
@@ -39,6 +40,7 @@ make_os = {
3940}
4041
4142import os
43+ import multiprocessing
4244import sys
4345
4446print "Host platform is %s" % sys .platform
@@ -49,15 +51,78 @@ if sys.platform in make_os:
4951 make = make_os [sys .platform ]
5052else :
5153 make = "make"
52- print "Using make %s" % make
54+
55+ num_cores = multiprocessing .cpu_count ()
56+
57+ print "Using make %s with %d jobs" % (make , num_cores )
5358
5459here = os .getcwd ()
55- install = os .path .join (here , "install" )
5660
5761hooks = [
5862 {
59- "name" : "deps" ,
60- "pattern" : "." ,
61- "action" : [ make , "-f" , os .path .join (here , "certificate-transparency/build.gclient" ), "INSTALL_DIR=%s" % install ],
63+ "name" : "libunwind" ,
64+ "pattern" : "^libunwind/" ,
65+ "action" : [ make , "-f" , os .path .join (here , "certificate-transparency/build.gclient" ), "_libunwind" ],
66+ },
67+ {
68+ "name" : "tcmalloc" ,
69+ "pattern" : "^tcmalloc/" ,
70+ "action" : [ make , "-f" , os .path .join (here , "certificate-transparency/build.gclient" ), "_tcmalloc" ],
71+ },
72+ {
73+ "name" : "openssl" ,
74+ "pattern" : "^openssl/" ,
75+ "action" : [ make , "-f" , os .path .join (here , "certificate-transparency/build.gclient" ), "_openssl" ],
76+ },
77+ {
78+ "name" : "protobuf" ,
79+ "pattern" : "^protobuf/" ,
80+ "action" : [ make , "-f" , os .path .join (here , "certificate-transparency/build.gclient" ), "_protobuf" ],
81+ },
82+ {
83+ "name" : "libevent" ,
84+ "pattern" : "^libevent/" ,
85+ "action" : [ make , "-f" , os .path .join (here , "certificate-transparency/build.gclient" ), "_libevent" ],
86+ },
87+ {
88+ "name" : "libevhtp" ,
89+ "pattern" : "^libevhtp/" ,
90+ "action" : [ make , "-f" , os .path .join (here , "certificate-transparency/build.gclient" ), "_libevhtp" ],
6291 },
92+ {
93+ "name" : "gflags" ,
94+ "pattern" : "^gflags/" ,
95+ "action" : [ make , "-f" , os .path .join (here , "certificate-transparency/build.gclient" ), "_gflags" ],
96+ },
97+ {
98+ "name" : "glog" ,
99+ "pattern" : "^glog/" ,
100+ "action" : [ make , "-f" , os .path .join (here , "certificate-transparency/build.gclient" ), "_glog" ],
101+ },
102+ {
103+ "name" : "ldns" ,
104+ "pattern" : "^ldns/" ,
105+ "action" : [ make , "-f" , os .path .join (here , "certificate-transparency/build.gclient" ), "_ldns" ],
106+ },
107+ {
108+ "name" : "sqlite3" ,
109+ "pattern" : "^sqlite3/" ,
110+ "action" : [ make , "-f" , os .path .join (here , "certificate-transparency/build.gclient" ), "_sqlite3" ],
111+ },
112+ {
113+ "name" : "leveldb" ,
114+ "pattern" : "^leveldb/" ,
115+ "action" : [ make , "-f" , os .path .join (here , "certificate-transparency/build.gclient" ), "_leveldb" ],
116+ },
117+ {
118+ "name" : "json-c" ,
119+ "pattern" : "^json-c/" ,
120+ "action" : [ make , "-f" , os .path .join (here , "certificate-transparency/build.gclient" ), "_json-c" ],
121+ },
122+ # Do this last
123+ {
124+ "name" : "ct" ,
125+ "pattern" : "^certificate-transparency/" ,
126+ "action" : [ make , "-j" , str (num_cores ), "-f" , os .path .join (here , "certificate-transparency/build.gclient" ), "_configure-ct" ],
127+ }
63128]
0 commit comments