Merge pull request #1886 from mwkroening/tomcrypt-header
Use correct tomcrypt headers
This commit is contained in:
@@ -56,8 +56,6 @@ jobs:
|
|||||||
libxtst-dev
|
libxtst-dev
|
||||||
ninja-build
|
ninja-build
|
||||||
- name: Configure
|
- name: Configure
|
||||||
# TODO: png: https://github.com/stepmania/stepmania/issues/1881
|
|
||||||
# TODO: tomcrypt: https://github.com/stepmania/stepmania/issues/1885
|
|
||||||
run: cmake -G Ninja -B build
|
run: cmake -G Ninja -B build
|
||||||
-DWITH_SYSTEM_FFMPEG=ON
|
-DWITH_SYSTEM_FFMPEG=ON
|
||||||
-DWITH_SYSTEM_GLEW=ON
|
-DWITH_SYSTEM_GLEW=ON
|
||||||
@@ -67,7 +65,7 @@ jobs:
|
|||||||
-DWITH_SYSTEM_OGG=ON
|
-DWITH_SYSTEM_OGG=ON
|
||||||
-DWITH_SYSTEM_PCRE=ON
|
-DWITH_SYSTEM_PCRE=ON
|
||||||
-DWITH_SYSTEM_PNG=ON
|
-DWITH_SYSTEM_PNG=ON
|
||||||
-DWITH_SYSTEM_TOMCRYPT=OFF
|
-DWITH_SYSTEM_TOMCRYPT=ON
|
||||||
-DWITH_SYSTEM_TOMMATH=ON
|
-DWITH_SYSTEM_TOMMATH=ON
|
||||||
-DWITH_SYSTEM_ZLIB=ON
|
-DWITH_SYSTEM_ZLIB=ON
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -695,6 +695,9 @@ if(NOT WITH_SYSTEM_PNG)
|
|||||||
list(APPEND SM_INCLUDE_DIRS "${SM_EXTERN_DIR}/libpng")
|
list(APPEND SM_INCLUDE_DIRS "${SM_EXTERN_DIR}/libpng")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT WITH_SYSTEM_TOMCRYPT)
|
||||||
|
list(APPEND SM_INCLUDE_DIRS "${SM_SRC_DIR}/libtomcrypt/src/headers")
|
||||||
|
endif()
|
||||||
|
|
||||||
target_include_directories("${SM_EXE_NAME}" PUBLIC ${SM_INCLUDE_DIRS})
|
target_include_directories("${SM_EXE_NAME}" PUBLIC ${SM_INCLUDE_DIRS})
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#if !defined(DISABLE_CRYPTO)
|
#if !defined(DISABLE_CRYPTO)
|
||||||
|
|
||||||
#include "libtomcrypt/src/headers/tomcrypt.h"
|
#include <tomcrypt.h>
|
||||||
|
|
||||||
class PRNGWrapper
|
class PRNGWrapper
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
|
||||||
|
#include <tomcrypt.h>
|
||||||
|
|
||||||
#include "CryptManager.h"
|
#include "CryptManager.h"
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
@@ -9,8 +12,6 @@
|
|||||||
#include "LuaReference.h"
|
#include "LuaReference.h"
|
||||||
#include "LuaManager.h"
|
#include "LuaManager.h"
|
||||||
|
|
||||||
#include "libtomcrypt/src/headers/tomcrypt.h"
|
|
||||||
|
|
||||||
CryptManager* CRYPTMAN = nullptr; // global and accessible from anywhere in our program
|
CryptManager* CRYPTMAN = nullptr; // global and accessible from anywhere in our program
|
||||||
|
|
||||||
static const RString PRIVATE_KEY_PATH = "Data/private.rsa";
|
static const RString PRIVATE_KEY_PATH = "Data/private.rsa";
|
||||||
|
|||||||
Reference in New Issue
Block a user