File tree Expand file tree Collapse file tree 5 files changed +37
-0
lines changed Expand file tree Collapse file tree 5 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ [submodule "test/lib/cmocka "]
2
+ path = test/lib/cmocka
3
+ url = git://git.cryptomilk.org/projects/cmocka.git
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ before_install:
40
40
- pip install --user cpp-coveralls
41
41
42
42
script :
43
+ - sh ./build-deps.sh
43
44
- sh ./autogen.sh
44
45
- if [[ "$CC" == "gcc" && "$CODE_COVERAGE" == "ON" ]]; then
45
46
./configure CFLAGS="-ftest-coverage -fprofile-arcs";
Original file line number Diff line number Diff line change @@ -88,6 +88,8 @@ MIT. check the LICENSE file
88
88
### Unix (Autotools)
89
89
90
90
```text
91
+ $ sh ./build-deps.sh # run only once (dependencies)
92
+ $
91
93
$ sh autogen.sh
92
94
$ ./configure
93
95
$ make
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ #
3
+ # Copyright (c), Recep Aslantas.
4
+ #
5
+ # MIT License (MIT), http://opensource.org/licenses/MIT
6
+ # Full license can be found in the LICENSE file
7
+ #
8
+
9
+ # check if deps are pulled
10
+ git submodule update --init --recursive
11
+
12
+ # fix glibtoolize
13
+
14
+ cd $( dirname " $0 " )
15
+
16
+ if [ " $( uname) " = " Darwin" ]; then
17
+ libtoolBin=$( which glibtoolize)
18
+ libtoolBinDir=$( dirname " ${libtoolBin} " )
19
+ ln -s $libtoolBin " ${libtoolBinDir} /libtoolize"
20
+ fi
21
+
22
+ # general deps: gcc make autoconf automake libtool cmake
23
+
24
+ # test - cmocka
25
+ cd ./test/lib/cmocka
26
+ mkdir build
27
+ cd build
28
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ..
29
+ make -j8
30
+ cd ../../../../
Submodule cmocka added at 5f61d2f
You can’t perform that action at this time.
0 commit comments