Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
88064543
Commit
88064543
authored
Mar 30, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-ekam script.
parent
cb44370e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
4 deletions
+103
-4
.gitignore
.gitignore
+3
-0
Makefile.ekam
c++/Makefile.ekam
+6
-4
setup-ekam.sh
c++/setup-ekam.sh
+94
-0
No files found.
.gitignore
View file @
88064543
...
...
@@ -21,6 +21,9 @@
/c++/tmp/
/c++/bin/
# setup-ekam.sh
/c++/.ekam
# Jekyll-generated site
/doc/_site
c++/Makefile.ekam
View file @
88064543
.PHONY
:
all once continuous continuous-opt clean
EKAM
=
`
which ekam
||
echo
.ekam/bin/ekam
`
all
:
echo
"You probably accidentally told Eclipse to build. Stopping."
once
:
CXX
=
g++-4.7
CXXFLAGS
=
'-std=gnu++0x -O2 -DNDEBUG -Wall'
LIBS
=
'-lz -pthread'
ekam
-j6
CXX
=
g++-4.7
CXXFLAGS
=
'-std=gnu++0x -O2 -DNDEBUG -Wall'
LIBS
=
'-lz -pthread'
$(EKAM)
-j6
continuous
:
CXX
=
g++-4.7
CXXFLAGS
=
'-std=gnu++0x -g -Wall'
LIBS
=
'-lz -pthread'
ekam
-j6
-c
-n
:51315
CXX
=
g++-4.7
CXXFLAGS
=
'-std=gnu++0x -g -Wall'
LIBS
=
'-lz -pthread'
$(EKAM)
-j6
-c
-n
:51315
continuous-opt
:
CXX
=
g++-4.7
CXXFLAGS
=
'-std=gnu++0x -O2 -DNDEBUG -Wall'
LIBS
=
'-lz -pthread'
ekam
-j6
-c
-n
:51315
CXX
=
g++-4.7
CXXFLAGS
=
'-std=gnu++0x -O2 -DNDEBUG -Wall'
LIBS
=
'-lz -pthread'
$(EKAM)
-j6
-c
-n
:51315
continuous-opt3
:
CXX
=
g++-4.7
CXXFLAGS
=
'-std=gnu++0x -O3 -DNDEBUG -Wall'
LIBS
=
'-lz -pthread'
ekam
-j6
-c
-n
:51315
CXX
=
g++-4.7
CXXFLAGS
=
'-std=gnu++0x -O3 -DNDEBUG -Wall'
LIBS
=
'-lz -pthread'
$(EKAM)
-j6
-c
-n
:51315
clean
:
rm
-rf
bin lib tmp
...
...
c++/setup-ekam.sh
0 → 100755
View file @
88064543
#! /bin/bash
set
-euo
pipefail
if
!
uname
|
grep
-iq
Linux
;
then
echo
"Sorry, Ekam only works on Linux right now."
>
&2
exit
1
fi
echo
-n
"Looking for compiler... "
if
[
"x
${
CXX
:-}
"
==
"x"
]
;
then
if
!
(
g++
--version
|
grep
-q
' 4[.][789][.]'
)
;
then
if
which g++-4.7
>
/dev/null
;
then
CXX
=
g++-4.7
elif
which g++-4.8
>
/dev/null
;
then
CXX
=
g++-4.8
else
echo
"none"
echo
"Please install G++ 4.7 or better. Or, set the environment variable CXX "
>
&2
echo
"to a compiler that you think will work."
>
&2
exit
1
fi
else
CXX
=
g++
fi
fi
echo
"
$CXX
"
export
CXX
if
[
!
-e
.ekam
]
;
then
echo
"================================================================================"
echo
"Fetching Ekam and Protobuf code..."
echo
"================================================================================"
hg clone https://code.google.com/p/kentons-code/ .ekam
# You don't want these.
rm
-rf
.ekam/src/modc .ekam/src/evlan
fi
if
[
!
-e
.ekam/src/protobuf
]
;
then
echo
"================================================================================"
echo
"Fetching Protobuf code..."
echo
"================================================================================"
svn checkout http://protobuf.googlecode.com/svn/tags/2.5.0/ .ekam/src/protobuf
fi
if
[
!
-e
.ekam/src/protobuf/src/config.h
]
;
then
echo
"================================================================================"
echo
"Configuring Protobuf..."
echo
"================================================================================"
pushd
.ekam/src/protobuf
>
/dev/null
./autogen.sh
./configure
cp
config.h src
make maintainer-clean
popd
fi
if
!
which ekam
>
/dev/null
;
then
if
[
!
-e
.ekam/bin/ekam
]
;
then
echo
"================================================================================"
echo
"Bootstrapping Ekam..."
echo
"================================================================================"
pushd
.ekam
>
/dev/null
./bootstrap.sh
popd
fi
else
echo
"================================================================================"
echo
"Using already-installed ekam binary:
$(
which ekam
)
"
echo
"================================================================================"
fi
if
[
!
-e
src/base
]
;
then
ln
-s
../.ekam/src/base src/base
fi
if
[
!
-e
src/os
]
;
then
ln
-s
../.ekam/src/os src/os
fi
if
[
!
-e
src/ekam
]
;
then
ln
-s
../.ekam/src/ekam src/ekam
fi
if
[
!
-e
src/protobuf
]
;
then
ln
-s
../.ekam/src/protobuf src/protobuf
fi
echo
"================================================================================"
echo
"All done..."
echo
"================================================================================"
echo
"Try:"
echo
" make -f Makefile.ekam once"
echo
" make -f Makefile.ekam continuous"
echo
" make -f Makefile.ekam continuous-opt"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment