|
@@ -7,6 +7,7 @@
|
|
|
|
|
|
|
|
#include "core/containers/types.h"
|
|
#include "core/containers/types.h"
|
|
|
#include "core/filesystem/types.h"
|
|
#include "core/filesystem/types.h"
|
|
|
|
|
+#include "core/strings/dynamic_string.h"
|
|
|
#include "core/strings/types.h"
|
|
#include "core/strings/types.h"
|
|
|
#include "resource/types.h"
|
|
#include "resource/types.h"
|
|
|
#include <stdarg.h>
|
|
#include <stdarg.h>
|
|
@@ -39,12 +40,13 @@ struct CompileOptions
|
|
|
{
|
|
{
|
|
|
DataCompiler& _data_compiler;
|
|
DataCompiler& _data_compiler;
|
|
|
Filesystem& _data_filesystem;
|
|
Filesystem& _data_filesystem;
|
|
|
|
|
+ DynamicString _source_path;
|
|
|
Buffer& _output;
|
|
Buffer& _output;
|
|
|
const char* _platform;
|
|
const char* _platform;
|
|
|
Vector<DynamicString> _dependencies;
|
|
Vector<DynamicString> _dependencies;
|
|
|
|
|
|
|
|
///
|
|
///
|
|
|
- CompileOptions(DataCompiler& dc, Filesystem& data_filesystem, Buffer& output, const char* platform);
|
|
|
|
|
|
|
+ CompileOptions(DataCompiler& dc, Filesystem& data_filesystem, DynamicString& source_path, Buffer& output, const char* platform);
|
|
|
|
|
|
|
|
///
|
|
///
|
|
|
void error(const char* msg, va_list args);
|
|
void error(const char* msg, va_list args);
|
|
@@ -52,6 +54,9 @@ struct CompileOptions
|
|
|
///
|
|
///
|
|
|
void error(const char* msg, ...);
|
|
void error(const char* msg, ...);
|
|
|
|
|
|
|
|
|
|
+ ///
|
|
|
|
|
+ const char* source_path();
|
|
|
|
|
+
|
|
|
///
|
|
///
|
|
|
bool file_exists(const char* path);
|
|
bool file_exists(const char* path);
|
|
|
|
|
|
|
@@ -67,6 +72,9 @@ struct CompileOptions
|
|
|
///
|
|
///
|
|
|
void write_temporary(const char* path, const Buffer& data);
|
|
void write_temporary(const char* path, const Buffer& data);
|
|
|
|
|
|
|
|
|
|
+ ///
|
|
|
|
|
+ Buffer read();
|
|
|
|
|
+
|
|
|
///
|
|
///
|
|
|
Buffer read(const char* path);
|
|
Buffer read(const char* path);
|
|
|
|
|
|