Re: [Hackage] #32: add -DPACKAGE_FOO_VERSION=1.1 to cpp command line
#32: add -DPACKAGE_FOO_VERSION=1.1 to cpp command line ----------------------------+----------------------------------------------- Reporter: ijones | Owner: Type: enhancement | Status: closed Priority: normal | Milestone: _|_ Component: Cabal library | Version: Severity: normal | Resolution: fixed Keywords: | Difficulty: easy Ghcversion: 6.2.2 | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * status: new => closed * resolution: => fixed Comment: {{{ Mon Aug 11 18:30:16 BST 2008 Simon Marlow <marlowsd@gmail.com> * Add auto-generated CPP macros for package version testing Now when using CPP you get MIN_VERSION_<package>(A,B,C) for each <package> in build-depends, which is true if the version of <package> in use is >= A.B.C, using the normal ordering on version numbers. This is done by auto-generating a header file dist/build/autogen/cabal_macros.h, and passing a -include flag when running CPP. }}} -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/32#comment:4> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
participants (1)
-
Hackage