Changeset 6d8dde


Ignore:
Timestamp:
Feb 13, 2013, 3:55:20 PM (13 years ago)
Author:
Frederik Heber <heber@…>
Children:
e46aa0
Parents:
5d1550
git-author:
Frederik Heber <heber@…> (01/26/13 12:50:04)
git-committer:
Frederik Heber <heber@…> (02/13/13 15:55:20)
Message:

FIX: codepatterns-config did not supply correct flags for debug lib.

  • we required another executable codepatterns-debug-config for that.
  • also version.cpp did not contain correct versioning in a pkg-config sense, i.e. 1.2.3 but with commit suffixed.
  • version.cpp and specific codepatterns-config.cpp are not created in build directory, not in src anymore.
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r5d1550 r6d8dde  
    55AC_INIT([CodePatterns], [1.2.3], [heber@ins.uni-bonn.de], [codepatterns], [http://trac.ins.uni-bonn.de/projects/CodePatterns/])
    66AC_CONFIG_AUX_DIR(config)
    7 AC_CONFIG_SRCDIR([src/codepatterns-config.cpp])
     7AC_CONFIG_SRCDIR([src/codepatterns-config-main.cpp])
    88AC_CONFIG_HEADERS([config.h libCodePatterns_config.h])
    99AC_CONFIG_MACRO_DIR([m4])
  • m4/ax_codepatterns.m4

    r5d1550 r6d8dde  
    4343      AC_PATH_PROG(CodePatterns_CONFIG, codepatterns-config, no)
    4444      if test "x$CodePatterns_CONFIG" = xno && test x$codepatterns_prefix != x ; then
    45         if test -e $codepatterns_prefix/bin/codepatterns-config; then
     45        AC_MSG_CHECKING([for alternative codepatterns-debug-config location])
     46        if test -e $codepatterns_prefix/bin/codepatterns-debug-config; then
    4647          codepatterns_pkgconfig=no
    47           CodePatterns_CONFIG="$codepatterns_prefix/bin/codepatterns-config"
     48          CodePatterns_CONFIG="$codepatterns_prefix/bin/codepatterns-debug-config"
     49          AC_MSG_RESULT([yes])
     50        else
     51          AC_MSG_RESULT([no])
    4852        fi
    4953      fi
  • src/Makefile.am

    r5d1550 r6d8dde  
    1111## config utility ###
    1212
    13 bin_PROGRAMS = codepatterns-config
     13bin_PROGRAMS = codepatterns-config codepatterns-debug-config
     14
     15CONFIGSOURCES = \
     16        codepatterns-config-main.cpp \
     17        codepatterns-config.hpp \
     18        version.hpp
    1419
    1520codepatterns_config_SOURCES = \
    16         codepatterns-config-main.cpp \
    17         codepatterns-config.cpp \
    18         codepatterns-config.hpp \
    19         version.hpp
    20 codepatterns_config_LDFLAGS = $(AM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
     21        $(CONFIGSOURCES) \
     22        $(top_builddir)/src/codepatterns-config.cpp
     23codepatterns_config_CPPFLAGS = $(BOOST_CPPFLAGS)
     24codepatterns_config_LDFLAGS = $(AM_LDFLAGS) \
     25        $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
    2126codepatterns_config_LDADD = \
    2227        $(BOOST_PROGRAM_OPTIONS_LIBS) \
    2328        libCodePatterns.la
    2429
     30codepatterns_debug_config_SOURCES = \
     31        $(CONFIGSOURCES) \
     32        $(top_builddir)/src/codepatterns-debug-config.cpp
     33codepatterns_debug_config_CPPFLAGS = $(BOOST_CPPFLAGS)
     34codepatterns_debug_config_LDFLAGS = $(AM_LDFLAGS) \
     35        $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
     36codepatterns_debug_config_LDADD = \
     37        $(BOOST_PROGRAM_OPTIONS_LIBS) \
     38        libCodePatterns.la
     39
     40
    2541
    2642include_HEADERS = \
    27         $(srcdir)/version.hpp
     43        version.hpp
     44
    2845
    2946# this includes source files that need to be present at multiple points
    3047SOURCE =  \
    31         $(srcdir)/version.cpp
     48        $(top_builddir)/src/version.cpp
    3249SOURCEDEBUG = \
    3350        $(SOURCE)
    3451
    3552HEADER =  \
    36         $(srcdir)/version.hpp
     53        version.hpp
    3754
    3855##-@CODEPATTERNS_API_VERSION@
     
    95112$(srcdir)/.git-version: FORCE
    96113        @if (test -d $(top_srcdir)/.git && cd $(srcdir) \
    97              && { git describe | sed -e "s#^v##" ; } ) > .git-version-t 2>/dev/null \
     114             && { git describe --abbrev=0 | sed -e "s#^v##" ; } ) > .git-version-t 2>/dev/null \
    98115          && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
    99116          mv -f .git-version-t $(srcdir)/.git-version; \
     
    104121EXTRA_DIST = $(srcdir)/.git-version
    105122
    106 $(srcdir)/version.cpp: $(srcdir)/.git-version
    107         echo -e "const char *CODEPATTERNSVERSION = \"`cat $(srcdir)/.git-version`\";\nconst char *CODEPATTERNSFULLVERSION = \"$(PACKAGE_NAME) version "`cat $(srcdir)/.git-version`"\";\n" > $@
     123$(top_builddir)/src/version.cpp: $(srcdir)/.git-version
     124        echo -e "const char *CODEPATTERNSVERSION = \"`cat <$(srcdir)/.git-version`\";\nconst char *CODEPATTERNSFULLVERSION = \"$(PACKAGE_NAME) version "`cat $(srcdir)/.git-version`"\";\n" > $@
    108125
    109 $(srcdir)/codepatterns-config.cpp:
     126$(top_builddir)/src/codepatterns-config.cpp:
    110127        echo -e "const char *CODEPATTERNSCFLAGS=\"-I$(includedir) ${BOOST_CPPFLAGS}\";\nconst char *CODEPATTERNSLDFLAGS=\"-L$(libdir) $(BOOST_LDFLAGS)\";\nconst char *CODEPATTERNSLIBS=\"-lCodePatterns $(BOOST_THREAD_LIB)\";\n" > $@
    111128
     129$(top_builddir)/src/codepatterns-debug-config.cpp:
     130        echo -e "const char *CODEPATTERNSCFLAGS=\"-I$(includedir) ${BOOST_CPPFLAGS}\";\nconst char *CODEPATTERNSLDFLAGS=\"-L$(libdir) $(BOOST_LDFLAGS)\";\nconst char *CODEPATTERNSLIBS=\"-lCodePatterns-debug $(BOOST_THREAD_LIB)\";\n" > $@
Note: See TracChangeset for help on using the changeset viewer.