Changeset 142


Ignore:
Timestamp:
04/04/08 22:16:16 (4 years ago)
Author:
alonbl
Message:

New build system

Merge new build system:

  1. Support mingw.
  2. Sync with latest opensc.
  3. Remove api documents from distribution.

merge -r 127:141  https://www.opensc-project.org/svn/libp11/branches/alonbl/mingw

_M .
M configure.ac
_M doc
D doc/changelog.sh
M doc/doxygen.conf.in
D doc/export-wiki.xsl
M doc/Makefile.am
A doc/opensc-logo.gif
D doc/generate-api.sh
D doc/export-wiki.sh
AM doc/nonpersistent
A doc/nonpersistent/export-wiki.xsl
A doc/nonpersistent/Makefile.am
A doc/nonpersistent/export-wiki.sh
A doc/nonpersistent/svn2cl.xsl
D doc/svn2cl.xsl
A doc/doxygen-footer.html
_M src
M src/p11_load.c
M src/p11_slot.c
M src/p11_rsa.c
M src/p11_err.c
M src/p11_key.c
A src/libp11.exports
M src/p11_misc.c
M src/p11_cert.c
M src/p11_ops.c
M src/Makefile.am
A src/versioninfo.rc.in
M src/libpkcs11.c
M src/p11_attr.c
M Makefile.am
A svnignore
D aclocal
_M examples

