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
302146b0
Commit
302146b0
authored
Jun 28, 2018
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update build files for json-test.capnp.
parent
1ccd2dcb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
5 deletions
+12
-5
Makefile.am
c++/Makefile.am
+5
-2
CMakeLists.txt
c++/src/capnp/CMakeLists.txt
+1
-0
json-test.capnp
c++/src/capnp/compat/json-test.capnp
+1
-1
json.c++
c++/src/capnp/compat/json.c++
+2
-0
capnp-test.sh
c++/src/capnp/compiler/capnp-test.sh
+3
-2
No files found.
c++/Makefile.am
View file @
302146b0
...
...
@@ -380,7 +380,8 @@ endif LITE_MODE
test_capnpc_inputs
=
\
src/capnp/test.capnp
\
src/capnp/test-import.capnp
\
src/capnp/test-import2.capnp
src/capnp/test-import2.capnp
\
src/capnp/compat/json-test.capnp
test_capnpc_outputs
=
\
src/capnp/test.capnp.c++
\
...
...
@@ -388,7 +389,9 @@ test_capnpc_outputs = \
src/capnp/test-import.capnp.c++
\
src/capnp/test-import.capnp.h
\
src/capnp/test-import2.capnp.c++
\
src/capnp/test-import2.capnp.h
src/capnp/test-import2.capnp.h
\
src/capnp/compat/json-test.capnp.c++
\
src/capnp/compat/json-test.capnp.h
if
USE_EXTERNAL_CAPNP
...
...
c++/src/capnp/CMakeLists.txt
View file @
302146b0
...
...
@@ -192,6 +192,7 @@ if(BUILD_TESTING)
test.capnp
test-import.capnp
test-import2.capnp
compat/json-test.capnp
)
set
(
CAPNPC_OUTPUT_DIR
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_capnp"
)
...
...
c++/src/capnp/compat/json-test.capnp
View file @
302146b0
...
...
@@ -21,7 +21,7 @@
@0xc9d405cf4333e4c9;
using Json = import "json.capnp";
using Json = import "
/capnp/compat/
json.capnp";
$import "/capnp/c++.capnp".namespace("capnp");
...
...
c++/src/capnp/compat/json.c++
View file @
302146b0
...
...
@@ -1210,6 +1210,8 @@ private:
output
.
get
(
variant
).
as
<
DynamicStruct
>
(),
unionsSeen
);
}
}
KJ_UNREACHABLE
;
}
const
void
*
getUnionInstanceIdentifier
(
DynamicStruct
::
Builder
obj
)
const
{
...
...
c++/src/capnp/compiler/capnp-test.sh
View file @
302146b0
...
...
@@ -40,6 +40,7 @@ fi
SCHEMA
=
`
dirname
"
$0
"
`
/../test.capnp
JSON_SCHEMA
=
`
dirname
"
$0
"
`
/../compat/json-test.capnp
TESTDATA
=
`
dirname
"
$0
"
`
/../testdata
SRCDIR
=
`
dirname
"
$0
"
`
/../..
SUFFIX
=
${
TESTDATA
#*/src/
}
PREFIX
=
${
TESTDATA
%
${
SUFFIX
}}
...
...
@@ -75,8 +76,8 @@ $CAPNP convert binary:json --short $SCHEMA TestAllTypes < $TESTDATA/binary | cmp
$CAPNP
convert json:binary
$SCHEMA
TestAllTypes <
$TESTDATA
/pretty.json | cmp
$TESTDATA
/binary -
||
fail json to binary
$CAPNP
convert json:binary
$SCHEMA
TestAllTypes <
$TESTDATA
/short.json | cmp
$TESTDATA
/binary -
||
fail short json to binary
$CAPNP
convert json:binary
$JSON_SCHEMA
TestJsonAnnotations <
$TESTDATA
/annotated.json | cmp
$TESTDATA
/annotated-json.binary
||
fail annotated json to binary
$CAPNP
convert binary:json
$JSON_SCHEMA
TestJsonAnnotations <
$TESTDATA
/annotated-json.binary | cmp
$TESTDATA
/annotated.json
||
fail annotated json to binary
$CAPNP
convert json:binary
$JSON_SCHEMA
TestJsonAnnotations
-I
"
$SRCDIR
"
<
$TESTDATA
/annotated.json | cmp
$TESTDATA
/annotated-json.binary
||
fail annotated json to binary
$CAPNP
convert binary:json
$JSON_SCHEMA
TestJsonAnnotations
-I
"
$SRCDIR
"
<
$TESTDATA
/annotated-json.binary | cmp
$TESTDATA
/annotated.json
||
fail annotated json to binary
# ========================================================================================
# DEPRECATED encode/decode
...
...
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