java_support -> capnp
This commit is contained in:
parent
c1f983a0b8
commit
f262701b4e
8 changed files with 8 additions and 11 deletions
2
Makefile
2
Makefile
|
@ -16,4 +16,4 @@ capnpc-java : $(CAPNPC_JAVA_SOURCES)
|
||||||
addressbook : capnpc-java
|
addressbook : capnpc-java
|
||||||
PWD=pwd
|
PWD=pwd
|
||||||
mkdir -p examples/src/main/generated
|
mkdir -p examples/src/main/generated
|
||||||
capnp compile -I$(PWD)/compiler/src/main/cpp --src-prefix=examples/src/main/schema -o./capnpc-java:examples/src/main/generated examples/src/main/schema/addressbook.capnp
|
capnp compile -I$(PWD)/compiler/src/main/schema --src-prefix=examples/src/main/schema -o./capnpc-java:examples/src/main/generated examples/src/main/schema/addressbook.capnp
|
||||||
|
|
|
@ -22,11 +22,10 @@
|
||||||
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
using Cxx = import "/capnp/c++.capnp";
|
using Cxx = import "/capnp/c++.capnp";
|
||||||
|
using Java = import "/capnp/java.capnp";
|
||||||
|
|
||||||
@0xff75ddc6a36723c9;
|
@0xff75ddc6a36723c9;
|
||||||
$Cxx.namespace("capnp::benchmark::capnp");
|
$Cxx.namespace("capnp::benchmark::capnp");
|
||||||
|
|
||||||
using Java = import "/java_support/java.capnp";
|
|
||||||
$Java.package("org.capnproto.benchmark");
|
$Java.package("org.capnproto.benchmark");
|
||||||
$Java.outerClassname("CarSalesSchema");
|
$Java.outerClassname("CarSalesSchema");
|
||||||
|
|
||||||
|
|
|
@ -22,11 +22,10 @@
|
||||||
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
using Cxx = import "/capnp/c++.capnp";
|
using Cxx = import "/capnp/c++.capnp";
|
||||||
|
using Java = import "/capnp/java.capnp";
|
||||||
|
|
||||||
@0x82beb8e37ff79aba;
|
@0x82beb8e37ff79aba;
|
||||||
$Cxx.namespace("capnp::benchmark::capnp");
|
$Cxx.namespace("capnp::benchmark::capnp");
|
||||||
|
|
||||||
using Java = import "/java_support/java.capnp";
|
|
||||||
$Java.package("org.capnproto.benchmark");
|
$Java.package("org.capnproto.benchmark");
|
||||||
$Java.outerClassname("CatRankSchema");
|
$Java.outerClassname("CatRankSchema");
|
||||||
|
|
||||||
|
|
|
@ -22,11 +22,10 @@
|
||||||
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
using Cxx = import "/capnp/c++.capnp";
|
using Cxx = import "/capnp/c++.capnp";
|
||||||
|
using Java = import "/capnp/java.capnp";
|
||||||
|
|
||||||
@0xe12dc4c3e70e9eda;
|
@0xe12dc4c3e70e9eda;
|
||||||
$Cxx.namespace("capnp::benchmark::capnp");
|
$Cxx.namespace("capnp::benchmark::capnp");
|
||||||
|
|
||||||
using Java = import "/java_support/java.capnp";
|
|
||||||
$Java.package("org.capnproto.benchmark");
|
$Java.package("org.capnproto.benchmark");
|
||||||
$Java.outerClassname("EvalSchema");
|
$Java.outerClassname("EvalSchema");
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
@0xd6eccba9557a7f51;
|
@0xd6eccba9557a7f51;
|
||||||
|
|
||||||
using Java = import "/java_support/java.capnp";
|
using Java = import "/capnp/java.capnp";
|
||||||
$Java.package("org.capnproto.test");
|
$Java.package("org.capnproto.test");
|
||||||
$Java.outerClassname("Test");
|
$Java.outerClassname("Test");
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
using Cxx = import "/capnp/c++.capnp";
|
using Cxx = import "/capnp/c++.capnp";
|
||||||
$Cxx.namespace("addressbook");
|
$Cxx.namespace("addressbook");
|
||||||
|
|
||||||
using Java = import "/java_support/java.capnp";
|
using Java = import "/capnp/java.capnp";
|
||||||
$Java.package("org.capnproto.examples");
|
$Java.package("org.capnproto.examples");
|
||||||
$Java.outerClassname("Addressbook");
|
$Java.outerClassname("Addressbook");
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ object Build extends sbt.Build {
|
||||||
val compileTestSchema = taskKey[Unit]("Run capnpc-java on test schema")
|
val compileTestSchema = taskKey[Unit]("Run capnpc-java on test schema")
|
||||||
val compileTestSchemaTask = compileTestSchema := {
|
val compileTestSchemaTask = compileTestSchema := {
|
||||||
val result0 = "mkdir -p compiler/src/test/generated".!!
|
val result0 = "mkdir -p compiler/src/test/generated".!!
|
||||||
val result = "capnp compile -I compiler/src/main/cpp/ --src-prefix=compiler/src/test/schema/ -o./capnpc-java:compiler/src/test/generated compiler/src/test/schema/test.capnp".!!
|
val result = "capnp compile -I compiler/src/main/schema/ --src-prefix=compiler/src/test/schema/ -o./capnpc-java:compiler/src/test/generated compiler/src/test/schema/test.capnp".!!
|
||||||
println(s"**** CodeGen for test.capnp started\n$result\n**** CodeGen complete.");
|
println(s"**** CodeGen for test.capnp started\n$result\n**** CodeGen complete.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ object Build extends sbt.Build {
|
||||||
val compileBenchmarkSchema = taskKey[Unit]("Run capnpc-java on benchmark schema")
|
val compileBenchmarkSchema = taskKey[Unit]("Run capnpc-java on benchmark schema")
|
||||||
val compileBenchmarkSchemaTask = compileBenchmarkSchema := {
|
val compileBenchmarkSchemaTask = compileBenchmarkSchema := {
|
||||||
val result0 = "mkdir -p benchmark/src/main/generated".!!
|
val result0 = "mkdir -p benchmark/src/main/generated".!!
|
||||||
val result = "capnp compile -I compiler/src/main/cpp/ --src-prefix=benchmark/src/main/schema/ -o./capnpc-java:benchmark/src/main/generated benchmark/src/main/schema/eval.capnp benchmark/src/main/schema/carsales.capnp benchmark/src/main/schema/catrank.capnp".!!
|
val result = "capnp compile -I compiler/src/main/schema/ --src-prefix=benchmark/src/main/schema/ -o./capnpc-java:benchmark/src/main/generated benchmark/src/main/schema/eval.capnp benchmark/src/main/schema/carsales.capnp benchmark/src/main/schema/catrank.capnp".!!
|
||||||
println(s"**** CodeGen for benchmark started\n$result\n**** CodeGen complete.");
|
println(s"**** CodeGen for benchmark started\n$result\n**** CodeGen complete.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue