mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
made old build system to work too. the cmake one doesn't make working binaries for some computers.
--HG-- rename : src/config.h.in => src/cmake_config.h.in
This commit is contained in:
parent
515a480d0e
commit
3ef2629e84
7 changed files with 46 additions and 13 deletions
28
src/config.h
Normal file
28
src/config.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
If CMake is used, includes the cmake-generated cmake_config.h.
|
||||
Otherwise use default values
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
|
||||
#ifdef USE_CMAKE_CONFIG_H
|
||||
#include "cmake_config.h"
|
||||
#else
|
||||
//#define INSTALL_PREFIX ""
|
||||
#define VERSION_STRING "unknown"
|
||||
#ifdef NDEBUG
|
||||
#define BUILD_TYPE "Release"
|
||||
#else
|
||||
#define BUILD_TYPE "Debug"
|
||||
#endif
|
||||
#ifdef RUN_IN_PLACE
|
||||
#define RUN_IN_PLACE_BOOLSTRING "1"
|
||||
#else
|
||||
#define RUN_IN_PLACE_BOOLSTRING "0"
|
||||
#endif
|
||||
#define BUILD_INFO "NON-CMAKE RUN_IN_PLACE="RUN_IN_PLACE_BOOLSTRING" BUILD_TYPE="BUILD_TYPE
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue