|
KiCad PCB EDA Suite
|
#include <wx/wx.h>#include <config.h>#include <boost/version.hpp>#include <kiplatform/app.h>#include <font/version_info.h>#include <build_version.h>#include <tuple>#include <mutex>#include <Standard_Version.hxx>#include <ngspice/sharedspice.h>#include <kicad_build_version.h>Go to the source code of this file.
Macros | |
| #define | INCLUDE_KICAD_VERSION |
| #define | ON "ON" << eol |
| #define | OFF "OFF" << eol |
Functions | |
| std::string | GetKicadCurlVersion () |
| std::string | GetCurlLibVersion () |
| void | SetOpenGLInfo (const char *aVendor, const char *aRenderer, const char *aVersion) |
| A setter for OpenGL info when it's initialized. | |
| wxString | GetPlatformGetBitnessName () |
| bool | IsNightlyVersion () |
| Check if the build is meant to be nightly. | |
| wxString | GetBuildVersion () |
| Get the full KiCad version string. | |
| wxString | GetBaseVersion () |
| Get the KiCad version string without the information added by the packagers. | |
| wxString | GetBuildDate () |
| Get the build date as a string. | |
| wxString | GetSemanticVersion () |
| Get the semantic version string for KiCad defined inside the KiCadVersion.cmake file in the variable KICAD_SEMANTIC_VERSION. | |
| wxString | GetMajorMinorVersion () |
| Get only the major and minor version in a string major.minor. | |
| wxString | GetCommitHash () |
| Get the commit hash as a string. | |
| wxString | GetMajorMinorPatchVersion () |
| Get the major, minor and patch version in a string major.minor.patch This is extracted by CMake from the KICAD_SEMANTIC_VERSION variable. | |
| const std::tuple< int, int, int > & | GetMajorMinorPatchTuple () |
| Get the build version numbers as a tuple. | |
| wxString | GetVersionInfoData (const wxString &aTitle, bool aHtml, bool aBrief) |
| Create a version info string for bug reports and the about dialog. | |
Variables | |
| static std::recursive_mutex | s_platformInfoMutex |
| static wxString | s_glVendor |
| static wxString | s_glRenderer |
| static wxString | s_glVersion |
| #define INCLUDE_KICAD_VERSION |
Definition at line 51 of file build_version.cpp.
| #define OFF "OFF" << eol |
Referenced by GetVersionInfoData().
| #define ON "ON" << eol |
Referenced by GetVersionInfoData().
| wxString GetBaseVersion | ( | ) |
Get the KiCad version string without the information added by the packagers.
It is created by CMake in the KICAD_VERSION variable.
Definition at line 93 of file build_version.cpp.
Referenced by DS_DRAW_ITEM_LIST::BuildFullText().
| wxString GetBuildDate | ( | ) |
Get the build date as a string.
Definition at line 100 of file build_version.cpp.
Referenced by buildKicadAboutBanner(), GetVersionInfoData(), and KICAD_CURL_EASY::KICAD_CURL_EASY().
| wxString GetBuildVersion | ( | ) |
Get the full KiCad version string.
This string contains platform-specific information added by the packagers. It is created by CMake in the KICAD_FULL_VERSION variable.
Definition at line 86 of file build_version.cpp.
Referenced by AddGerberX2Header(), GERBER_JOBFILE_WRITER::addJSONHeader(), buildKicadAboutBanner(), GENCAD_EXPORTER::createHeaderInfoData(), PCB_EDIT_FRAME::Export_IDF3(), FormatBoardStatisticsJson(), PLACE_FILE_EXPORTER::GenPositionData(), PLACE_FILE_EXPORTER::GenReportData(), GetVersionInfoData(), API_HANDLER_COMMON::handleGetVersion(), KICAD_CURL_EASY::KICAD_CURL_EASY(), NETLIST_EXPORTER_XML::makeDesignHeader(), ODB_MISC_ENTITY::ODB_MISC_ENTITY(), DSN::PARSER::PARSER(), APP_MONITOR::SENTRY::sentryInit(), GERBER_PLOTTER::StartPlot(), EDA_DATA::Write(), EXCELLON_WRITER::writeEXCELLONHeader(), PCB_CALCULATOR_DATAFILE::WriteHeader(), and NETLIST_EXPORTER_CADSTAR::WriteNetlist().
| wxString GetCommitHash | ( | ) |
Get the commit hash as a string.
Definition at line 121 of file build_version.cpp.
Referenced by CLI::VERSION_COMMAND::doPerform(), and APP_MONITOR::SENTRY::sentryInit().
|
extern |
Definition at line 76 of file kicad_curl.cpp.
Referenced by GetVersionInfoData().
|
extern |
Definition at line 70 of file kicad_curl.cpp.
References KICAD_CURL::GetVersion().
Referenced by GetVersionInfoData().
| const std::tuple< int, int, int > & GetMajorMinorPatchTuple | ( | ) |
Get the build version numbers as a tuple.
Definition at line 135 of file build_version.cpp.
Referenced by ENV_VAR::GetVersionedEnvVarName(), API_HANDLER_COMMON::handleGetVersion(), and LIB_TABLE::migrate().
| wxString GetMajorMinorPatchVersion | ( | ) |
Get the major, minor and patch version in a string major.minor.patch This is extracted by CMake from the KICAD_SEMANTIC_VERSION variable.
Definition at line 128 of file build_version.cpp.
Referenced by DIALOG_UPDATE_NOTICE::DIALOG_UPDATE_NOTICE(), CLI::VERSION_COMMAND::doPerform(), PCB_IO_IPC2581::generateHistorySection(), WEBVIEW_PANEL::WEBVIEW_PANEL(), DRC_REPORT::WriteJsonReport(), and ERC_REPORT::WriteJsonReport().
| wxString GetMajorMinorVersion | ( | ) |
Get only the major and minor version in a string major.minor.
This is extracted by CMake from the KICAD_SEMANTIC_VERSION variable.
Definition at line 114 of file build_version.cpp.
Referenced by PATHS::CalculateUserSettingsPath(), KICAD_MANAGER_FRAME::CreateNewProject(), EVT_MENU_RANGE(), DS_DATA_MODEL_IO::Format(), DS_DATA_MODEL_IO::Format(), SCH_IO_KICAD_SEXPR::Format(), PCB_IO_KICAD_SEXPR::format(), SCH_IO_KICAD_SEXPR_LIB_CACHE::formatLibraryHeader(), SETTINGS_MANAGER::GetSettingsVersion(), PATHS::GetUserCachePath(), PATHS::getUserDocumentPath(), PGM_BASE::InitPgm(), HTML_MESSAGE_BOX::OnHTMLLinkClicked(), PGM_SINGLE_TOP::OnPgmInit(), BITMAPCONV_INFO::outputDataHeader(), PLUGIN_CONTENT_MANAGER::PLUGIN_CONTENT_MANAGER(), KICAD_MANAGER_FRAME::ProjectChanged(), CLIPBOARD_IO::SaveBoard(), PCB_IO_KICAD_SEXPR::SaveBoard(), CLIPBOARD_IO::SaveSelection(), APP_MONITOR::SENTRY::sentryInit(), COMMON_CONTROL::ShowHelp(), STARTWIZARD_WELCOME_PAGE::STARTWIZARD_WELCOME_PAGE(), and GBR_TO_PCB_EXPORTER::writePcbHeader().
| wxString GetPlatformGetBitnessName | ( | ) |
Definition at line 71 of file build_version.cpp.
References s_platformInfoMutex.
Referenced by buildKicadAboutBanner(), GetVersionInfoData(), and KICAD_CURL_EASY::KICAD_CURL_EASY().
| wxString GetSemanticVersion | ( | ) |
Get the semantic version string for KiCad defined inside the KiCadVersion.cmake file in the variable KICAD_SEMANTIC_VERSION.
Definition at line 107 of file build_version.cpp.
Referenced by UPDATE_MANAGER::CheckForUpdate(), STEP_PCB_MODEL::WriteGLTF(), and STEP_PCB_MODEL::WritePLY().
| wxString GetVersionInfoData | ( | const wxString & | aTitle, |
| bool | aHtml = false, | ||
| bool | aBrief = false ) |
Create a version info string for bug reports and the about dialog.
| aTitle | is the application title to include at the top of the report |
| aBrief | = true to condense information for the bug report URL |
| aHtml | = true to use a minimal HTML format, false for plan text |
Definition at line 143 of file build_version.cpp.
References KIFONT::VERSION_INFO::FontConfig(), KIFONT::VERSION_INFO::FreeType(), GetBuildDate(), GetBuildVersion(), GetCurlLibVersion(), GetKicadCurlVersion(), GetPlatformGetBitnessName(), KIFONT::VERSION_INFO::HarfBuzz(), KIPLATFORM::APP::IsOperatingSystemUnsupported(), OFF, ON, s_glRenderer, s_glVendor, s_glVersion, and s_platformInfoMutex.
Referenced by DIALOG_ABOUT::createNotebooks(), CLI::VERSION_COMMAND::doPerform(), DIALOG_ABOUT::onCopyVersionInfo(), and COMMON_CONTROL::ReportBug().
| bool IsNightlyVersion | ( | ) |
Check if the build is meant to be nightly.
Definition at line 80 of file build_version.cpp.
Referenced by DIALOG_ABOUT::DIALOG_ABOUT(), and EVT_MENU_RANGE().
| void SetOpenGLInfo | ( | const char * | aVendor, |
| const char * | aRenderer, | ||
| const char * | aVersion ) |
A setter for OpenGL info when it's initialized.
Definition at line 63 of file build_version.cpp.
References s_glRenderer, s_glVendor, and s_glVersion.
Referenced by KIGFX::OPENGL_GAL::init(), EDA_3D_CANVAS::initializeOpenGL(), and EDA_3D_MODEL_VIEWER::ogl_initialize().
|
static |
Definition at line 60 of file build_version.cpp.
Referenced by GetVersionInfoData(), and SetOpenGLInfo().
|
static |
Definition at line 59 of file build_version.cpp.
Referenced by GetVersionInfoData(), and SetOpenGLInfo().
|
static |
Definition at line 61 of file build_version.cpp.
Referenced by GetVersionInfoData(), and SetOpenGLInfo().
|
static |
Definition at line 56 of file build_version.cpp.
Referenced by GetPlatformGetBitnessName(), and GetVersionInfoData().