Change in osmo-remsim[master]: introduce --disable-remsim-client-{st2, ifdhanndler}

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sat Mar 14 17:35:50 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-remsim/+/17480 )

Change subject: introduce --disable-remsim-client-{st2,ifdhanndler}
......................................................................

introduce --disable-remsim-client-{st2,ifdhanndler}

Change-Id: I4aaeeedc9df873f2e7edfbfab587fec2dfad85c4
---
M configure.ac
M src/Makefile.am
M src/client/Makefile.am
3 files changed, 22 insertions(+), 11 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/configure.ac b/configure.ac
index 586d7ef..7af6801 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,20 +55,28 @@
 	[osmo_ac_build_bankd="$enableval"],[osmo_ac_build_bankd="yes"])
 if test "$osmo_ac_build_bankd" = "yes"; then
 	AC_DEFINE(BUILD_BANKD, 1, [Define if we want to build osmo-remsim-bankd])
-	PKG_CHECK_MODULES(OSMOSIM, libosmosim)
 	PKG_CHECK_MODULES(PCSC, libpcsclite)
 fi
 AM_CONDITIONAL(BUILD_BANKD, test "x$osmo_ac_build_bankd" = "xyes")
 AC_SUBST(BUILD_BANKD)
 
-AC_ARG_ENABLE([remsim-client],[AS_HELP_STRING([--disable-remsim-client], [Build osmo-remsim-client])],
-	[osmo_ac_build_client="$enableval"],[osmo_ac_build_client="yes"])
-if test "$osmo_ac_build_client" = "yes"; then
-	AC_DEFINE(BUILD_CLIENT, 1, [Define if we want to build osmo-remsim-client])
-	PKG_CHECK_MODULES(OSMOSIM, libosmosim)
+AC_ARG_ENABLE([remsim-client-st2],[AS_HELP_STRING([--disable-remsim-client-st2], [Build osmo-remsim-client-st2])],
+	[osmo_ac_build_client_st2="$enableval"],[osmo_ac_build_client_st2="yes"])
+if test "$osmo_ac_build_client_st2" = "yes"; then
+	AC_DEFINE(BUILD_CLIENT_ST2, 1, [Define if we want to build osmo-remsim-client-st2])
 	PKG_CHECK_MODULES(OSMOUSB, libosmousb)
 	PKG_CHECK_MODULES(OSMOSIMTRACE2, libosmo-simtrace2)
 	PKG_CHECK_MODULES(USB, libusb-1.0)
+fi
+AM_CONDITIONAL(BUILD_CLIENT_ST2, test "x$osmo_ac_build_client_st2" = "xyes")
+AC_SUBST(BUILD_CLIENT_ST2)
+
+AC_ARG_ENABLE([remsim-client-ifdhandler],[AS_HELP_STRING([--disable-remsim-client-ifdhandler],
+							 [Build osmo-remsim-client-ifdhandler])],
+	[osmo_ac_build_client_ifdhandler="$enableval"],[osmo_ac_build_client_ifdhandler="yes"])
+if test "$osmo_ac_build_client_ifdhandler" = "yes"; then
+	AC_DEFINE(BUILD_CLIENT_IFDHANDLER, 1, [Define if we want to build osmo-remsim-client-ifdhandler])
+	PKG_CHECK_MODULES(PCSC, libpcsclite)
 
 	ifd_dropdir=`pkg-config --variable=usbdropdir libpcsclite`
 	# allow user to override the dropdir for the PCSC driver bundle
@@ -80,8 +88,8 @@
 				[serialconfdir="${withval}"], [serialconfdir="${_serialconfdir}"])
 	AC_SUBST(serialconfdir)
 fi
-AM_CONDITIONAL(BUILD_CLIENT, test "x$osmo_ac_build_client" = "xyes")
-AC_SUBST(BUILD_CLIENT)
+AM_CONDITIONAL(BUILD_CLIENT_IFDHANDLER, test "x$osmo_ac_build_client_ifdhandler" = "xyes")
+AC_SUBST(BUILD_CLIENT_IFDHANDLER)
 
 
 AC_CONFIG_MACRO_DIR([m4])
diff --git a/src/Makefile.am b/src/Makefile.am
index 5f71df5..9059324 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -5,9 +5,7 @@
 if BUILD_SERVER
 SUBDIRS += server
 endif
-if BUILD_CLIENT
 SUBDIRS += client
-endif
 
 AM_CFLAGS = -Wall -I$(top_srcdir)/include -I$(top_builddir)/include \
 	    $(OSMOCORE_CFLAGS) $(OSMOGSM_CFLAGS) $(OSMOABIS_CFLAGS) \
diff --git a/src/client/Makefile.am b/src/client/Makefile.am
index 871221a..b4d5bd5 100644
--- a/src/client/Makefile.am
+++ b/src/client/Makefile.am
@@ -4,7 +4,7 @@
 	    $(OSMOSIMTRACE2_CFLAGS) \
 	    -I$(top_srcdir)/include/osmocom/rspro
 
-bin_PROGRAMS = osmo-remsim-client-st2 osmo-remsim-client-shell
+bin_PROGRAMS = osmo-remsim-client-shell
 
 osmo_remsim_client_shell_SOURCES = user_shell.c remsim_client_main.c \
 				   remsim_client.c main_fsm.c ../rspro_client_fsm.c ../debug.c
@@ -12,6 +12,7 @@
 osmo_remsim_client_shell_LDADD = $(OSMOCORE_LIBS) $(OSMOGSM_LIBS) $(OSMOABIS_LIBS) \
 		      $(top_builddir)/src/libosmo-rspro.la
 
+if BUILD_CLIENT_IFDHANDLER
 EXTRA_DIST=PkgInfo osmo-remsim-client-reader_conf.in
 serialconf_DATA=osmo-remsim-client-reader_conf
 bundledir=$(usbdropdir)/libifd-osmo-remsim-client.bundle/Contents
@@ -25,7 +26,10 @@
 libifd_remsim_client_la_LDFLAGS = -no-undefined
 libifd_remsim_client_la_LIBADD = $(OSMOCORE_LIBS) $(OSMOGSM_LIBS) $(OSMOABIS_LIBS) \
 		      $(top_builddir)/src/libosmo-rspro.la
+endif
 
+if BUILD_CLIENT_ST2
+bin_PROGRAMS += osmo-remsim-client-st2
 osmo_remsim_client_st2_SOURCES = user_simtrace2.c remsim_client_main.c \
 				 remsim_client.c main_fsm.c ../rspro_client_fsm.c ../debug.c
 osmo_remsim_client_st2_CPPFLAGS = -DUSB_SUPPORT
@@ -34,5 +38,6 @@
 			       $(OSMOUSB_LIBS) $(OSMOSIMTRACE2_LIBS) \
 			       $(USB_LIBS) \
 			       $(top_builddir)/src/libosmo-rspro.la
+endif
 
 noinst_HEADERS = client.h 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/17480
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: I4aaeeedc9df873f2e7edfbfab587fec2dfad85c4
Gerrit-Change-Number: 17480
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200314/3baea19d/attachment.htm>


More information about the gerrit-log mailing list