diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2010-06-20 20:37:26 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-06-22 11:34:47 -0700 |
commit | 32c706c4ffd7433dbfc79dba8785b1510d2f053f (patch) | |
tree | f16bd00c8231a6e860f4cd289f6a155adaca727b /xorg-server.pc.in | |
parent | 37734ba79ca3a9bad1c1e29d89710c8f9c299210 (diff) |
config: declare xserver private dependencies in xorg-server.pc
Any module (drivers) depending on xserver also depends on some of the
server private dependencies. Any driver including xf86.h depends on
xext, kbproto, inputproto and randr.
These dependencies are in separate packages, so anything can happen,
removal, wrong version, etc... and the driver fails during compilation.
Having the private dependencies declared will ensure all packages the
server depends on are present and at the correct version.
Currently each module attempts to check for server dependencies with
various degrees of accuracy. With this patch, the driver will only need
to check for its own explicit dependencies.
Now that xproto is included in Requires.private it is removed from Requires.
All the cflags from both Requires and Requires.private are returned
to caller to pkg-config.
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'xorg-server.pc.in')
-rw-r--r-- | xorg-server.pc.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xorg-server.pc.in b/xorg-server.pc.in index 44f886ade..fb238b5cf 100644 --- a/xorg-server.pc.in +++ b/xorg-server.pc.in @@ -15,6 +15,7 @@ abi_extension=@abi_extension@ Name: xorg-server Description: Modular X.Org X Server Version: @PACKAGE_VERSION@ -Requires: pixman-1 pciaccess xproto >= 7.0.17 +Requires: pixman-1 pciaccess +Requires.private: @SDK_REQUIRED_MODULES@ Cflags: -I${sdkdir} @symbol_visibility@ Libs: -L${libdir} |