correctly include tomsfastmath
This commit is contained in:
parent
1fdeb17e6d
commit
55170e6ba8
@ -100,7 +100,7 @@ workspace "iw4x"
|
||||
buildoptions { "-Zm200" } -- allocate ~150mb memory for the precompiled header. This should be enough, increase if necessary
|
||||
|
||||
-- Dependency on zlib, json11 and asio
|
||||
links { "zlib", "json11", "pdcurses", "libtomcrypt" }
|
||||
links { "zlib", "json11", "pdcurses", "libtomcrypt", "tomsfastmath" }
|
||||
includedirs
|
||||
{
|
||||
"./deps/zlib",
|
||||
@ -108,6 +108,7 @@ workspace "iw4x"
|
||||
"./deps/pdcurses",
|
||||
"./deps/asio/asio/include",
|
||||
"./deps/libtomcrypt/src/headers",
|
||||
"./deps/tomsfastmath/src/headers",
|
||||
}
|
||||
|
||||
-- Virtual paths
|
||||
@ -204,8 +205,11 @@ workspace "iw4x"
|
||||
-- libtomcrypt
|
||||
project "libtomcrypt"
|
||||
language "C"
|
||||
defines { "_LIB", "LTC_SOURCE", "LTC_NO_RSA_BLINDING" }
|
||||
defines { "_LIB", "LTC_SOURCE", "LTC_NO_RSA_BLINDING", "TFM_DESC" }
|
||||
|
||||
links { "tomsfastmath" }
|
||||
includedirs { "./deps/libtomcrypt/src/headers" }
|
||||
includedirs { "./deps/tomsfastmath/src/headers" }
|
||||
|
||||
files { "./deps/libtomcrypt/src/**.c" }
|
||||
|
||||
|
@ -239,7 +239,7 @@ namespace Components
|
||||
//#ifdef USE_NODE_STUFF
|
||||
Assert_Size(Node::AddressEntry, 6);
|
||||
|
||||
//ltc_mp = tfm_desc;
|
||||
ltc_mp = tfm_desc;
|
||||
|
||||
Dvar::OnInit([] ()
|
||||
{
|
||||
|
@ -46,7 +46,7 @@
|
||||
|
||||
#define ZLIB_CONST
|
||||
|
||||
//#define TFM_DESC
|
||||
#define TFM_DESC
|
||||
#define LTC_NO_FAST
|
||||
#define LTC_NO_PROTOTYPES
|
||||
#define LTC_NO_RSA_BLINDING
|
||||
@ -57,6 +57,8 @@
|
||||
#include <curses.h>
|
||||
//#include <asio.hpp>
|
||||
#include <json11.hpp>
|
||||
|
||||
#include <tfm.h>
|
||||
#include <tomcrypt.h>
|
||||
|
||||
#pragma warning(pop)
|
||||
|
Loading…
Reference in New Issue
Block a user