Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
a8bc07c8
Commit
a8bc07c8
authored
Jan 08, 2014
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add KICAD_REPO_NAME to the about dialog and build_version.cpp
parent
e9d3f787
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
CMakeLists.txt
CMakeLists.txt
+4
-0
config.h.cmake
CMakeModules/config.h.cmake
+7
-5
build_version.cpp
common/build_version.cpp
+2
-1
No files found.
CMakeLists.txt
View file @
a8bc07c8
...
...
@@ -56,6 +56,10 @@ mark_as_advanced( KICAD_SKIP_BOOST ) # Normal builders should build Boost.
option
(
BUILD_GITHUB_PLUGIN
"Build the GITHUB_PLUGIN for pcbnew."
OFF
)
# This can be set to a custom name to brag about a particular branch in the "About" dialog:
set
(
KICAD_REPO_NAME
"product"
CACHE STRING
"Name of the tree from which this build came."
)
# All CMake downloads go here. Suggested is up in the source tree, not in the build dir where they
# would have to be downloaded over and over again. The default is to choose a directory that is
# hidden on linux (starts with a '.') because there is a way to exclude this directory when grepping
...
...
CMakeModules/config.h.cmake
View file @
a8bc07c8
...
...
@@ -59,7 +59,7 @@
#define LEGACY_BOARD_FILE_VERSION 2
/// The install prefix defined in CMAKE_INSTALL_PREFIX.
#define DEFAULT_INSTALL_PATH
"@CMAKE_INSTALL_PREFIX
"
#define DEFAULT_INSTALL_PATH
"@CMAKE_INSTALL_PREFIX@
"
/// Default footprint library install path when installed with `make install`.
#define DEFAULT_FP_LIB_PATH "@KICAD_FP_LIB_INSTALL_PATH@"
...
...
@@ -67,5 +67,7 @@
/// When defined, build the GITHUB_PLUGIN for pcbnew.
#cmakedefine BUILD_GITHUB_PLUGIN
/// Name of repo from which this build came.
#define KICAD_REPO_NAME "@KICAD_REPO_NAME@"
#endif // CONFIG_H_
common/build_version.cpp
View file @
a8bc07c8
...
...
@@ -17,7 +17,8 @@ wxString GetBuildVersion()
{
wxString
msg
=
wxString
::
Format
(
wxT
(
"%s-%s"
),
wxT
(
KICAD_BUILD_VERSION
)
wxT
(
KICAD_BUILD_VERSION
),
wxT
(
KICAD_REPO_NAME
)
);
return
msg
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment