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
44f5f568
Unverified
Commit
44f5f568
authored
Feb 17, 2018
by
Kenton Varda
Committed by
GitHub
Feb 17, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #619 from capnproto/escape-cmake-config-var
Escape CMake config var in configure.ac
parents
b5425465
d610b7ec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
24 deletions
+32
-24
configure.ac
c++/configure.ac
+1
-1
filesystem.h
c++/src/kj/filesystem.h
+1
-1
super-test.sh
super-test.sh
+30
-22
No files found.
c++/configure.ac
View file @
44f5f568
...
...
@@ -126,7 +126,7 @@ AC_SUBST([CAPNP_CMAKE_CONFIG_FILES])
# CapnProtoConfig.cmake.in needs these PACKAGE_* output variables.
PACKAGE_INIT="set([CAPNP_PKG_CONFIG_FILES] CAPNP_PKG_CONFIG_FILES)"
PACKAGE_CMAKE_INSTALL_FULL_INCLUDEDIR="
${CMAKE_CURRENT_LIST_DIR}
/../../include"
PACKAGE_CMAKE_INSTALL_FULL_INCLUDEDIR="
\${CMAKE_CURRENT_LIST_DIR}/..
/../../include"
AC_SUBST([PACKAGE_INIT])
AC_SUBST([PACKAGE_CMAKE_INSTALL_FULL_INCLUDEDIR])
...
...
c++/src/kj/filesystem.h
View file @
44f5f568
...
...
@@ -1058,7 +1058,7 @@ inline String PathPtr::toNativeString(bool absolute) const {
}
#endif // _WIN32, else
inline
Own
<
const
FsNode
>
FsNode
::
clone
()
const
{
return
cloneFsNode
()
.
downcast
<
const
FsNode
>
()
;
}
inline
Own
<
const
FsNode
>
FsNode
::
clone
()
const
{
return
cloneFsNode
();
}
inline
Own
<
const
ReadableFile
>
ReadableFile
::
clone
()
const
{
return
cloneFsNode
().
downcast
<
const
ReadableFile
>
();
}
...
...
super-test.sh
View file @
44f5f568
...
...
@@ -7,6 +7,19 @@ doit() {
"
$@
"
}
function
test_samples
()
{
echo
"@@@@ ./addressbook (in various configurations)"
./addressbook write | ./addressbook
read
./addressbook dwrite | ./addressbook dread
rm
-f
/tmp/capnp-calculator-example-
$$
./calculator-server unix:/tmp/capnp-calculator-example-
$$
&
sleep
0.1
./calculator-client unix:/tmp/capnp-calculator-example-
$$
kill
%+
wait
%+
||
true
rm
-f
/tmp/capnp-calculator-example-
$$
}
QUICK
=
PARALLEL
=
$(
nproc
2>/dev/null
||
echo
1
)
...
...
@@ -228,15 +241,7 @@ while [ $# -gt 0 ]; do
-DCAPNPC_FLAGS
=
--no-standard-import
-DCAPNPC_IMPORT_DIRS
=
"
$WORKSPACE
/inst/include"
doit make
-j
$PARALLEL
echo
"@@@@ ./addressbook (in various configurations)"
./addressbook write | ./addressbook
read
./addressbook dwrite | ./addressbook dread
rm
-f
/tmp/capnp-calculator-example-
$$
./calculator-server unix:/tmp/capnp-calculator-example-
$$
&
sleep
0.1
./calculator-client unix:/tmp/capnp-calculator-example-
$$
kill
%+
wait
%+
||
true
test_samples
echo
"========================================================================="
echo
"Cap'n Proto (
$CONFIGURATION
) installs a working CMake config package."
...
...
@@ -375,25 +380,28 @@ cd samples
doit capnp compile
-oc
++ addressbook.capnp
-I
"
$STAGING
"
/include
--no-standard-import
doit
${
CXX
:-
g
++
}
-std
=
c++11 addressbook.c++ addressbook.capnp.c++
-o
addressbook
\
$CXXFLAGS
$(
pkg-config
--cflags
--libs
capnp
)
echo
"@@@@ ./addressbook (in various configurations)"
./addressbook write | ./addressbook
read
./addressbook dwrite | ./addressbook dread
rm
addressbook addressbook.capnp.c++ addressbook.capnp.h
doit capnp compile
-oc
++ calculator.capnp
-I
"
$STAGING
"
/include
--no-standard-import
doit
${
CXX
:-
g
++
}
-std
=
c++11 calculator-client.c++ calculator.capnp.c++
-o
calculator-client
\
$CXXFLAGS
$(
pkg-config
--cflags
--libs
capnp-rpc
)
doit
${
CXX
:-
g
++
}
-std
=
c++11 calculator-server.c++ calculator.capnp.c++
-o
calculator-server
\
$CXXFLAGS
$(
pkg-config
--cflags
--libs
capnp-rpc
)
rm
-f
/tmp/capnp-calculator-example-
$$
./calculator-server unix:/tmp/capnp-calculator-example-
$$
&
sleep
0.1
./calculator-client unix:/tmp/capnp-calculator-example-
$$
kill
%+
wait
%+
||
true
rm
calculator-client calculator-server calculator.capnp.c++ calculator.capnp.h /tmp/capnp-calculator-example-
$$
cd
..
test_samples
rm
addressbook addressbook.capnp.c++ addressbook.capnp.h
rm
calculator-client calculator-server calculator.capnp.c++ calculator.capnp.h
rm
-rf
cmake-build
mkdir
cmake-build
cd
cmake-build
doit cmake ..
-G
"Unix Makefiles"
-DCMAKE_PREFIX_PATH
=
"
$STAGING
"
\
-DCAPNPC_FLAGS
=
--no-standard-import
-DCAPNPC_IMPORT_DIRS
=
"
$STAGING
/include"
doit make
-j
$PARALLEL
test_samples
cd
../..
rm
-rf
samples/cmake-build
if
[
"
$QUICK
"
=
quick
]
;
then
doit make maintainer-clean
...
...
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