/* Copyright (c) 2009 Peter "Corsix" Cawley Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef CORSIX_TH_CONFIG_H_ #define CORSIX_TH_CONFIG_H_ /** Interpreter script searching options **/ // Whether to search in some possible local dirs according to a fixed list, // relative to current working dir or program dir #cmakedefine CORSIX_TH_SEARCH_LOCAL_DATADIRS // Name of the script, usually 'CorsixTH.lua' #cmakedefine CORSIX_TH_INTERPRETER_NAME "@CORSIX_TH_INTERPRETER_NAME@" // A final path (with file name) to search #cmakedefine CORSIX_TH_INTERPRETER_PATH "@CORSIX_TH_INTERPRETER_PATH@" /** Windows Platform SDK usage **/ // When compiling on Windows, the platform SDK should be used. However, when // using the SDL rendering engine, the platform SDK is not used for anything // critical, and so its use can be avoided if necessary. #ifdef _WIN32 #define CORSIX_TH_USE_WIN32_SDK #endif /** Movie options **/ // FFmpeg // If this library is not present on your system, then you can comment out the // next line and the game will not have movies. #cmakedefine CORSIX_TH_USE_FFMPEG /** Update check options **/ // If defined then an http request will be made using libcurl to check to see // if the current version is the latest. #cmakedefine WITH_UPDATE_CHECK /** MIDI device support **/ // If defined then support playing MIDI on attached MIDI devices. #cmakedefine WITH_MIDI_DEVICE /** Lua modules options */ // If defined then lua modules are considered to have been linked into the // binary instead of loaded at runtime. #cmakedefine CORSIX_TH_LINK_LUA_MODULES //* Tracy profiler linked */ // If defined then the Tracy profiler is linked. #cmakedefine WITH_TRACY // Stubs for macros provided by Tracy when not linked. #ifndef WITH_TRACY #define FrameMark #define ZoneScoped #define ZoneScopedN(x) #define ZoneText(x,y) #define ZoneTextV(x,y,z) #define ZoneTextF(x,...) #define ZoneTextVF(x,y,...) #define ZoneName(x,y) #define ZoneNameV(x,y,z) #define ZoneNameF(x,...) #define ZoneNameVF(x,y,...) #endif #ifdef _MSC_VER #define CORSIX_TH_USE_PACK_PRAGMAS 1 #define CORSIX_TH_PACKED_FLAGS #else #define CORSIX_TH_USE_PACK_PRAGMAS 0 #define CORSIX_TH_PACKED_FLAGS __attribute__((__packed__)) #endif /** Standard includes **/ #include // IWYU pragma: export #include // IWYU pragma: export // We bring in the most common stddef and stdint types to avoid typing // clang-format off using std::int8_t; using std::int16_t; using std::int32_t; using std::int64_t; using std::size_t; using std::uint8_t; using std::uint16_t; using std::uint32_t; using std::uint64_t; // clang-format on /** Report operating system **/ #cmakedefine CORSIX_TH_OS "@CORSIX_TH_OS@" /** Report system architecture **/ #cmakedefine CORSIX_TH_ARCH "@CORSIX_TH_ARCH@" /** Set default value of font file **/ #cmakedefine CORSIX_TH_FONT "@CORSIX_TH_FONT@" #endif // CORSIX_TH_CONFIG_H_