aboutsummaryrefslogtreecommitdiff
path: root/src/config.h
Commit message (Collapse)AuthorAge
* Add STATIC_LOCALEDIR to BUILD_INFO and move it to version.cppsfan52020-04-27
|
* Android: add Android Studio support, completely redone java part (#9066)Maksim2020-04-15
|
* Update version correctly again (#6462)SmallJoker2017-09-26
| | | | | | | * Update version correctly again Partial revert of PR 6331 * It doesn't update automatically
* Add build date to minetest --version and increase readability (#6331)you2017-09-03
|
* C++ modernize: Pragma once (#6264)Loïc Blot2017-08-17
| | | | * Migrate cpp headers to pragma once
* Revert the upper-case PROJECT_NAME nonsense that was part of #2402sfan52015-04-27
|
* Revert "Only lowercase project name at compile time"sfan52015-04-27
| | | | This reverts commit 3be9787e64362b8a5020746220c65abbe31f8097.
* Only lowercase project name at compile timeShadowNinja2015-04-21
|
* Fix Android build-related bugsCraig Robbins2015-03-29
| | | | E.g. Sound and freetype always being disabled, redefinition of pre-processor directives
* Clean up and tweak build systemShadowNinja2015-03-27
| | | | | | | | | | | | | | | | * Combine client and server man pages. * Update unit test options and available databases in man page. * Add `--worldname` to man page. * Fix a bunch of places where `"Minetest"` was used directly instead of `PROJECT_NAME`. * Disable server build by default on all operating systems. * Make `ENABLE_FREETYPE` not fail if FreeType isn't found. * Enable LevelDB, Redis, and FreeType detection by default. * Remove the `VERSION_PATCH_ORIG` hack. * Add option to search for and use system JSONCPP. * Remove broken LuaJIT version detection. * Rename `DISABLE_LUAJIT` to `ENABLE_LUAJIT`. * Rename `minetest_*` variables in `version.{h,cpp}` to `g_*`. * Clean up style of CMake files.
* serialize.h: use machine native byte swapping if available, fall-back to ↵Rafael Reilova2014-11-21
| | | | | | | | | | | | | | | | | | | | | previous generic method if not (supported for GCC using endian.h, detection done in cmake) write/readARGB8() - just write 32-bit color in one op, instead of 4 1-byte ops cleanup: removed unneeded buffer init for some serialize-out functions use a #define for the fixed point factor in read/writeF1000() nodemetadata.cpp, nodetimer.cpp optimzation: simpler deserialize node position method staticobject.cpp: cleanup: use util/serialize.h inlines instead of its own de/serialization serialize.cpp: minor optimization/cleanup: avoid generation of unneeded string temporary CMakeLists.txt, cmake_config.h.in: detection of endian.h config.h: added HAVE_ENDIAN_H Commits due to feedback squashed Signed-off-by: Craig Robbins <kde.psych@gmail.com>
* Fix android build using hardcoded path for data instead of using the one ↵sapier2014-10-01
| | | | | | fetched by android api on init. Fix android missing version information
* Don't include cmake_config_githash.h into files that don't need itsfan52014-07-25
|
* Add support for Android 2.3+sapier2014-06-29
| | | | | | | | | | | | | There have been plenty of ppl involved in creating this version. I don't wanna mention names as I'm sure I'd forget someone so I just tell where help has been done: - The partial android versions done by various ppl - Testing on different android devices - reviewing code (especially the in core changes) - testing controls - reviewing texts A big thank you to everyone helping this to be completed!
* Add redis database backendSfan52014-04-16
|
* Make config honor build system specified config definessapier2014-04-09
|
* Improved win32 file version informationsapier2014-03-02
|
* Handle LuaErrors in Lua -> C++ calls on LuaJITShadowNinja2013-12-18
|
* Show git hash in version string at top left corner of windowKahrl2013-09-28
|
* Add dummy and LevelDB database backendsIlya Zhuravlev2013-09-09
|
* Add Freetype supportIlya Zhuravlev2013-02-14
|
* Added ability to fetch media from remote server (using cURL library)Ilya Zhuravlev2012-12-16
|
* Improve build configuration optionsPerttu Ahola2012-07-23
|
* Build configuration fixes/improvements on WindowsPerttu Ahola2012-03-25
|
* Update/fix/improve config.h and cmake_config.h.inPerttu Ahola2012-03-24
|
* Sanitize GETTEXT usage macrosGiuseppe Bilotta2011-07-24
| | | | | | | Now the user-level option is called ENABLE_GETTEXT, and USE_GETTEXT is only set to true if gettext was enabled and found. This simplifies all check to USE_GETTEXT only rather than the double checks for it being enabled and found.
* Place project name and gettext use in configGiuseppe Bilotta2011-07-24
|
* made old build system to work too. the cmake one doesn't make working ↵Perttu Ahola2011-01-18
binaries for some computers. --HG-- rename : src/config.h.in => src/cmake_config.h.in
span> i, stack[i]); } if(stack_i == DEBUG_STACK_SIZE) fprintf(file, "Probably overflown.\n"); } core::map<threadid_t, DebugStack*> g_debug_stacks; JMutex g_debug_stacks_mutex; void debug_stacks_init() { g_debug_stacks_mutex.Init(); } void debug_stacks_print() { JMutexAutoLock lock(g_debug_stacks_mutex); DEBUGPRINT("Debug stacks:\n"); for(core::map<threadid_t, DebugStack*>::Iterator i = g_debug_stacks.getIterator(); i.atEnd() == false; i++) { DebugStack *stack = i.getNode()->getValue(); for(int i=0; i<DEBUGSTREAM_COUNT; i++) { if(g_debugstreams[i] != NULL) stack->print(g_debugstreams[i], true); } } } DebugStacker::DebugStacker(const char *text) { threadid_t threadid = get_current_thread_id(); JMutexAutoLock lock(g_debug_stacks_mutex); core::map<threadid_t, DebugStack*>::Node *n; n = g_debug_stacks.find(threadid); if(n != NULL) { m_stack = n->getValue(); } else { /*DEBUGPRINT("Creating new debug stack for thread %x\n", (unsigned int)threadid);*/ m_stack = new DebugStack(threadid); g_debug_stacks.insert(threadid, m_stack); } if(m_stack->stack_i >= DEBUG_STACK_SIZE) { m_overflowed = true; } else { m_overflowed = false; snprintf(m_stack->stack[m_stack->stack_i], DEBUG_STACK_TEXT_SIZE, "%s", text); m_stack->stack_i++; if(m_stack->stack_i > m_stack->stack_max_i) m_stack->stack_max_i = m_stack->stack_i; } } DebugStacker::~DebugStacker() { JMutexAutoLock lock(g_debug_stacks_mutex); if(m_overflowed == true) return; m_stack->stack_i--; if(m_stack->stack_i == 0) { threadid_t threadid = m_stack->threadid; /*DEBUGPRINT("Deleting debug stack for thread %x\n", (unsigned int)threadid);*/ delete m_stack; g_debug_stacks.remove(threadid); } } #ifdef _MSC_VER #if CATCH_UNHANDLED_EXCEPTIONS == 1 void se_trans_func(unsigned int u, EXCEPTION_POINTERS* pExp) { dstream<<"In trans_func.\n"; if(u == EXCEPTION_ACCESS_VIOLATION) { PEXCEPTION_RECORD r = pExp->ExceptionRecord; dstream<<"Access violation at "<<r->ExceptionAddress <<" write?="<<r->ExceptionInformation[0] <<" address="<<r->ExceptionInformation[1] <<std::endl; throw FatalSystemException ("Access violation"); } if(u == EXCEPTION_STACK_OVERFLOW) { throw FatalSystemException ("Stack overflow"); } if(u == EXCEPTION_ILLEGAL_INSTRUCTION) { throw FatalSystemException ("Illegal instruction"); } } #endif #endif