first commit

This commit is contained in:
Your Name
2022-10-20 20:29:11 +08:00
commit 4d531f8044
3238 changed files with 1387862 additions and 0 deletions

42
src/Include/cmdargs.h Normal file
View File

@@ -0,0 +1,42 @@
//
// CMDLINE Argument External Definitions. A hack to make command line
// argument values visible to affected program locations.
//
// When implementing this feature my design intent was that program
// options should be set according to the following rules of
// option hierarchy.
//
// 1. Command line options have top priority.
// 2. Environmental options over ride default options.
// 3. All options must have a meaningful state. On a given platform,
// some option setting is most likely to be desired by that community.
//
// CHotchkiss 10 Feb 98
//
// $Id$
#ifndef _CMDARGS_H
#define _CMDARGS_H
// buffers here are all MAXPATH in length. IS THIS DEFINE UNIVERSAL?
extern char acArgbuf[];
extern int debugArgValue;
extern int priorityArgValue;
extern char rootArgbuf[];
extern int viewArg;
extern char logArgbuf[];
// These are used by initialization and RE initialization routines
// (none right now) to set up for running (or from warm reset.)
extern const char *DefaultRootDir;
extern const char *DefaultAircraft;
extern const char *DefaultDebuglog;
extern const int DefaultViewMode;
#endif
// end of cmdargs.h

View File

@@ -0,0 +1,81 @@
#cmakedefine FG_NDEBUG
#cmakedefine ENABLE_SIMD
#cmakedefine ENABLE_SP_FDM
#cmakedefine JSBSIM_USE_GROUNDREACTIONS
// JSBSim needs this, to switch from standalone to in-FG mode
#define FGFS
#define PU_USE_NONE // PLIB needs this to avoid linking to GLUT
#cmakedefine ENABLE_PLIB_JOYSTICK
// threads are required (used to be optional)
#define ENABLE_THREADS 1
// audio support is assumed
#define ENABLE_AUDIO_SUPPORT 1
#cmakedefine HAVE_SYS_TIME_H
#cmakedefine HAVE_WINDOWS_H
#cmakedefine HAVE_MKFIFO
#define VERSION "@FLIGHTGEAR_VERSION@"
#define FLIGHTGEAR_VERSION "@FLIGHTGEAR_VERSION@"
#define FLIGHTGEAR_MAJOR_VERSION @FG_VERSION_MAJOR@
#define FLIGHTGEAR_MINOR_VERSION @FG_VERSION_MINOR@
#define FLIGHTGEAR_PATCH_VERSION @FG_VERSION_PATCH@
#cmakedefine ENABLE_UIUC_MODEL
#cmakedefine ENABLE_LARCSIM
#cmakedefine ENABLE_YASIM
#cmakedefine ENABLE_JSBSIM
#define PKGLIBDIR "@FG_DATA_DIR@"
#define FGSRCDIR "@PROJECT_SOURCE_DIR@"
#define FGBUILDDIR "@PROJECT_BINARY_DIR@"
#define WEB_BROWSER "@WEB_BROWSER@"
// Ensure FG_HAVE_xxx always have a value
#define FG_HAVE_HLA (@FG_HAVE_HLA@ + 0)
#define FG_HAVE_DDS (@FG_HAVE_DDS@ + 0)
#define FG_HAVE_GPERFTOOLS (@FG_HAVE_GPERFTOOLS@ + 0)
#cmakedefine SYSTEM_SQLITE
#cmakedefine ENABLE_IAX
#cmakedefine HAVE_DBUS
#cmakedefine ENABLE_HID_INPUT
#cmakedefine ENABLE_PLIB_JOYSTICK
#cmakedefine HAVE_QT
#cmakedefine ENABLE_QQ_UI
#cmakedefine HAVE_SYS_TIME_H
#cmakedefine HAVE_SYS_TIMEB_H
#cmakedefine HAVE_TIMEGM
#cmakedefine HAVE_DAYLIGHT
#cmakedefine HAVE_FTIME
#cmakedefine HAVE_GETTIMEOFDAY
#define FG_TEST_SUITE_DATA "@FG_TEST_SUITE_DATA@"
#define FG_BUILD_TYPE "@FG_BUILD_TYPE@"
#define HAVE_PUI
#cmakedefine HAVE_QRC_TRANSLATIONS
#cmakedefine ENABLE_SWIFT
#cmakedefine ENABLE_PUICOMPAT
#cmakedefine HAVE_SENTRY
#define SENTRY_API_KEY "@sentry_api_key@"
#cmakedefine ENABLE_OSGXR

View File

@@ -0,0 +1,15 @@
// template file to produce flightgearBuildId.h header
// this is produced at build time (not Cmake time) via the special
// target defined by GenerateBuildInfo.Cmake
// this ensures the info is always up to date, which does not happen
// with a simple configure_file command
// for more info, see:
// https://stackoverflow.com/questions/31057208/force-cmake-to-generate-configure-file-target-every-build
#define JENKINS_BUILD_NUMBER @JENKINS_BUILD_NUMBER@
#define JENKINS_BUILD_ID "@JENKINS_BUILD_ID@"
#define REVISION "@REVISION@"