chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] pcre integration and cmake


From: felix winkelmann
Subject: [Chicken-hackers] pcre integration and cmake
Date: Wed, 10 Jan 2007 09:57:18 +0100

Hi, folks.

I have added pcre (6.3) to the source tree and adapted the autotools
files. I have done preliminary changes to CMakeLists.txt, but don't
know how to proceed.

There are a couple of files in the "pcre" subdirectory which have to
be compiled and linked into lib[u]chicken[-static]. The proper
way would probably an ADD_SUBDIRECTORY(pcre) and building a
static library (say, chicken-pcre), to be added to the libchickens.
But (IIRC) that would mean that we somehow have to add the
intermediate chicken-pcre library to the static libchicken (which
I don't know how to do correctly/in a cmakeish way) or install a
chicken-specific pcre library (which I would not like).
In Makefile.am I simply added pcre/pcre_*.c to the sources.
Also the options "-DSUPPORT_UTF8 -DSUPPORT_UCP" have to be
passed to those C files. HAVE_MEMMOVE and HAVE_STRERROR are
already detected, but I don't know how to pass them to the C
compiler (or pcre/config.h, the PCRE-specific configuration file
has to be cmake-processed).

Since I'm not a CMake expert, can someone (Well, Brandon, of
course - but I don't just want to shove over the hard work) look into
this?

The chicken + pcre branch is at

address@hidden:chicken-pcre

(accessible to all with a ssh key on galinha)


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]