make precompiled header work again
This commit is contained in:
parent
fe33614c3a
commit
1d558bc412
|
@ -34,7 +34,6 @@ function Client.init()
|
||||||
g_window.setTitle('OTClient')
|
g_window.setTitle('OTClient')
|
||||||
g_window.setIcon(resolvepath('clienticon.png'))
|
g_window.setIcon(resolvepath('clienticon.png'))
|
||||||
|
|
||||||
|
|
||||||
-- show the only window after the first frame is rendered
|
-- show the only window after the first frame is rendered
|
||||||
scheduleEvent(function()
|
scheduleEvent(function()
|
||||||
scheduleEvent(function()
|
scheduleEvent(function()
|
||||||
|
|
|
@ -60,10 +60,10 @@ SET(CMAKE_C_FLAGS_RELFORPERFORMANCE "-Ofast -mmmx -msse -msse2")
|
||||||
SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -static-libgcc -static-libstdc++ -Wl,--as-needed")
|
SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -static-libgcc -static-libstdc++ -Wl,--as-needed")
|
||||||
|
|
||||||
MESSAGE(STATUS "Build type: " ${CMAKE_BUILD_TYPE})
|
MESSAGE(STATUS "Build type: " ${CMAKE_BUILD_TYPE})
|
||||||
ADD_DEFINITIONS(-DBUILD_TYPE="${CMAKE_BUILD_TYPE}")
|
ADD_DEFINITIONS(-D"BUILD_TYPE=\\\"${CMAKE_BUILD_TYPE}\\\"")
|
||||||
|
|
||||||
ADD_DEFINITIONS(-DBUILD_REVISION="${BUILD_REVISION}")
|
|
||||||
MESSAGE(STATUS "Build revision: ${BUILD_REVISION}")
|
MESSAGE(STATUS "Build revision: ${BUILD_REVISION}")
|
||||||
|
ADD_DEFINITIONS(-D"BUILD_REVISION=\\\"${BUILD_REVISION}\\\"")
|
||||||
|
|
||||||
IF(USE_OPENGL_ES2)
|
IF(USE_OPENGL_ES2)
|
||||||
MESSAGE(STATUS "Renderer: OpenGL ES 2.0")
|
MESSAGE(STATUS "Renderer: OpenGL ES 2.0")
|
||||||
|
@ -236,5 +236,5 @@ SET(framework_SOURCES ${framework_SOURCES}
|
||||||
|
|
||||||
# framework third party
|
# framework third party
|
||||||
${CMAKE_CURRENT_LIST_DIR}/thirdparty/apngloader.cpp
|
${CMAKE_CURRENT_LIST_DIR}/thirdparty/apngloader.cpp
|
||||||
${CMAKE_CURRENT_LIST_DIR}/thirdparty/lbitlib-5.2.0-backport4.c
|
${CMAKE_CURRENT_LIST_DIR}/thirdparty/lbitlib-5.2.0-backport4.cpp
|
||||||
)
|
)
|
||||||
|
|
|
@ -20,12 +20,14 @@
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define __USE_GNU
|
|
||||||
|
|
||||||
#include "crashhandler.h"
|
#include "crashhandler.h"
|
||||||
#include <framework/global.h>
|
#include <framework/global.h>
|
||||||
#include <framework/application.h>
|
#include <framework/application.h>
|
||||||
|
|
||||||
|
#ifndef __USE_GNU
|
||||||
|
#define __USE_GNU
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <execinfo.h>
|
#include <execinfo.h>
|
||||||
#include <ucontext.h>
|
#include <ucontext.h>
|
||||||
|
|
||||||
|
|
|
@ -32,8 +32,10 @@
|
||||||
|
|
||||||
#define LUA_LIB
|
#define LUA_LIB
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
#include <lua.h>
|
#include <lua.h>
|
||||||
#include <lauxlib.h>
|
#include <lauxlib.h>
|
||||||
|
}
|
||||||
|
|
||||||
/* ----- adapted from lua-5.2.0 luaconf.h: ----- */
|
/* ----- adapted from lua-5.2.0 luaconf.h: ----- */
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
|
|
||||||
struct lua_State;
|
struct lua_State;
|
||||||
|
|
||||||
extern "C" {
|
|
||||||
int luaopen_bit32 (lua_State *L);
|
int luaopen_bit32 (lua_State *L);
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue