mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-18 18:41:57 +00:00
a713509493
Core and SDL2 are two separate targets now. Core is a static library that is linked into SRB2SDL2. The sources for both are separated. When using an IDE like Visual Studio or Xcode, the source code organized into groups that explain what that group of sources does. In the future, "Main" could be split into a few more groups based on file prefixes, but I think the way it is set up works for now. Makefile targets are not affected by source_groups and typing `make` will automatically compile both the "Core" library and SRB2SDL2 itself.
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
/** SRB2 CMake Configuration */
|
|
|
|
#ifndef __CONFIG_H__
|
|
#define __CONFIG_H__
|
|
|
|
/* DO NOT MODIFY config.h DIRECTLY! It will be overwritten by cmake.
|
|
* If you want to change a configuration option here, modify it in
|
|
* your CMakeCache.txt. config.h.in is used as a template for CMake
|
|
* variables, so you can insert them here too.
|
|
*/
|
|
|
|
#ifdef CMAKECONFIG
|
|
|
|
#define ASSET_HASH_SRB2_SRB "${SRB2_ASSET_srb2.srb_HASH}"
|
|
#define ASSET_HASH_PLAYER_DTA "${SRB2_ASSET_player.dta_HASH}"
|
|
#define ASSET_HASH_RINGS_DTA "${SRB2_ASSET_rings.dta_HASH}"
|
|
#define ASSET_HASH_ZONES_DTA "${SRB2_ASSET_zones.dta_HASH}"
|
|
#define ASSET_HASH_PATCH_DTA "${SRB2_ASSET_patch.dta_HASH}"
|
|
|
|
#define SRB2_COMP_REVISION "${SRB2_COMP_REVISION}"
|
|
#define SRB2_GIT_DESCRIBE "${SRB2_GIT_DESCRIBE}"
|
|
#define SRB2_GIT_BRANCH "${SRB2_GIT_BRANCH}"
|
|
|
|
#define CMAKE_ASSETS_DIR "${CMAKE_SOURCE_DIR}/assets"
|
|
|
|
#else
|
|
|
|
#define ASSET_HASH_SRB2_SRB "c1b9577687f8a795104aef4600720ea7"
|
|
#define ASSET_HASH_ZONES_DTA "303838c6c534d9540288360fa49cca60"
|
|
#define ASSET_HASH_PLAYER_DTA "cfca0f1c73023cbbd8f844f45480f799"
|
|
#define ASSET_HASH_RINGS_DTA "85901ad4bf94637e5753d2ac2c03ea26"
|
|
|
|
#endif
|
|
#endif
|