#include <msp/fs/utils.h>
#include "builder.h"
#include "datapackcomponent.h"
-#include "file.h"
+#include "datasourcefile.h"
#include "sourcepackage.h"
#include "tool.h"
else if(Target *tgt = builder.get_vfs().get_target(*i))
files.push_back(tgt);
else
- files.push_back(new File(builder, package, *i));
+ files.push_back(new DataSourceFile(builder, *this, *i));
}
Target *result = dcomp.create_target(files, "pack");
--- /dev/null
+#include "datasourcefile.h"
+
+using namespace Msp;
+
+DataSourceFile::DataSourceFile(Builder &b, const FS::Path &p):
+ SourceFile(b, p)
+{ }
+
+DataSourceFile::DataSourceFile(Builder &b, const Component &c, const FS::Path &p):
+ SourceFile(b, c, p)
+{ }
--- /dev/null
+#ifndef DATASOURCEFILE_H_
+#define DATASOURCEFILE_H_
+
+#include "sourcefile.h"
+
+class DataSourceFile: public SourceFile
+{
+public:
+ DataSourceFile(Builder &, const Msp::FS::Path &);
+ DataSourceFile(Builder &, const Component &, const Msp::FS::Path &);
+
+ virtual const char *get_type() const { return "DataSourceFile"; }
+};
+
+#endif