Fix -Dhttp=false builds
This commit is contained in:
parent
674134588c
commit
84d6ca6938
@ -4,7 +4,12 @@ client_files += files(
|
|||||||
'GetUserInfoRequest.cpp',
|
'GetUserInfoRequest.cpp',
|
||||||
'ImageRequest.cpp',
|
'ImageRequest.cpp',
|
||||||
'Request.cpp',
|
'Request.cpp',
|
||||||
'RequestManager.cpp',
|
|
||||||
'SaveUserInfoRequest.cpp',
|
'SaveUserInfoRequest.cpp',
|
||||||
'ThumbnailRequest.cpp',
|
'ThumbnailRequest.cpp',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if uopt_http
|
||||||
|
client_files += files(
|
||||||
|
'RequestManager.cpp',
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
@ -158,7 +158,9 @@ LuaScriptInterface::LuaScriptInterface(GameController * c, GameModel * m):
|
|||||||
initPlatformAPI();
|
initPlatformAPI();
|
||||||
initEventAPI();
|
initEventAPI();
|
||||||
initHttpAPI();
|
initHttpAPI();
|
||||||
|
#ifndef NOHTTP
|
||||||
initSocketAPI();
|
initSocketAPI();
|
||||||
|
#endif
|
||||||
|
|
||||||
//Old TPT API
|
//Old TPT API
|
||||||
int currentElementMeta, currentElement;
|
int currentElementMeta, currentElement;
|
||||||
@ -4388,9 +4390,11 @@ LuaScriptInterface::~LuaScriptInterface() {
|
|||||||
delete legacy;
|
delete legacy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NOHTTP
|
||||||
void LuaScriptInterface::initSocketAPI()
|
void LuaScriptInterface::initSocketAPI()
|
||||||
{
|
{
|
||||||
LuaTCPSocket::Open(l);
|
LuaTCPSocket::Open(l);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -10,10 +10,14 @@ luaconsole_files = files(
|
|||||||
'LuaScriptInterface.cpp',
|
'LuaScriptInterface.cpp',
|
||||||
'LuaSlider.cpp',
|
'LuaSlider.cpp',
|
||||||
'LuaSmartRef.cpp',
|
'LuaSmartRef.cpp',
|
||||||
'LuaTCPSocket.cpp',
|
|
||||||
'LuaTextbox.cpp',
|
'LuaTextbox.cpp',
|
||||||
'LuaWindow.cpp',
|
'LuaWindow.cpp',
|
||||||
)
|
)
|
||||||
|
if uopt_http
|
||||||
|
luaconsole_files += files(
|
||||||
|
'LuaTCPSocket.cpp',
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
subdir('luascripts')
|
subdir('luascripts')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user