From bd362f3a5f235bf46745687aa4e9688dd50a1e48 Mon Sep 17 00:00:00 2001 From: gered Date: Tue, 11 Apr 2017 11:05:53 -0400 Subject: [PATCH] keep generated bwapi_bridge c++ sources in the same output directory --- bwapi_bridge/bwapi_bridge.vcxproj | 4 ++-- bwapi_bridge/bwapi_bridge.vcxproj.filters | 4 ++-- generator/src/main/java/bwmirror/generator/CJavaPipeline.java | 4 ++-- .../main/java/bwmirror/generator/ccalls/CallImplementer.java | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bwapi_bridge/bwapi_bridge.vcxproj b/bwapi_bridge/bwapi_bridge.vcxproj index 453514c..35f2c12 100644 --- a/bwapi_bridge/bwapi_bridge.vcxproj +++ b/bwapi_bridge/bwapi_bridge.vcxproj @@ -82,10 +82,10 @@ - + - + diff --git a/bwapi_bridge/bwapi_bridge.vcxproj.filters b/bwapi_bridge/bwapi_bridge.vcxproj.filters index 72bc34b..e81e87a 100644 --- a/bwapi_bridge/bwapi_bridge.vcxproj.filters +++ b/bwapi_bridge/bwapi_bridge.vcxproj.filters @@ -15,12 +15,12 @@ - + Header Files - + Source Files diff --git a/generator/src/main/java/bwmirror/generator/CJavaPipeline.java b/generator/src/main/java/bwmirror/generator/CJavaPipeline.java index d7e3ae2..445e2a0 100644 --- a/generator/src/main/java/bwmirror/generator/CJavaPipeline.java +++ b/generator/src/main/java/bwmirror/generator/CJavaPipeline.java @@ -328,8 +328,8 @@ public class CJavaPipeline { Properties props = new Properties(); props.put(COMPILE_DIR_PROPERTY, basePath.getPath() + "/output/compiled"); props.put(HEADERS_DIR_PROPERTY, basePath.getPath() + "/output/headers"); - props.put(HEADER_FILE_PROPERTY, basePath.getPath() + "/output/concat_header.h"); - props.put(C_IMPLEMENTATION_FILE_PROPERTY, basePath.getPath() + "/output/c/impl.cpp"); + props.put(HEADER_FILE_PROPERTY, basePath.getPath() + "/output/bwapi_bridge_src/concat_header.h"); + props.put(C_IMPLEMENTATION_FILE_PROPERTY, basePath.getPath() + "/output/bwapi_bridge_src/impl.cpp"); props.put(GENERATE_TO_DIR, basePath.getPath() + "/output/generated"); new CJavaPipeline().run(new PackageProcessOptions[]{bwapiOptions, bwtaOptions}, props); diff --git a/generator/src/main/java/bwmirror/generator/ccalls/CallImplementer.java b/generator/src/main/java/bwmirror/generator/ccalls/CallImplementer.java index 0a4014a..f985ac5 100644 --- a/generator/src/main/java/bwmirror/generator/ccalls/CallImplementer.java +++ b/generator/src/main/java/bwmirror/generator/ccalls/CallImplementer.java @@ -51,7 +51,7 @@ public class CallImplementer { public void setOut(PrintStream out) { this.out = out; - out.print("#include \"../concat_header.h\"\n" + + out.print("#include \"concat_header.h\"\n" + "#include \n" + "#include \n" + "#include \n" +