Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
302e8590
Commit
302e8590
authored
2 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
build: fix JAMI_REVISION, JAMI_DIRTY_REPO
Change-Id: I879224318b47c151db91a12c0260dea25e33553d
parent
412c301f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
globals.mk
+4
-4
4 additions, 4 deletions
globals.mk
src/buildinfo.cpp
+7
-7
7 additions, 7 deletions
src/buildinfo.cpp
with
11 additions
and
11 deletions
globals.mk
+
4
−
4
View file @
302e8590
...
...
@@ -2,8 +2,8 @@
src
=
$(
abs_top_srcdir
)
RING
_DIRTY_REPO
?=
$(
shell git diff-index
--quiet
HEAD 2>/dev/null
||
echo
dirty
)
RING
_REVISION
?=
$(
shell git log
-1
--format
=
"%h"
--abbrev
=
10 2>/dev/null
)
JAMI
_DIRTY_REPO
?=
$(
shell git diff-index
--quiet
HEAD 2>/dev/null
||
echo
dirty
)
JAMI
_REVISION
?=
$(
shell git log
-1
--format
=
"%h"
--abbrev
=
10 2>/dev/null
)
JAMI_DATADIR
?=
$(
datadir
)
/jami
# Preprocessor flags
...
...
@@ -17,7 +17,7 @@ AM_CPPFLAGS += \
-DPREFIX
=
\"
$(
prefix
)
\"
\
-DJAMI_DATADIR
=
\"
$(
JAMI_DATADIR
)
\"
\
-DENABLE_TRACE
\
-
LIB
JAMI_REVISION
=
\"
$(
RING
_REVISION
)
\"
\
-
LIB
JAMI_DIRTY_REPO
=
\"
$(
RING
_DIRTY_REPO
)
\"
\
-
D
JAMI_REVISION
=
\"
$(
JAMI
_REVISION
)
\"
\
-
D
JAMI_DIRTY_REPO
=
\"
$(
JAMI
_DIRTY_REPO
)
\"
\
-DPJSIP_MAX_PKT_LEN
=
8000
\
-DPJ_AUTOCONF
=
1
This diff is collapsed.
Click to expand it.
src/buildinfo.cpp
+
7
−
7
View file @
302e8590
...
...
@@ -27,12 +27,12 @@
#include
<ciso646>
// fix windows compiler bug
#ifndef
RING
_REVISION
#define
RING
_REVISION ""
#ifndef
JAMI
_REVISION
#define
JAMI
_REVISION ""
#endif
#ifndef
RING
_DIRTY_REPO
#define
RING
_DIRTY_REPO ""
#ifndef
JAMI
_DIRTY_REPO
#define
JAMI
_DIRTY_REPO ""
#endif
#ifndef PACKAGE_VERSION
...
...
@@ -44,9 +44,9 @@ namespace libjami {
const
char
*
version
()
noexcept
{
return
RING
_REVISION
[
0
]
and
RING
_DIRTY_REPO
[
0
]
?
PACKAGE_VERSION
"-"
RING
_REVISION
"-"
RING
_DIRTY_REPO
:
(
RING
_REVISION
[
0
]
?
PACKAGE_VERSION
"-"
RING
_REVISION
:
PACKAGE_VERSION
);
return
JAMI
_REVISION
[
0
]
and
JAMI
_DIRTY_REPO
[
0
]
?
PACKAGE_VERSION
"-"
JAMI
_REVISION
"-"
JAMI
_DIRTY_REPO
:
(
JAMI
_REVISION
[
0
]
?
PACKAGE_VERSION
"-"
JAMI
_REVISION
:
PACKAGE_VERSION
);
}
const
char
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment