Mercurial > hg > orthanc
diff Core/Lua/LuaContext.h @ 2379:4900688827a8
reorganization in CMake
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 28 Aug 2017 18:07:03 +0200 |
parents | cd70a86618b4 |
children | 878b59270859 |
line wrap: on
line diff
--- a/Core/Lua/LuaContext.h Mon Aug 28 15:02:27 2017 +0200 +++ b/Core/Lua/LuaContext.h Mon Aug 28 18:07:03 2017 +0200 @@ -37,10 +37,18 @@ # error The macro ORTHANC_ENABLE_LUA must be defined #endif +#if !defined(ORTHANC_HAS_EMBEDDED_RESOURCES) +# error Macro ORTHANC_HAS_EMBEDDED_RESOURCES must be defined +#endif + #if ORTHANC_ENABLE_LUA == 0 # error The Lua support is disabled, cannot include this file #endif +#if ORTHANC_HAS_EMBEDDED_RESOURCES == 1 +# include <EmbeddedResources.h> // Autogenerated file +#endif + #include "../HttpClient.h" extern "C" @@ -48,7 +56,6 @@ #include <lua.h> } -#include <EmbeddedResources.h> #include <boost/noncopyable.hpp> namespace Orthanc @@ -105,7 +112,9 @@ void Execute(Json::Value& output, const std::string& command); +#if ORTHANC_HAS_EMBEDDED_RESOURCES == 1 void Execute(EmbeddedResources::FileResourceId resource); +#endif bool IsExistingFunction(const char* name);