aboutsummaryrefslogtreecommitdiff
path: root/buildtools/codegen/main.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-05-30 16:38:45 -0700
committerrtk0c <[email protected]>2022-05-30 16:38:45 -0700
commit366ef5a5450c6e0e680c924c3454943a9ae9814d (patch)
tree87ef5741bae89aaac6f502130b339fa7cd7be525 /buildtools/codegen/main.cpp
parent66ee4d47d55516ff55f72dfe2de1fb16c04dcb5b (diff)
Changeset: 55 Buildsystem cleanup: add "projectized" targets
Diffstat (limited to 'buildtools/codegen/main.cpp')
-rw-r--r--buildtools/codegen/main.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/buildtools/codegen/main.cpp b/buildtools/codegen/main.cpp
index 2c259a4..b139515 100644
--- a/buildtools/codegen/main.cpp
+++ b/buildtools/codegen/main.cpp
@@ -642,6 +642,9 @@ void HandleInputFile(AppState& state, std::string_view filenameStem, std::string
Utils::WriteOutputFile(cgHeaderOutput, state.outputDir, filenameStem, ".gh.inl"sv);
Utils::WriteOutputFile(cgSourceOutput, state.outputDir, filenameStem, ".gs.inl"sv);
+
+ // TODO see CMakeLists.txt for rationale, clean this up to be a proper citizen
+ Utils::WriteOutputFile(CodegenOutput{}, state.outputDir, filenameStem, ".gs.cpp"sv);
}
enum InputOpcode {
@@ -750,8 +753,9 @@ where <output path>: the directory to write generated contents to. This will N
}
}
- Utils::WriteOutputFile(state.mainHeaderOutput, state.outputDir, "GeneratedCode.hpp"sv);
- Utils::WriteOutputFile(state.mainSourceOutput, state.outputDir, "GeneratedCode.cpp"sv);
+ // TODO do we even need these?
+ // Utils::WriteOutputFile(state.mainHeaderOutput, state.outputDir, "GeneratedCode.hpp"sv);
+ // Utils::WriteOutputFile(state.mainSourceOutput, state.outputDir, "GeneratedCode.cpp"sv);
return 0;
}