mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
avoid continuous rebuilds from LUA_API* changes
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5a7d91c77d
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-12-14 (Mon, 14 Dec 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -38,3 +38,19 @@ libneutrino_gui_lua_a_SOURCES = \
|
|||||||
lua_messagebox.cpp \
|
lua_messagebox.cpp \
|
||||||
lua_misc.cpp \
|
lua_misc.cpp \
|
||||||
lua_video.cpp
|
lua_video.cpp
|
||||||
|
|
||||||
|
# the continuous changes of LUA_API_VERSION_* in luainstance.h
|
||||||
|
# are not only of questionable usefulness, but they also cause
|
||||||
|
# rebuilds all over the place, even though it is only used in
|
||||||
|
# 2(!) source files. So split out those two definitions into an
|
||||||
|
# autogenerated separate file, they are #if 0'ed in luainstance.h
|
||||||
|
# already and the rest is dealt with via ccache...
|
||||||
|
BUILT_SOURCES = lua_api_version.h
|
||||||
|
lua_api_version.h: luainstance.h
|
||||||
|
@rm -f $@
|
||||||
|
grep '^#define.*LUA_API' $(srcdir)/luainstance.h > $@
|
||||||
|
|
||||||
|
noinst_HEADERS = lua_api_version.h
|
||||||
|
|
||||||
|
# so that lua_api_version.h can be found...
|
||||||
|
AM_CPPFLAGS += -I$(builddir)
|
||||||
|
@@ -33,6 +33,9 @@
|
|||||||
#include "luainstance.h"
|
#include "luainstance.h"
|
||||||
#include "lua_misc.h"
|
#include "lua_misc.h"
|
||||||
|
|
||||||
|
/* autogenerated from luainstance.h */
|
||||||
|
#include "lua_api_version.h"
|
||||||
|
|
||||||
CLuaInstMisc* CLuaInstMisc::getInstance()
|
CLuaInstMisc* CLuaInstMisc::getInstance()
|
||||||
{
|
{
|
||||||
static CLuaInstMisc* LuaInstMisc = NULL;
|
static CLuaInstMisc* LuaInstMisc = NULL;
|
||||||
|
@@ -48,6 +48,9 @@
|
|||||||
#include "lua_misc.h"
|
#include "lua_misc.h"
|
||||||
#include "lua_video.h"
|
#include "lua_video.h"
|
||||||
|
|
||||||
|
/* autogenerated from luainstance.h */
|
||||||
|
#include "lua_api_version.h"
|
||||||
|
|
||||||
extern CPictureViewer * g_PicViewer;
|
extern CPictureViewer * g_PicViewer;
|
||||||
|
|
||||||
static void set_lua_variables(lua_State *L)
|
static void set_lua_variables(lua_State *L)
|
||||||
|
@@ -30,8 +30,10 @@ extern "C" {
|
|||||||
|
|
||||||
#include "luainstance_helpers.h"
|
#include "luainstance_helpers.h"
|
||||||
|
|
||||||
|
#if 0
|
||||||
#define LUA_API_VERSION_MAJOR 1
|
#define LUA_API_VERSION_MAJOR 1
|
||||||
#define LUA_API_VERSION_MINOR 27
|
#define LUA_API_VERSION_MINOR 27
|
||||||
|
#endif
|
||||||
|
|
||||||
/* inspired by Steve Kemp http://www.steve.org.uk/ */
|
/* inspired by Steve Kemp http://www.steve.org.uk/ */
|
||||||
class CLuaInstance
|
class CLuaInstance
|
||||||
|
Reference in New Issue
Block a user