[PATCH xserver] config: declare xserver private dependencies in xorg-server.pc

Dan Nicholson dbn.lists at gmail.com
Thu Jun 10 07:01:55 PDT 2010


On Thu, Jun 10, 2010 at 6:14 AM, Julien Cristau <jcristau at debian.org> wrote:
> On Thu, Jun 10, 2010 at 08:54:38 -0400, Gaetan Nadon wrote:
>
>> diff --git a/xorg-server.pc.in b/xorg-server.pc.in
>> index 44f886a..898bed2 100644
>> --- a/xorg-server.pc.in
>> +++ b/xorg-server.pc.in
>> @@ -16,5 +16,6 @@ Name: xorg-server
>>  Description: Modular X.Org X Server
>>  Version: @PACKAGE_VERSION@
>>  Requires: pixman-1 pciaccess xproto >= 7.0.17
>> +Requires.private: @REQUIRED_MODULES@
>>  Cflags: -I${sdkdir} @symbol_visibility@
>>  Libs: -L${libdir}
>
> Is all the stuff in REQUIRED_MODULES actually exposed by sdk
> headers?  AFAICT it's randr, xext, render, input, xkb and xv protos.

Yeah, I'd agree.

Gaeton, maybe you can make a new variable called PC_REQUIRED_MODULES
or something? This would represent required modules exposed in the
pkg-config file. For the optional ones, you'd have something like
this:

if test "x$XV" = xyes; then
        REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO"
        PC_REQUIRED_MODULES="$PC_REQUIRED_MODULES $VIDEOPROTO"
...

--
Dan


More information about the xorg-devel mailing list