]> git.tdb.fi Git - libs/game.git/commitdiff
Derive GameSetupDefinitions from TemplateFile instead of SourceFile
authorMikko Rasa <tdb@tdb.fi>
Mon, 9 Jan 2023 09:27:16 +0000 (11:27 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 9 Jan 2023 09:27:16 +0000 (11:27 +0200)
Builder's InstallMap checks for that class to figure out the install
locations for generated headers.

tools/builder-plugin/gamesetupdefinitions.cpp
tools/builder-plugin/gamesetupdefinitions.h

index cf4f6cec24fbc97723ab49e3bb1c8d14bb906c72..79787ff4e30bbaca2566a6a8cd14b223b6433d4f 100644 (file)
@@ -9,7 +9,7 @@ using namespace std;
 using namespace Msp;
 
 GameSetupDefinitions::GameSetupDefinitions(Builder &b, const Component &c, const FS::Path &p):
-       SourceFile(b, c, p)
+       TemplateFile(b, c, p)
 {
        install_location = "include";
 }
index f9e84fb954fe3e53d6acc2cb1a13202df03ba0be..13850f19d6ad3b3a632e25594aedbd0899ff0431 100644 (file)
@@ -1,9 +1,9 @@
 #ifndef GAMESETUPDEFINITIONS_H_
 #define GAMESETUPDEFINITIONS_H_
 
-#include <msp/builder/sourcefile.h>
+#include <msp/builder/templatefile.h>
 
-class GameSetupDefinitions: public SourceFile
+class GameSetupDefinitions: public TemplateFile
 {
 public:
        GameSetupDefinitions(Builder &, const Component &, const Msp::FS::Path &);