From: Mikko Rasa Date: Sun, 16 Jul 2023 19:40:15 +0000 (+0300) Subject: Export a couple of things from the shader compiler so unit tests can work X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=fffd8e2f86f624b9aa9c756697146284e8b48dcc;p=libs%2Fgl.git Export a couple of things from the shader compiler so unit tests can work I'll have to think of a better way to do this later. --- diff --git a/source/glsl/syntax.h b/source/glsl/syntax.h index 1aa56cb7..9b3d1954 100644 --- a/source/glsl/syntax.h +++ b/source/glsl/syntax.h @@ -9,6 +9,7 @@ #include #include #include +#include #include "features.h" #include "glsl_error.h" #include "sourcemap.h" @@ -514,7 +515,7 @@ struct Stage Stage(Type); - static const char *get_stage_name(Type); + MSPGL_API static const char *get_stage_name(Type); }; struct Module diff --git a/source/glsl/tokenizer.h b/source/glsl/tokenizer.h index 26c4b93c..7a944e2e 100644 --- a/source/glsl/tokenizer.h +++ b/source/glsl/tokenizer.h @@ -4,6 +4,7 @@ #include #include #include +#include namespace Msp { namespace GL { @@ -20,7 +21,7 @@ struct Location Location(const std::string &n, unsigned l): name(n), line(l) { } }; -class Tokenizer +class MSPGL_API Tokenizer { public: sigc::signal signal_preprocess;