Location:
trunk
Files:
6 deleted
19 edited
10 copied

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore set to
      Makefile
      Makefile.in
      core
      archive
      acinclude.m4
      aclocal.m4
      autom4te.cache
      compile
      confdefs.h
      config.*
      configure
      conftest
      conftest.c
      depcomp
      install-sh
      libtool
      libtool.m4
      ltmain.sh
      missing
      mkinstalldirs
      so_locations
      stamp-h*

      .deps
      .libs
      .#*#
      .*.bak
      .*.orig
      .*.rej
      .*~
      #*#
      *.bak
      *.d
      *.def
      *.dll
      *.exe
      *.la
      *.lib
      *.lo
      *.orig
      *.pdb
      *.rej
      *.u
      *.rc
      *.pc
      *~
      *.gz
      *.bz2
      *.[0-9]
      *.html
      *.gif
      *.css
      *.out

      ChangeLog
      doxygen.conf
  • trunk/Makefile.am

    r120 r142  
    1 # Process this file with automake to create Makefile.in 
    2  
    3 SUBDIRS = . aclocal src  
    4 DIST_SUBDIRS = . aclocal doc src 
    5  
    6 EXTRA_DIST = COPYING NEWS bootstrap depcomp $(shell ls examples/{README,Makefile,*.c}) 
     1AUTOMAKE_OPTIONS = foreign 1.10 
    72 
    83MAINTAINERCLEANFILES = \ 
    9         Makefile.in config.h.in configure \ 
    10         install-sh ltmain.sh missing mkinstalldirs \ 
    11         compile depcomp config.log config.status \ 
    12         config.guess config.sub acinclude.m4 aclocal.m4 
     4        config.log config.status \ 
     5        $(srcdir)/Makefile.in \ 
     6        $(srcdir)/config.h.in $(srcdir)/config.h.in~ $(srcdir)/configure \ 
     7        $(srcdir)/install-sh $(srcdir)/ltmain.sh $(srcdir)/missing \ 
     8        $(srcdir)/depcomp $(srcdir)/aclocal.m4 \ 
     9        $(srcdir)/config.guess $(srcdir)/config.sub \ 
     10        $(srcdir)/packaged 
     11EXTRA_DIST = svnignore 
    1312 
    14 DEPCLEANFILES = config.log configure 
     13dist_noinst_DATA = COPYING bootstrap \ 
     14        $(srcdir)/examples/Makefile $(srcdir)/examples/*.c $(srcdir)/examples/README 
     15dist_doc_DATA = NEWS 
    1516 
    16 AUTOMAKE_OPTIONS = foreign 1.5 
    17 ACLOCAL_AMFLAGS = -I aclocal 
     17SUBDIRS = src doc 
     18 
     19# Allow detection of packaged tarball 
     20dist-hook: 
     21        echo > "$(distdir)/packaged" 
  • trunk/configure.ac

    r125 r142  
    11dnl -*- mode: m4; -*- 
    2 dnl Process this file with autoconf to produce a configure script. 
    3  
    4 # Require autoconf 2.52 
    5 AC_PREREQ(2.52) 
    6  
    7 AC_INIT(libp11, [0.2.3-svn]) 
    8  
    9 AM_INIT_AUTOMAKE 
    10  
    11 AC_CONFIG_SRCDIR(src/libp11.h) 
     2 
     3AC_PREREQ([2.60]) 
     4 
     5define([PACKAGE_VERSION_MAJOR], [0]) 
     6define([PACKAGE_VERSION_MINOR], [2]) 
     7define([PACKAGE_VERSION_FIX], [3]) 
     8 
     9AC_INIT([libp11], [PACKAGE_VERSION_MAJOR.PACKAGE_VERSION_MINOR.PACKAGE_VERSION_FIX-svn]) 
     10AC_CONFIG_AUX_DIR([.]) 
     11AM_CONFIG_HEADER([config.h]) 
     12AM_INIT_AUTOMAKE([${PACKAGE_NAME}], [${PACKAGE_VERSION}]) 
     13 
     14LIBP11_VERSION_MAJOR="PACKAGE_VERSION_MAJOR" 
     15LIBP11_VERSION_MINOR="PACKAGE_VERSION_MINOR" 
     16LIBP11_VERSION_FIX="PACKAGE_VERSION_FIX" 
    1217 
    1318# LT Version numbers, remember to change them just *before* a release. 
    1419#   (Code changed:                      REVISION++) 
    15 #   (Interfaces added/removed/changed:  CURRENT++, REVISION=0) 
    16 #   (Interfaces added:                  AGE++) 
    17 #   (Interfaces removed:                AGE=0) 
    18 LIBP11_VERSION=1:1:1 
    19  
    20 AC_SUBST(LIBP11_VERSION) 
     20#   (Oldest interface removed:          OLDEST++) 
     21#   (Interfaces added:                  CURRENT++, REVISION=0) 
     22LIBP11_LT_CURRENT="1" 
     23LIBP11_LT_OLDEST="0" 
     24LIBP11_LT_REVISION="1" 
     25LIBP11_LT_AGE="$((${LIBP11_LT_CURRENT}-${LIBP11_LT_OLDEST}))" 
     26 
     27AC_CONFIG_SRCDIR([src/libp11.h]) 
    2128 
    2229AC_CANONICAL_HOST 
    2330AC_PROG_CC 
     31PKG_PROG_PKG_CONFIG 
    2432AC_C_BIGENDIAN 
    2533 
    26 dnl Options 
    27 AM_MAINTAINER_MODE 
     34AC_MSG_CHECKING([svn checkout]) 
     35if test -e packaged; then 
     36        svn_checkout="no" 
     37else 
     38        svn_checkout="yes" 
     39fi 
     40AC_MSG_RESULT([${svn_checkout}]) 
     41 
     42AC_ARG_WITH( 
     43        [cygwin-native], 
     44        [AC_HELP_STRING([--with-cygwin-native], [compile native win32])], 
     45        , 
     46        [with_cygwin_native="no"] 
     47) 
     48 
     49dnl Check for some target-specific stuff 
     50test -z "${WIN32}" && WIN32="no" 
     51test -z "${CYGWIN}" && CYGWIN="no" 
     52case "${host}" in 
     53        *-mingw32*|*-winnt*) 
     54                WIN32="yes" 
     55                CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN" 
     56                WIN_LIBPREFIX="lib" 
     57        ;; 
     58        *-cygwin*) 
     59                AC_MSG_CHECKING([cygwin mode to use]) 
     60                CYGWIN="yes" 
     61                if test "${with_cygwin_native}" = "yes"; then 
     62                        AC_MSG_RESULT([Using native win32]) 
     63                        CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN" 
     64                        CFLAGS="${CFLAGS} -mno-cygwin" 
     65                        WIN32="yes" 
     66                else 
     67                        AC_MSG_RESULT([Using cygwin]) 
     68                        CPPFLAGS="${CPPFLAGS} -DCRYPTOKI_FORCE_WIN32" 
     69                        WIN_LIBPREFIX="cyg" 
     70                        AC_DEFINE([USE_CYGWIN], [1], [Define if you are on Cygwin]) 
     71                fi 
     72        ;; 
     73esac 
     74 
     75AC_ARG_ENABLE( 
     76        [strict], 
     77        [AC_HELP_STRING([--enable-strict], [enable strict compile mode @<:@disabled@:>@])], 
     78        , 
     79        [enable_strict="no"] 
     80) 
     81 
     82AC_ARG_ENABLE( 
     83        [pedantic], 
     84        [AC_HELP_STRING([--enable-pedantic], [enable pedantic compile mode @<:@disabled@:>@])], 
     85        , 
     86        [enable_pedantic="no"] 
     87) 
     88 
     89AC_ARG_ENABLE( 
     90        [doc], 
     91        [AC_HELP_STRING([--enable-doc], [enable installation of documents. @<:@disabled@:>@])], 
     92        , 
     93        [enable_doc="no"] 
     94) 
     95 
     96AC_ARG_ENABLE( 
     97        [api-doc], 
     98        [AC_HELP_STRING([--enable-api-doc], [enable generation and installation of api documents. @<:@disabled@:>@])], 
     99        , 
     100        [enable_api_doc="no"] 
     101) 
     102 
     103AC_ARG_WITH( 
     104        [apidocdir], 
     105        [AC_HELP_STRING([--with-apidocdir], [put API documents at this directory, default HTMLDIR/api])], 
     106        [apidocdir="${with_apidocdir}"], 
     107        [apidocdir="\$(htmldir)/api"] 
     108) 
    28109 
    29110dnl Checks for programs. 
    30111AC_PROG_CPP 
    31112AC_PROG_INSTALL 
     113AC_PROG_LN_S 
     114AC_PROG_MKDIR_P 
     115AC_PROG_SED 
     116AC_PROG_MAKE_SET 
    32117 
    33118dnl Add libtool support. 
     119AC_LIBTOOL_WIN32_DLL 
     120AC_LIBTOOL_RC 
    34121AC_PROG_LIBTOOL 
    35122 
     
    37124AC_HEADER_STDC 
    38125AC_HEADER_SYS_WAIT 
    39 AC_CHECK_HEADERS([errno.h fcntl.h malloc.h stdlib.h inttypes.h string.h strings.h sys/time.h unistd.h locale.h getopt.h dlfcn.h utmp.h]) 
    40  
    41 dnl use ltdl 
    42 AC_LIB_LINKFLAGS(ltdl) 
    43  
    44 saved_LIBS="$LIBS" 
    45 LIBS="$saved_LIBS $LIBLTDL" 
    46 AC_CHECK_HEADER([ltdl.h], [AC_MSG_RESULT([yes])], 
    47    [ AC_MSG_ERROR([ltdl.h not found, please install libltdl and/or libtool]) ]) 
    48 LIBS="$saved_LIBS" 
    49  
    50 PKG_CHECK_MODULES(OPENSSL, [openssl]) 
     126AC_CHECK_HEADERS([ \ 
     127        errno.h fcntl.h malloc.h stdlib.h \ 
     128        inttypes.h string.h strings.h sys/time.h \ 
     129        unistd.h locale.h getopt.h dlfcn.h utmp.h \ 
     130]) 
     131 
     132AC_CHECK_PROGS([DOXYGEN],[doxygen]) 
     133test "${enable_api_doc}" = "yes" -a -z "${DOXYGEN}" && AC_MSG_ERROR([doxygen is required for api doc]) 
     134 
     135dnl These required for svn checkout 
     136AC_ARG_VAR([XSLTPROC], [xsltproc utility]) 
     137AC_ARG_VAR([SVN], [subversion utility]) 
     138AC_ARG_VAR([WGET], [wget utility]) 
     139AC_ARG_VAR([WGET_OPTS], [wget options]) 
     140AC_ARG_VAR([TR], [tr utility]) 
     141AC_CHECK_PROGS([XSLTPROC],[xsltproc]) 
     142AC_CHECK_PROGS([SVN],[svn]) 
     143AC_CHECK_PROGS([WGET],[wget]) 
     144AC_CHECK_PROGS([TR],[tr]) 
     145test -z "${WGET_OPTS}" && WGET_OPTS="-nv" 
     146 
     147dnl svn checkout dependencies 
     148if test "${svn_checkout}" = "yes"; then 
     149        AC_MSG_CHECKING([XSLTPROC requirement]) 
     150        if test -n "${XSLTPROC}"; then 
     151                AC_MSG_RESULT([ok]) 
     152        else 
     153                if test "${enable_doc}" = "yes"; then 
     154                        AC_MSG_ERROR([Missing XSLTPROC svn build with doc]) 
     155                else 
     156                        AC_MSG_WARN(["make dist" will not work]) 
     157                fi 
     158        fi 
     159 
     160        AC_MSG_CHECKING([svn doc build dependencies]) 
     161        if test -n "${SVN}" -a -n "${TR}" -a -n "${WGET}"; then 
     162                AC_MSG_RESULT([ok]) 
     163        else 
     164                if test "${enable_doc}" = "yes"; then 
     165                        AC_MSG_ERROR([Missing SVN, TR or WGET for svn doc build]) 
     166                else 
     167                        AC_MSG_WARN(["make dist" will not work]) 
     168                fi 
     169        fi 
     170fi 
     171 
     172AC_ARG_VAR([LTLIB_CFLAGS], [C compiler flags for libltdl]) 
     173AC_ARG_VAR([LTLIB_LIBS], [linker flags for libltdl]) 
     174if test -z "${LTLIB_LIBS}"; then 
     175        AC_CHECK_LIB( 
     176                [ltdl], 
     177                [lt_dlopen], 
     178                [LTLIB_LIBS="-lltdl"], 
     179                [AC_MSG_ERROR([ltdl not found, please install libltdl and/or libtool])] 
     180        ) 
     181 
     182fi 
     183saved_CFLAGS="${CFLAGS}" 
     184CFLAGS="${CFLAGS} ${LTLIB_CFLAGS}" 
     185AC_CHECK_HEADER( 
     186        [ltdl.h], 
     187        , 
     188        [AC_MSG_ERROR([ltdl.h not found, please install libltdl and/or libtool])] 
     189) 
     190CFLAGS="${saved_CFLAGS}" 
     191 
     192PKG_CHECK_MODULES( 
     193        [OPENSSL], 
     194        [libcrypto >= 0.9.7], 
     195        , 
     196        [PKG_CHECK_MODULES( 
     197                [OPENSSL], 
     198                [openssl >= 0.9.7], 
     199                , 
     200                [AC_CHECK_LIB( 
     201                        [crypto], 
     202                        [RSA_version], 
     203                        [OPENSSL_LIBS="-lcrypto"], 
     204                        [AC_MSG_ERROR([Cannot find OpenSSL])] 
     205                )] 
     206        )] 
     207) 
     208 
     209pkgconfigdir="\$(libdir)/pkgconfig" 
     210 
     211AC_SUBST([pkgconfigdir]) 
     212AC_SUBST([apidocdir]) 
     213AC_SUBST([LIBP11_VERSION_MAJOR]) 
     214AC_SUBST([LIBP11_VERSION_MINOR]) 
     215AC_SUBST([LIBP11_VERSION_FIX]) 
     216AC_SUBST([LIBP11_LT_CURRENT]) 
     217AC_SUBST([LIBP11_LT_REVISION]) 
     218AC_SUBST([LIBP11_LT_AGE]) 
     219AC_SUBST([LIBP11_LT_OLDEST]) 
     220AC_SUBST([WIN_LIBPREFIX]) 
     221 
     222AM_CONDITIONAL([SVN_CHECKOUT], [test "${svn_checkout}" = "yes"]) 
     223AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"]) 
     224AM_CONDITIONAL([CYGWIN], [test "${CYGWIN}" = "yes"]) 
     225AM_CONDITIONAL([ENABLE_DOC], [test "${enable_doc}" = "yes"]) 
     226AM_CONDITIONAL([ENABLE_API_DOC], [test "${enable_api_doc}" = "yes"]) 
     227 
     228if test "${enable_pedantic}" = "yes"; then 
     229        enable_strict="yes"; 
     230        CFLAGS="${CFLAGS} -pedantic" 
     231fi 
     232if test "${enable_strict}" = "yes"; then 
     233        CFLAGS="${CFLAGS} -Wall -Wextra" 
     234fi 
    51235 
    52236AC_OUTPUT([ 
    53 Makefile 
    54 aclocal/Makefile 
    55 doc/Makefile 
    56 doc/doxygen.conf 
    57 src/Makefile 
    58 src/libp11.pc 
     237        Makefile 
     238        src/Makefile 
     239        src/libp11.pc 
     240        src/versioninfo.rc 
     241        doc/Makefile 
     242        doc/doxygen.conf 
     243        doc/nonpersistent/Makefile 
    59244]) 
     245 
     246cat <<EOF 
     247 
     248libp11 has been configured with the following options: 
     249 
     250 
     251Version:                 ${PACKAGE_VERSION} 
     252Libraries:               $(eval eval eval echo "${libdir}") 
     253 
     254doc support:             ${enable_doc} 
     255api doc support:         ${enable_api_doc} 
     256 
     257Host:                    ${host} 
     258Compiler:                ${CC} 
     259Preprocessor flags:      ${CPPFLAGS} 
     260Compiler flags:          ${CFLAGS} 
     261Linker flags:            ${LDFLAGS} 
     262Libraries:               ${LIBS} 
     263 
     264LTLIB_CFLAGS:            ${LTLIB_CFLAGS} 
     265LTLIB_LIBS:              ${LTLIB_LIBS} 
     266OPENSSL_CFLAGS:          ${OPENSSL_CFLAGS} 
     267OPENSSL_LIBS:            ${OPENSSL_LIBS} 
     268 
     269EOF 
  • trunk/doc

    • Property svn:ignore set to
      Makefile
      Makefile.in
      core
      archive
      acinclude.m4
      aclocal.m4
      autom4te.cache
      compile
      confdefs.h
      config.*
      configure
      conftest
      conftest.c
      depcomp
      install-sh
      libtool
      libtool.m4
      ltmain.sh
      missing
      mkinstalldirs
      so_locations
      stamp-h*

      .deps
      .libs
      .#*#
      .*.bak
      .*.orig
      .*.rej
      .*~
      #*#
      *.bak
      *.d
      *.def
      *.dll
      *.exe
      *.la
      *.lib
      *.lo
      *.orig
      *.pdb
      *.rej
      *.u
      *.rc
      *.pc
      *~
      *.gz
      *.bz2
      *.[0-9]
      *.html
      *.gif
      *.css
      *.out

      ChangeLog
      doxygen.conf
  • trunk/doc/Makefile.am

    r76 r142  
    1 # Process this file with automake to create Makefile.in 
     1MAINTAINERCLEANFILES = $(srcdir)/Makefile.in 
    22 
    3 MAINTAINERCLEANFILES = Makefile.in $(HTML) ChangeLog 
     3if ENABLE_DOC 
     4SUBDIRS = nonpersistent 
     5endif 
     6DIST_SUBDIRS = nonpersistent 
    47 
    5 EXTRA_DIST = README export-wiki.sh export-wiki.xsl \ 
    6         generate-api.sh doxygen.conf.in $(HTML) index.html ChangeLog 
     8dist_doc_DATA = README 
     9dist_noinst_DATA = $(srcdir)/doxygen-footer.html $(srcdir)/*.gif 
    710 
    8 HTML= $(shell ls $(srcdir)/*.html $(srcdir)/*.css $(srcdir)/api/*) 
     11if ENABLE_API_DOC 
    912 
    10 index.html: 
    11         sh $(srcdir)/export-wiki.sh $(srcdir) 
    12         sh $(srcdir)/generate-api.sh $(srcdir) 
     13apidoc_DATA=api.out/html/* 
    1314 
    14 ChangeLog: 
    15         sh $(srcdir)/changelog.sh $(srcdir) 
     15 
     16api.out/html/*: \ 
     17                $(top_srcdir)/src/*.h \ 
     18                $(srcdir)/*.gif \ 
     19                doxygen.conf 
     20        -rm -fr api.out 
     21        $(DOXYGEN) doxygen.conf 
     22        cp "$(srcdir)"/*.gif api.out/html 
     23 
     24endif 
     25 
     26clean-local: 
     27        -rm -fr api.out 
  • trunk/doc/doxygen.conf.in

    r38 r142  
    1 # Doxyfile 1.4.2 
     1# Doxyfile 1.5.4 
    22 
    33# This file describes the settings to be used by the documentation system 
     
    1515#--------------------------------------------------------------------------- 
    1616 
     17# This tag specifies the encoding used for all characters in the config file that  
     18# follow. The default is UTF-8 which is also the encoding used for all text before  
     19# the first occurrence of this tag. Doxygen uses libiconv (or the iconv built into  
     20# libc) for the transcoding. See http://www.gnu.org/software/libiconv for the list of  
     21# possible encodings. 
     22 
     23DOXYFILE_ENCODING      = UTF-8 
     24 
    1725# The PROJECT_NAME tag is a single word (or a sequence of words surrounded  
    1826# by quotes) that should identify the project. 
     
    3139# where doxygen was started. If left blank the current directory will be used. 
    3240 
    33 OUTPUT_DIRECTORY       = doc 
     41OUTPUT_DIRECTORY       = api.out 
    3442 
    3543# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create  
     
    4654# information to generate all constant output in the proper language.  
    4755# The default language is English, other supported languages are:  
    48 # Brazilian, Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish,  
    49 # Dutch, Finnish, French, German, Greek, Hungarian, Italian, Japanese,  
    50 # Japanese-en (Japanese with English messages), Korean, Korean-en, Norwegian,  
    51 # Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish,  
    52 # Swedish, and Ukrainian. 
     56# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,  
     57# Croatian, Czech, Danish, Dutch, Finnish, French, German, Greek, Hungarian,  
     58# Italian, Japanese, Japanese-en (Japanese with English messages), Korean,  
     59# Korean-en, Lithuanian, Norwegian, Polish, Portuguese, Romanian, Russian,  
     60# Serbian, Slovak, Slovene, Spanish, Swedish, and Ukrainian. 
    5361 
    5462OUTPUT_LANGUAGE        = English 
    55  
    56 # This tag can be used to specify the encoding used in the generated output.  
    57 # The encoding is not always determined by the language that is chosen,  
    58 # but also whether or not the output is meant for Windows or non-Windows users.  
    59 # In case there is a difference, setting the USE_WINDOWS_ENCODING tag to YES  
    60 # forces the Windows encoding (this is the default for the Windows binary),  
    61 # whereas setting the tag to NO uses a Unix-style encoding (the default for  
    62 # all platforms other than Windows). 
    63  
    64 USE_WINDOWS_ENCODING   = NO 
    6563 
    6664# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will  
     
    116114# path to strip. 
    117115 
    118 STRIP_FROM_PATH        =  
     116STRIP_FROM_PATH        = @top_srcdir@/src 
    119117 
    120118# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of  
     
    136134# will interpret the first line (until the first dot) of a JavaDoc-style  
    137135# comment as the brief description. If set to NO, the JavaDoc  
    138 # comments will behave just like the Qt-style comments (thus requiring an  
    139 # explicit @brief command for a brief description. 
     136# comments will behave just like regular Qt-style comments  
     137# (thus requiring an explicit @brief command for a brief description.) 
    140138 
    141139JAVADOC_AUTOBRIEF      = YES 
     140 
     141# If the QT_AUTOBRIEF tag is set to YES then Doxygen will  
     142# interpret the first line (until the first dot) of a Qt-style  
     143# comment as the brief description. If set to NO, the comments  
     144# will behave just like regular Qt-style comments (thus requiring  
     145# an explicit \brief command for a brief description.) 
     146 
     147QT_AUTOBRIEF           = NO 
    142148 
    143149# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen  
     
    161167 
    162168INHERIT_DOCS           = YES 
    163  
    164 # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC  
    165 # tag is set to YES, then doxygen will reuse the documentation of the first  
    166 # member in the group (if any) for the other members of the group. By default  
    167 # all members of a group must be documented explicitly. 
    168  
    169 DISTRIBUTE_GROUP_DOC   = NO 
    170169 
    171170# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce  
     
    196195OPTIMIZE_OUTPUT_FOR_C  = YES 
    197196 
    198 # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java sources  
    199 # only. Doxygen will then generate output that is more tailored for Java.  
     197# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java  
     198# sources only. Doxygen will then generate output that is more tailored for Java.  
    200199# For instance, namespaces will be presented as packages, qualified scopes  
    201200# will look different, etc. 
    202201 
    203202OPTIMIZE_OUTPUT_JAVA   = NO 
     203 
     204# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want to  
     205# include (a tag file for) the STL sources as input, then you should  
     206# set this tag to YES in order to let doxygen match functions declarations and  
     207# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.  
     208# func(std::string) {}). This also make the inheritance and collaboration  
     209# diagrams that involve STL classes more complete and accurate. 
     210 
     211BUILTIN_STL_SUPPORT    = NO 
     212 
     213# If you use Microsoft's C++/CLI language, you should set this option to YES to 
     214# enable parsing support. 
     215 
     216CPP_CLI_SUPPORT        = NO 
     217 
     218# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.  
     219# Doxygen will parse them like normal C++ but will assume all classes use public  
     220# instead of private inheritance when no explicit protection keyword is present. 
     221 
     222SIP_SUPPORT            = NO 
     223 
     224# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC  
     225# tag is set to YES, then doxygen will reuse the documentation of the first  
     226# member in the group (if any) for the other members of the group. By default  
     227# all members of a group must be documented explicitly. 
     228 
     229DISTRIBUTE_GROUP_DOC   = NO 
    204230 
    205231# Set the SUBGROUPING tag to YES (the default) to allow class member groups of  
     
    211237SUBGROUPING            = YES 
    212238 
     239# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct (or union) is  
     240# documented as struct with the name of the typedef. So  
     241# typedef struct TypeS {} TypeT, will appear in the documentation as a struct  
     242# with name TypeT. When disabled the typedef will appear as a member of a file,  
     243# namespace, or class. And the struct will be named TypeS. This can typically  
     244# be useful for C code where the coding convention is that all structs are  
     245# typedef'ed and only the typedef is referenced never the struct's name. 
     246 
     247TYPEDEF_HIDES_STRUCT   = NO 
     248 
    213249#--------------------------------------------------------------------------- 
    214250# Build related configuration options 
     
    244280 
    245281EXTRACT_LOCAL_METHODS  = NO 
     282 
     283# If this flag is set to YES, the members of anonymous namespaces will be extracted  
     284# and appear in the documentation as a namespace called 'anonymous_namespace{file}',  
     285# where file will be replaced with the base name of the file that contains the anonymous  
     286# namespace. By default anonymous namespace are hidden. 
     287 
     288EXTRACT_ANON_NSPACES   = NO 
    246289 
    247290# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all  
     
    377420# If the sources in your project are distributed over multiple directories  
    378421# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy  
    379 # in the documentation. 
     422# in the documentation. The default is NO. 
    380423 
    381424SHOW_DIRECTORIES       = YES 
     
    386429# popen()) the command <command> <input-file>, where <command> is the value of  
    387430# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file  
    388 # provided by doxygen. Whatever the progam writes to standard output  
     431# provided by doxygen. Whatever the program writes to standard output  
    389432# is used as the file version. See the manual for examples. 
    390433 
     
    434477# be obtained via FILE_VERSION_FILTER) 
    435478 
    436 WARN_FORMAT            = "$file:$line: $text" 
     479WARN_FORMAT            = "$file:$line: $text  " 
    437480 
    438481# The WARN_LOGFILE tag can be used to specify a file to which warning  
     
    451494# with spaces. 
    452495 
    453 INPUT                  = src/ 
     496INPUT                  = @top_srcdir@/src 
     497 
     498# This tag can be used to specify the character encoding of the source files that  
     499# doxygen parses. Internally doxygen uses the UTF-8 encoding, which is also the default  
     500# input encoding. Doxygen uses libiconv (or the iconv built into libc) for the transcoding.  
     501# See http://www.gnu.org/software/libiconv for the list of possible encodings. 
     502 
     503INPUT_ENCODING         = UTF-8 
    454504 
    455505# If the value of the INPUT tag contains directories, you can use the  
     
    458508# blank the following patterns are tested:  
    459509# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx  
    460 # *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm 
     510# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 
    461511 
    462512FILE_PATTERNS          = libp11.h 
     
    482532# If the value of the INPUT tag contains directories, you can use the  
    483533# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude  
    484 # certain files from those directories. 
    485  
    486 EXCLUDE_PATTERNS       =  
     534# certain files from those directories. Note that the wildcards are matched  
     535# against the file with absolute path, so to exclude all test directories  
     536# for example use the pattern */test/* 
     537 
     538EXCLUDE_PATTERNS       = */.svn/* 
     539 
     540# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names  
     541# (namespaces, classes, functions, etc.) that should be excluded from the output.  
     542# The symbol name can be a fully qualified name, a word, or if the wildcard * is used,  
     543# a substring. Examples: ANamespace, AClass, AClass::ANamespace, ANamespace::*Test 
     544 
     545EXCLUDE_SYMBOLS        =  
    487546 
    488547# The EXAMPLE_PATH tag can be used to specify one or more files or  
     
    544603# be generated. Documented entities will be cross-referenced with these sources.  
    545604# Note: To get rid of all source code in the generated output, make sure also  
    546 # VERBATIM_HEADERS is set to NO. 
     605# VERBATIM_HEADERS is set to NO. If you have enabled CALL_GRAPH or CALLER_GRAPH  
     606# then you must also enable this option. If you don't then doxygen will produce  
     607# a warning and turn it on anyway 
    547608 
    548609SOURCE_BROWSER         = YES 
     
    570631 
    571632REFERENCES_RELATION    = YES 
     633 
     634# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) 
     635# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from 
     636# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will 
     637# link to the source code.  Otherwise they will link to the documentstion. 
     638 
     639REFERENCES_LINK_SOURCE = YES 
     640 
     641# If the USE_HTAGS tag is set to YES then the references to source code  
     642# will point to the HTML generated by the htags(1) tool instead of doxygen  
     643# built-in source browser. The htags tool is part of GNU's global source  
     644# tagging system (see http://www.gnu.org/software/global/global.html). You  
     645# will need version 4.8.6 or higher. 
     646 
     647USE_HTAGS              = NO 
    572648 
    573649# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen  
     
    613689# put in front of it. If left blank `html' will be used as the default path. 
    614690 
    615 HTML_OUTPUT            = api 
     691HTML_OUTPUT            = html 
    616692 
    617693# The HTML_FILE_EXTENSION tag can be used to specify the file extension for  
     
    631707# standard footer. 
    632708 
    633 HTML_FOOTER            =  
     709HTML_FOOTER            = @srcdir@/doxygen-footer.html 
    634710 
    635711# The HTML_STYLESHEET tag can be used to specify a user-defined cascading  
     
    655731GENERATE_HTMLHELP      = NO 
    656732 
     733# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML  
     734# documentation will contain sections that can be hidden and shown after the  
     735# page has loaded. For this to work a browser that supports  
     736# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox  
     737# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). 
     738 
     739HTML_DYNAMIC_SECTIONS  = NO 
     740 
    657741# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can  
    658742# be used to specify the file name of the resulting .chm file. You  
     
    9571041# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES  
    9581042# then the macro expansion is limited to the macros specified with the  
    959 # PREDEFINED and EXPAND_AS_PREDEFINED tags. 
     1043# PREDEFINED and EXPAND_AS_DEFINED tags. 
    9601044 
    9611045EXPAND_ONLY_PREDEF     = NO 
     
    10601144CLASS_DIAGRAMS         = YES 
    10611145 
     1146# You can define message sequence charts within doxygen comments using the \msc  
     1147# command. Doxygen will then run the mscgen tool (see http://www.mcternan.me.uk/mscgen/) to  
     1148# produce the chart and insert it in the documentation. The MSCGEN_PATH tag allows you to  
     1149# specify the directory where the mscgen tool resides. If left empty the tool is assumed to  
     1150# be found in the default search path. 
     1151 
     1152MSCGEN_PATH            =  
     1153 
    10621154# If set to YES, the inheritance and collaboration graphs will hide  
    10631155# inheritance and usage relations if the target is undocumented  
     
    11171209INCLUDED_BY_GRAPH      = YES 
    11181210 
    1119 # If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will  
     1211# If the CALL_GRAPH, SOURCE_BROWSER and HAVE_DOT tags are set to YES then doxygen will  
    11201212# generate a call dependency graph for every global function or class method.  
    11211213# Note that enabling this option will significantly increase the time of a run.  
     
    11251217CALL_GRAPH             = NO 
    11261218 
     1219# If the CALLER_GRAPH, SOURCE_BROWSER and HAVE_DOT tags are set to YES then doxygen will  
     1220# generate a caller dependency graph for every global function or class method.  
     1221# Note that enabling this option will significantly increase the time of a run.  
     1222# So in most cases it will be better to enable caller graphs for selected  
     1223# functions only using the \callergraph command. 
     1224 
     1225CALLER_GRAPH           = NO 
     1226 
    11271227# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen  
    11281228# will graphical hierarchy of all classes instead of a textual one. 
     
    11541254DOTFILE_DIRS           =  
    11551255 
    1156 # The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width  
    1157 # (in pixels) of the graphs generated by dot. If a graph becomes larger than  
    1158 # this value, doxygen will try to truncate the graph, so that it fits within  
    1159 # the specified constraint. Beware that most browsers cannot cope with very  
    1160 # large images. 
    1161  
    1162 MAX_DOT_GRAPH_WIDTH    = 1024 
    1163  
    1164 # The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height  
    1165 # (in pixels) of the graphs generated by dot. If a graph becomes larger than  
    1166 # this value, doxygen will try to truncate the graph, so that it fits within  
    1167 # the specified constraint. Beware that most browsers cannot cope with very  
    1168 # large images. 
    1169  
    1170 MAX_DOT_GRAPH_HEIGHT   = 1024 
     1256# The MAX_DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of  
     1257# nodes that will be shown in the graph. If the number of nodes in a graph  
     1258# becomes larger than this value, doxygen will truncate the graph, which is  
     1259# visualized by representing a node as a red box. Note that doxygen if the number  
     1260# of direct children of the root node in a graph is already larger than  
     1261# MAX_DOT_GRAPH_NOTES then the graph will not be shown at all. Also note  
     1262# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. 
     1263 
     1264DOT_GRAPH_MAX_NODES    = 50 
    11711265 
    11721266# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the  
     
    11751269# that lay further from the root node will be omitted. Note that setting this  
    11761270# option to 1 or 2 may greatly reduce the computation time needed for large  
    1177 # code bases. Also note that a graph may be further truncated if the graph's  
    1178 # image dimensions are not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH  
    1179 # and MAX_DOT_GRAPH_HEIGHT). If 0 is used for the depth value (the default),  
    1180 # the graph is not depth-constrained. 
     1271# code bases. Also note that the size of a graph can be further restricted by  
     1272# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. 
    11811273 
    11821274MAX_DOT_GRAPH_DEPTH    = 0 
  • trunk/examples

    • Property svn:ignore set to
      Makefile
      Makefile.in
      core
      archive
      acinclude.m4
      aclocal.m4
      autom4te.cache
      compile
      confdefs.h
      config.*
      configure
      conftest
      conftest.c
      depcomp
      install-sh
      libtool
      libtool.m4
      ltmain.sh
      missing
      mkinstalldirs
      so_locations
      stamp-h*

      .deps
      .libs
      .#*#
      .*.bak
      .*.orig
      .*.rej
      .*~
      #*#
      *.bak
      *.d
      *.def
      *.dll
      *.exe
      *.la
      *.lib
      *.lo
      *.orig
      *.pdb
      *.rej
      *.u
      *.rc
      *.pc
      *~
      *.gz
      *.bz2
      *.[0-9]
      *.html
      *.gif
      *.css
      *.out

      ChangeLog
      doxygen.conf
  • trunk/src

    • Property svn:ignore set to
      Makefile
      Makefile.in
      core
      archive
      acinclude.m4
      aclocal.m4
      autom4te.cache
      compile
      confdefs.h
      config.*
      configure
      conftest
      conftest.c
      depcomp
      install-sh
      libtool
      libtool.m4
      ltmain.sh
      missing
      mkinstalldirs
      so_locations
      stamp-h*

      .deps
      .libs
      .#*#
      .*.bak
      .*.orig
      .*.rej
      .*~
      #*#
      *.bak
      *.d
      *.def
      *.dll
      *.exe
      *.la
      *.lib
      *.lo
      *.orig
      *.pdb
      *.rej
      *.u
      *.rc
      *.pc
      *~
      *.gz
      *.bz2
      *.[0-9]
      *.html
      *.gif
      *.css
      *.out

      ChangeLog
      doxygen.conf
  • trunk/src/Makefile.am

    r102 r142  
    1 # Process this file with automake to create Makefile.in 
    2  
    3 MAINTAINERCLEANFILES = Makefile.in 
    4 DISTCLEANFILES= libp11.pc 
     1MAINTAINERCLEANFILES = $(srcdir)/Makefile.in 
     2CLEANFILES = libp11.pc 
    53EXTRA_DIST = Makefile.mak makedef.pl 
    6  
    7 INCLUDES = $(OPENSSL_CFLAGS) 
    84 
    95noinst_HEADERS= libp11-int.h pkcs11.h 
    106include_HEADERS= libp11.h 
    11  
    127lib_LTLIBRARIES = libp11.la 
     8pkgconfig_DATA = libp11.pc 
    139 
    1410libp11_la_SOURCES = libpkcs11.c p11_attr.c p11_cert.c p11_err.c p11_key.c \ 
    15         p11_load.c p11_misc.c p11_ops.c p11_rsa.c p11_slot.c  
     11        p11_load.c p11_misc.c p11_ops.c p11_rsa.c p11_slot.c \ 
     12        libp11.exports 
     13if WIN32 
     14nodist_libp11_la_SOURCES = versioninfo.rc 
     15endif 
     16libp11_la_CFLAGS = $(AM_CFLAGS) $(OPENSSL_CFLAGS) $(LTLIB_CFLAGS) 
     17libp11_la_LIBADD = $(OPENSSL_LIBS) $(LTLIB_LIBS) 
     18libp11_la_LDFLAGS = $(AM_LDFLAGS) \ 
     19        -version-info @LIBP11_LT_CURRENT@:@LIBP11_LT_REVISION@:@LIBP11_LT_AGE@ \ 
     20        -export-symbols "$(srcdir)/libp11.exports" \ 
     21        -no-undefined 
    1622 
    17 libp11_la_LDFLAGS = -version-info $(LIBP11_VERSION) 
    18 libp11_la_LIBADD = $(OPENSSL_LIBS) $(LTLIBLTDL) 
     23if WIN32 
     24# def file required for MS users to build library 
     25mylibdir=$(libdir) 
     26mylib_DATA=.libs/@WIN_LIBPREFIX@p11-@LIBP11_LT_OLDEST@.dll.def 
     27.libs/@WIN_LIBPREFIX@p11-@LIBP11_LT_OLDEST@.dll.def:    libp11.la 
     28endif 
    1929 
    20 pkgconfigdir = $(libdir)/pkgconfig 
    21 pkgconfig_DATA = libp11.pc 
     30RCCOMPILE = $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 
     31        $(AM_CPPFLAGS) $(CPPFLAGS) 
     32LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RCCOMPILE) 
     33 
     34.rc.lo: 
     35        $(LTRCCOMPILE) -i "$<" -o "$@" 
     36 
     37.rc.o: 
     38        $(RCCOMPILE) -i "$<" -o "$@" 
     39 
  • trunk/src/libpkcs11.c

    r102 r142  
    2424 */ 
    2525 
     26#include <config.h> 
    2627#include <stdlib.h> 
    2728#include <stdio.h> 
  • trunk/src/p11_attr.c

    r101 r142  
    2626 */ 
    2727 
     28#include <config.h> 
    2829#include <assert.h> 
    2930#include <string.h> 
  • trunk/src/p11_cert.c

    r116 r142  
    2323 */ 
    2424 
     25#include <config.h> 
    2526#include <string.h> 
    2627#include "libp11-int.h" 
  • trunk/src/p11_err.c

    r2 r142  
    1717 */ 
    1818 
     19#include <config.h> 
    1920#include "libp11-int.h" 
    2021 
  • trunk/src/p11_key.c

    r112 r142  
    1717 */ 
    1818 
     19#include <config.h> 
    1920#include <string.h> 
    2021#include "libp11-int.h" 
  • trunk/src/p11_load.c

    r31 r142  
    1717 */ 
    1818 
     19#include <config.h> 
    1920#include <string.h> 
    2021#include "libp11-int.h" 
  • trunk/src/p11_misc.c

    r2 r142  
    1717 */ 
    1818 
     19#include <config.h> 
    1920#include <string.h> 
    2021#include <openssl/crypto.h> 
  • trunk/src/p11_ops.c

    r109 r142  
    2121/* this file does certain cryptographic operations via the pkcs11 library */ 
    2222 
     23#include <config.h> 
    2324#include <string.h> 
    2425#include "libp11-int.h" 
  • trunk/src/p11_rsa.c

    r114 r142  
    2222 */ 
    2323 
     24#include <config.h> 
    2425#include <string.h> 
    2526#include <openssl/evp.h> 
  • trunk/src/p11_slot.c

    r119 r142  
    1717 */ 
    1818 
     19#include <config.h> 
    1920#include <string.h> 
    2021#include <openssl/buffer.h> 
Note: See TracChangeset for help on using the changeset viewer.