Move checksum configuration to CMakeLists.txt and config.h

This commit is contained in:
Linus Probert 2019-03-21 08:52:39 +01:00
parent 8e282304ad
commit cea891f87d
4 changed files with 10 additions and 4 deletions

View File

@ -10,6 +10,10 @@ set(breakhack_MINOR_VERSION 0)
set(breakhack_PATCH_VERSION 1) set(breakhack_PATCH_VERSION 1)
set(breakhack_RELEASE_TYPE "") set(breakhack_RELEASE_TYPE "")
# Checksums
set(breakhack_STEAMAPI_DLL_CHECKSUM 0x18dba28)
set(breakhack_STEAMAPI_SO_CHECKSUM 0x1f5786b)
include(FindLua) include(FindLua)
include(FindPhysFS) include(FindPhysFS)
include(build/cmake/FindSDL2.cmake) include(build/cmake/FindSDL2.cmake)

View File

@ -27,4 +27,9 @@
#define PATCH_VERSION @breakhack_PATCH_VERSION@ #define PATCH_VERSION @breakhack_PATCH_VERSION@
#define RELEASE_TYPE "@breakhack_RELEASE_TYPE@" #define RELEASE_TYPE "@breakhack_RELEASE_TYPE@"
/* Checksums */
#define SO_LIBSTEAM_CHECKSUM @breakhack_STEAMAPI_SO_CHECKSUM@
#define DLL_LIBSTEAM_CHECKSUM @breakhack_STEAMAPI_DLL_CHECKSUM@
#endif // CONFIG_H_ #endif // CONFIG_H_

View File

@ -22,10 +22,6 @@
#include <stdint.h> #include <stdint.h>
#include "config.h" #include "config.h"
/* Checksums */
#define SO_LIBSTEAM_CHECKSUM 0x1f5786b
#define DLL_LIBSTEAM_CHECKSUM 0x18dba28
/* Room/Map dimensions */ /* Room/Map dimensions */
#define MAP_ROOM_WIDTH 16 #define MAP_ROOM_WIDTH 16
#define MAP_ROOM_HEIGHT 12 #define MAP_ROOM_HEIGHT 12

View File

@ -57,6 +57,7 @@
#include "time.h" #include "time.h"
#include "sprite_util.h" #include "sprite_util.h"
#include "event.h" #include "event.h"
#include "config.h"
#ifdef STEAM_BUILD #ifdef STEAM_BUILD
#include "checksum.h" #include "checksum.h"