work on cross compile build

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@615 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2011-11-05 03:30:36 +00:00
parent 5088c7daa2
commit d2153ce323
2 changed files with 7 additions and 16 deletions

View File

@@ -16,10 +16,13 @@ do_subst = sed \
-e 's,[@]top_srcdir[@],$(top_srcdir),g'
win:
cd $(top_srcdir)/src/opensc && \
./bootstrap && \
./configure --disable-doc && \
env OPENSSL_VERSION="1" OPENSSL_URL="https://www2.informatik.hu-berlin.de/~morgner/files/openssl-1.tar.gz" EXTRA_OPENSSL_CONFIG="experimental-pace" win32/installer_from_build.sh
make clean
env CHOST=i586-mingw32msvc CBUILD=i686-pc-linux-gnu ./configure \
--sbindir=/bin \
OPENSSL_CFLAGS="-I`pwd`/src/opensc/win32/build/image/opensc/include" \
OPENSSL_LIBS="-L`pwd`/src/opensc/win32/build/image/opensc/lib -lcrypto" \
OPENSC_LIBS="-L`pwd`/src/opensc/win32/build/image/opensc/lib -lopensc"
make install DESTDIR=`pwd`/src/opensc/win32/build/image/opensc
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libnpa.pc

View File

@@ -40,18 +40,6 @@
int initialize(int reader_id, const char *cdriver, int verbose,
sc_context_t **ctx, sc_reader_t **reader);
/**
* @brief Parse an APDU buffer
*
* @param[in] ctx sc context
* @param[in] buf Buffer of APDU
* @param[in] len Length of \a buf
* @param [in,out] apdu Where to write the initialized APDU
*
* @return \c SC_SUCCESS or error code if an error occurred
*/
int build_apdu(sc_context_t *ctx, const u8 *buf, size_t len, sc_apdu_t *apdu);
/**
* @brief Print binary data to a file stream
*