File tree Expand file tree Collapse file tree 6 files changed +24
-15
lines changed Expand file tree Collapse file tree 6 files changed +24
-15
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,10 @@ include_directories(${Boost_INCLUDE_DIRS})
118
118
# We use std:: threads
119
119
find_package (Threads ) # this will set ${CMAKE_THREAD_LIBS_INIT} (ie pthreads)
120
120
121
+
122
+ # double-conversion
123
+ find_path (DOUBLECONV_INCLUDE_DIR double-conversion/double-conversion.h )
124
+ find_library (DOUBLECONV_LIBRARY double-conversion )
121
125
# Glog
122
126
find_path (GLOG_INCLUDE_DIR glog/logging.h )
123
127
find_library (GLOG_LIBRARY glog )
@@ -134,6 +138,7 @@ target_link_libraries(wdt_min
134
138
${GLOG_LIBRARY}
135
139
${GFLAGS_LIBRARY}
136
140
${Boost_LIBRARIES}
141
+ ${DOUBLECONV_LIBRARY}
137
142
${OPENSSL_CRYPTO_LIBRARY}
138
143
${CMAKE_THREAD_LIBS_INIT} # Must be last to avoid link errors
139
144
)
@@ -195,12 +200,13 @@ if (NOT FOLLY_HAVE_BITS_FUNCTEXCEPT_H)
195
200
endif ()
196
201
197
202
add_library (folly4wdt ${FOLLY_CPP_SRC} )
198
- target_link_libraries (folly4wdt ${GLOG_LIBRARY} )
203
+ target_link_libraries (folly4wdt ${GLOG_LIBRARY} ${DOUBLECONV_LIBRARY} )
199
204
200
205
# Order is important - inside fb we want the above
201
206
# folly-config.h to be picked up instead of the fbcode one
202
207
include_directories (${CMAKE_CURRENT_BINARY_DIR} )
203
208
include_directories (${FOLLY_SOURCE_DIR} )
209
+ include_directories (${DOUBLECONV_INCLUDE_DIR} )
204
210
include_directories (${GLOG_INCLUDE_DIR} )
205
211
include_directories (${GFLAGS_INCLUDE_DIR} )
206
212
include_directories (${CMAKE_CURRENT_SOURCE_DIR} /.. )
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ and avoid linking errors later or getting a wdt without flags working*
56
56
git clone https://github.com/schuhschuh/gflags.git
57
57
mkdir gflags/build
58
58
cd gflags/build
59
- cmake -D GFLAGS_NAMESPACE =google -D BUILD_SHARED_LIBS =on ..
59
+ cmake -DGFLAGS_NAMESPACE =google -DBUILD_SHARED_LIBS =on ..
60
60
make -j && sudo make install
61
61
```
62
62
@@ -71,7 +71,8 @@ make -j && sudo make install
71
71
* If double-conversion isn't available via apt-get:*
72
72
```
73
73
git clone https://github.com/floitsch/double-conversion.git
74
- cd double-conversion; cmake . ; make -j && sudo make install
74
+ cd double-conversion; cmake . -DBUILD_SHARED_LIBS=on
75
+ make -j && sudo make install
75
76
```
76
77
77
78
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
-
2
+ # Script to setup the travis build env - changes here are likely needed
3
+ # in wdt_cont_build_setup*.sh too
3
4
set -x
4
5
set -e
5
6
@@ -32,9 +33,9 @@ $HOME/bin/openssl version
32
33
ldd $HOME /bin/openssl
33
34
export OPENSSL_ROOT_DIR=$HOME
34
35
git clone https://github.com/floitsch/double-conversion.git
35
- (cd double-conversion; cmake -DCMAKE_INSTALL_PREFIX=$HOME . ; make -j 4 && make install)
36
+ (cd double-conversion; cmake -DBUILD_SHARED_LIBS=on - DCMAKE_INSTALL_PREFIX=$HOME . ; make -j 4 && make install)
36
37
git clone https://github.com/schuhschuh/gflags.git
37
- (mkdir gflags/build; cd gflags/build; cmake -DCMAKE_INSTALL_PREFIX=$HOME -D GFLAGS_NAMESPACE =google -D BUILD_SHARED_LIBS =on .. && make -j 4 && make install)
38
+ (mkdir gflags/build; cd gflags/build; cmake -DCMAKE_INSTALL_PREFIX=$HOME -DGFLAGS_NAMESPACE =google -DBUILD_SHARED_LIBS =on .. && make -j 4 && make install)
38
39
svn checkout http://google-glog.googlecode.com/svn/trunk/ glog
39
40
( cd glog && ./configure --with-gflags=$HOME --prefix=$HOME && make -j 4 && make install )
40
41
git clone https://github.com/facebook/folly.git
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
-
2
+ # Sets up MacOS build environment (for travis but can be used on other mac too)
3
3
set -x
4
4
# set -e
5
5
6
- date
6
+ date
7
7
uname -a
8
8
echo $HOSTNAME
9
9
mkdir $HOME /bin || true
@@ -22,13 +22,13 @@ which cmake
22
22
cmake --version
23
23
git clone https://github.com/floitsch/double-conversion.git
24
24
mkdir double-conversion-build
25
- (cd double-conversion-build; cmake -DCMAKE_INSTALL_PREFIX=$HOME ../double-conversion; make -j 4 && make install)
25
+ (cd double-conversion-build; cmake -DBUILD_SHARED_LIBS=on - DCMAKE_INSTALL_PREFIX=$HOME ../double-conversion; make -j 4 && make install)
26
26
git clone https://github.com/schuhschuh/gflags.git
27
- (mkdir gflags-build; cd gflags-build; cmake -DCMAKE_INSTALL_PREFIX=$HOME -D GFLAGS_NAMESPACE =google -D BUILD_SHARED_LIBS =on ../gflags && make -j 4 && make install)
27
+ (mkdir gflags-build; cd gflags-build; cmake -DCMAKE_INSTALL_PREFIX=$HOME -DGFLAGS_NAMESPACE =google -DBUILD_SHARED_LIBS =on ../gflags && make -j 4 && make install)
28
28
svn checkout http://google-glog.googlecode.com/svn/trunk/ glog
29
29
( cd glog && ./configure --with-gflags=$HOME --prefix=$HOME && make -j 4 && make install )
30
- git clone https://github.com/facebook/folly.git
31
- pwd ; ls -l
30
+ git clone https://github.com/facebook/folly.git
31
+ pwd ; ls -l
32
32
cd wdt
33
33
# to avoid svn clone errors of gmock later:
34
34
( echo p | svn list https://googlemock.googlecode.com ) || true
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# A lot of this is facebook specific but can give an idea of how
3
- # to setup custom tests for WDT
3
+ # to setup custom tests for WDT - Very similar to travis_linux.sh
4
4
# run this once and then _run will run a loop and email results
5
5
set -x
6
6
while sh -c " g++ --version | fgrep 4.4." ; do
@@ -40,9 +40,9 @@ ls -l $BINDIR/cmake
40
40
41
41
# similar as travis_linux.sh
42
42
git clone https://github.com/floitsch/double-conversion.git
43
- (cd double-conversion; cmake -DCMAKE_INSTALL_PREFIX=$CDIR . ; make -j 16 && make install)
43
+ (cd double-conversion; cmake -DBUILD_SHARED_LIBS=on - DCMAKE_INSTALL_PREFIX=$CDIR . ; make -j 16 && make install)
44
44
git clone https://github.com/schuhschuh/gflags.git
45
- (mkdir gflags/build; cd gflags/build; cmake -DCMAKE_INSTALL_PREFIX=$CDIR -D GFLAGS_NAMESPACE =google -D BUILD_SHARED_LIBS =on .. && make -j 16 && make install)
45
+ (mkdir gflags/build; cd gflags/build; cmake -DCMAKE_INSTALL_PREFIX=$CDIR -DGFLAGS_NAMESPACE =google -DBUILD_SHARED_LIBS =on .. && make -j 16 && make install)
46
46
svn checkout http://google-glog.googlecode.com/svn/trunk/ glog
47
47
( cd glog && ./configure --with-gflags=$CDIR --prefix=$CDIR && make -j 16 && make install )
48
48
OPENSSL_VERSION=openssl-1.0.1q
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+ # Mac version of wdt_cont_build_setup.sh
2
3
set -x
3
4
set -e
4
5
CDIR=/data/users/${USER} _wdt_contbuild
You can’t perform that action at this time.
0 commit comments