Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
46ef20bd
Unverified
Commit
46ef20bd
authored
Jan 05, 2020
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/custom_version_string' into 3.6.x
Attributes GH PR #607:
https://github.com/ArcticaProject/nx-libs/pull/607
parents
04962efa
ec1b3a44
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
8 deletions
+46
-8
Makefile
Makefile
+11
-4
xorg.cf
nx-X11/config/cf/xorg.cf
+4
-0
configure.ac
nxcomp/configure.ac
+7
-0
Loop.cpp
nxcomp/src/Loop.cpp
+9
-4
configure.ac
nxcompshad/configure.ac
+7
-0
configure.ac
nxproxy/configure.ac
+8
-0
No files found.
Makefile
View file @
46ef20bd
...
...
@@ -34,6 +34,10 @@ ifneq ($(shell pkg-config --exists fontutil && echo yes), yes)
$(warning
fontutil
devel
package
missing,
using
imake
default
values)
endif
ifneq
"$(strip $(NX_VERSION_CUSTOM))"
""
CUSTOM_VERSION_DEFINE
=
NX_VERSION_CUSTOM
=
"
$(NX_VERSION_CUSTOM)
"
endif
IMAKE_DEFINES
?=
SHELL
:=
/bin/bash
...
...
@@ -96,6 +100,9 @@ version:
-e
's/###NX_VERSION_PATCH###/
$(
shell
./version.sh 4
)
/'
\
nx-X11/config/cf/nxversion.def.in
\
>
nx-X11/config/cf/nxversion.def
ifneq
"$(strip $(NX_VERSION_CUSTOM))"
""
echo
'#define NX_VERSION_CUSTOM $(NX_VERSION_CUSTOM)'
>>nx-X11/config/cf/nxversion.def
endif
imakeconfig
:
# auto-config some setting
...
...
@@ -157,17 +164,17 @@ build-full: build-env
# in the full case, we rely on "magic" in the nx-X11 imake-based makefiles...
# build nxcomp first
cd
nxcomp
&&
autoreconf
-vfsi
&&
(${CONFIGURE})
&&
${MAKE}
cd
nxcomp
&&
autoreconf
-vfsi
&&
(${CONFIGURE}
$(CUSTOM_VERSION_DEFINE)
)
&&
${MAKE}
# build libNX_X11 second
cd
nx-X11/lib
&&
autoreconf
-vfsi
&&
(${CONFIGURE}
--disable-poll)
&&
${MAKE}
cd
nx-X11/lib
&&
autoreconf
-vfsi
&&
(${CONFIGURE}
$(CUSTOM_VERSION_DEFINE)
--disable-poll)
&&
${MAKE}
mkdir
-p
nx-X11/exports/lib/
$(SYMLINK_FILE)
../../lib/src/.libs/libNX_X11.so
nx-X11/exports/lib/libNX_X11.so
$(SYMLINK_FILE)
../../lib/src/.libs/libNX_X11.so.6
nx-X11/exports/lib/libNX_X11.so.6
$(SYMLINK_FILE)
../../lib/src/.libs/libNX_X11.so.6.3.0
nx-X11/exports/lib/libNX_X11.so.6.3.0
# build nxcompshad third
cd
nxcompshad
&&
autoreconf
-vfsi
&&
(${CONFIGURE})
&&
${MAKE}
cd
nxcompshad
&&
autoreconf
-vfsi
&&
(${CONFIGURE}
$(CUSTOM_VERSION_DEFINE)
)
&&
${MAKE}
# build nxagent fourth
./mesa-quilt
push
-a
...
...
@@ -175,7 +182,7 @@ build-full: build-env
${MAKE}
-C
nx-X11
World
USRLIBDIR
=
"
$(USRLIBDIR)
"
SHLIBDIR
=
"
$(SHLIBDIR)
"
IMAKE_DEFINES
=
"
$(IMAKE_DEFINES)
"
# build nxproxy fifth
cd
nxproxy
&&
autoreconf
-vfsi
&&
(${CONFIGURE})
&&
${MAKE}
cd
nxproxy
&&
autoreconf
-vfsi
&&
(${CONFIGURE}
$(CUSTOM_VERSION_DEFINE)
)
&&
${MAKE}
# "build" nxdialog last
cd
nxdialog
&&
autoreconf
-vfsi
&&
(${CONFIGURE})
&&
${MAKE}
...
...
nx-X11/config/cf/xorg.cf
View file @
46ef20bd
...
...
@@ -59,8 +59,12 @@ RELEASE_VERSION = ReleaseVersion
#if !defined(nxVersionString) && \
defined(NX_VERSION_MAJOR) && defined(NX_VERSION_MINOR) && \
defined(NX_VERSION_MICRO) && defined(NX_VERSION_PATCH)
#if defined(NX_VERSION_CUSTOM)
# define nxVersionString NX_VERSION_CUSTOM (`echo NX_VERSION_MAJOR NX_VERSION_MINOR NX_VERSION_MICRO NX_VERSION_PATCH | sed 's/ /./g'`)
#else
# define nxVersionString `echo NX_VERSION_MAJOR NX_VERSION_MINOR NX_VERSION_MICRO NX_VERSION_PATCH | sed 's/ /./g'`
#endif
#endif
/*
* NX versions are M.m.µ.p, and NXVersion is:
...
...
nxcomp/configure.ac
View file @
46ef20bd
...
...
@@ -19,6 +19,13 @@ AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-bzip2])
# Initialize libtool
AC_PROG_LIBTOOL
# enable this to add the variable to the Makefiles
#AC_ARG_VAR(NX_VERSION_CUSTOM, [custom version string])
if test "x$NX_VERSION_CUSTOM" != x; then
AC_DEFINE_UNQUOTED([NX_VERSION_CUSTOM], ["${NX_VERSION_CUSTOM}"], [user provided custom version string])
fi
COMP_VERSION=nxcomp_version
AC_SUBST([COMP_VERSION])
...
...
nxcomp/src/Loop.cpp
View file @
46ef20bd
...
...
@@ -13308,13 +13308,18 @@ void PrintConnectionInfo()
void
PrintVersionInfo
()
{
cerr
<<
"NXPROXY - "
<<
"Version "
cerr
<<
"NXPROXY - Version "
#ifdef NX_VERSION_CUSTOM
<<
NX_VERSION_CUSTOM
<<
" ("
#endif
<<
control
->
LocalVersionMajor
<<
"."
<<
control
->
LocalVersionMinor
<<
"."
<<
control
->
LocalVersionPatch
<<
"."
<<
control
->
LocalVersionMaintenancePatch
;
cerr
<<
endl
;
<<
control
->
LocalVersionMaintenancePatch
#ifdef NX_VERSION_CUSTOM
<<
")"
#endif
<<
endl
;
}
void
PrintCopyrightInfo
()
...
...
nxcompshad/configure.ac
View file @
46ef20bd
...
...
@@ -19,6 +19,13 @@ AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-bzip2])
# Initialize libtool
AC_PROG_LIBTOOL
# enable this to add the variable to the Makefiles
#AC_ARG_VAR(NX_VERSION_CUSTOM, [custom version string])
if test "x$NX_VERSION_CUSTOM" != x; then
AC_DEFINE_UNQUOTED([NX_VERSION_CUSTOM], ["${NX_VERSION_CUSTOM}"], [user provided custom version string])
fi
COMPSHAD_VERSION=nxcompshad_version
AC_SUBST([COMPSHAD_VERSION])
...
...
nxproxy/configure.ac
View file @
46ef20bd
...
...
@@ -8,6 +8,7 @@ m4_define([nxproxy_version], m4_esyscmd([tr -d '\n' < VERSION]))
AC_PREREQ(2.60)
AC_INIT([NX Proxy], [nxproxy_version], [https://github.com/ArcticaProject/nx-libs/issues])
AC_CONFIG_AUX_DIR([build-aux])
AC_PROG_CC
AC_CONFIG_SRCDIR([Makefile.am])
...
...
@@ -19,6 +20,13 @@ AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-bzip2])
# Initialize libtool
AC_PROG_LIBTOOL
# enable this to add the variable to the Makefiles
#AC_ARG_VAR(NX_VERSION_CUSTOM, [custom version string])
if test "x$NX_VERSION_CUSTOM" != x; then
AC_DEFINE_UNQUOTED([NX_VERSION_CUSTOM], ["${NX_VERSION_CUSTOM}"], [user provided custom version string])
fi
PROXY_VERSION=nxproxy_version
AC_SUBST([PROXY_VERSION])
...
...
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