[Pcsclite-cvs-commit] r6762 - trunk/Drivers/ccid/MacOSX

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Wed Oct 2 15:18:08 UTC 2013


Author: rousseau
Date: 2013-10-02 15:18:08 +0000 (Wed, 02 Oct 2013)
New Revision: 6762

Modified:
   trunk/Drivers/ccid/MacOSX/configure
Log:
Simplify the code for a NON generic driver

- do not build a class driver (not yet used by pcsc-lite on Mac OS X)
  using --disable-class

- use a specific bundle name to NOT overwrite the official CCID driver
  using --enable-bundle=ifd-ccid-$BUNDLE_ID.bundle

- differentiate each libccid library by the dynamic linker
  using --prefix=/fake/$BUNDLE_ID


Modified: trunk/Drivers/ccid/MacOSX/configure
===================================================================
--- trunk/Drivers/ccid/MacOSX/configure	2013-10-02 15:06:45 UTC (rev 6761)
+++ trunk/Drivers/ccid/MacOSX/configure	2013-10-02 15:18:08 UTC (rev 6762)
@@ -82,12 +82,20 @@
 # simulate a composite device as multi slots
 CONFIGURE_ARGS="$CONFIGURE_ARGS --enable-composite-as-multislot"
 
-# do not build a class driver (not yet used by pcsc-lite on Mac OS X)
-#CONFIGURE_ARGS="$CONFIGURE_ARGS --disable-class"
+# set BUNDLE_ID to a specific value for a specific driver
+#BUNDLE_ID="vendor-reader"
+if [ ! -z "$BUNDLE_ID" ]
+then
+	# do not build a class driver (not yet used by pcsc-lite on Mac OS X)
+	CONFIGURE_ARGS="$CONFIGURE_ARGS --disable-class"
 
-# use a specific bundle name to NOT overwrite the official CCID driver
-#CONFIGURE_ARGS="$CONFIGURE_ARGS --enable-bundle=ifd-ccid-vendor-reader.bundle"
+	# use a specific bundle name to NOT overwrite the official CCID driver
+	CONFIGURE_ARGS="$CONFIGURE_ARGS --enable-bundle=ifd-ccid-$BUNDLE_ID.bundle"
 
+	# differentiate each libccid library by the dynamic linker
+	CONFIGURE_ARGS="$CONFIGURE_ARGS	--prefix=/fake/$BUNDLE_ID"
+fi
+
 set -x
 ./configure \
 	CFLAGS="$CFLAGS" \




More information about the Pcsclite-cvs-commit mailing list