Re: [PATCH 3/3] vc4: Add headers and .pc files for VC4 userspace development.

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

 



Hi,

On 26 January 2016 at 20:10, Eric Anholt <eric@xxxxxxxxxx> wrote:
> Ilia Mirkin <imirkin@xxxxxxxxxxxx> writes:
>> On Mon, Jan 25, 2016 at 2:27 PM, Eric Anholt <eric@xxxxxxxxxx> wrote:
>>> The headers were originally written in Mesa, imported to the kernel,
>>> and improved upon in vc4-gpu-tools.  These come from the v-g-t copies
>>> and will replace the Mesa and v-g-t copies, and hopefully be used from
>>> new tests in igt, as well.
>>>
>>> Signed-off-by: Eric Anholt <eric@xxxxxxxxxx>
>>> ---
>>> --- /dev/null
>>> +++ b/vc4/libdrm_vc4.pc.in
>>> @@ -0,0 +1,11 @@
>>> +prefix=@prefix@
>>> +exec_prefix=@exec_prefix@
>>> +libdir=@libdir@
>>> +includedir=@includedir@
>>> +
>>> +Name: libdrm_vc4
>>> +Description: Userspace interface to vc4 kernel DRM services
>>> +Version: @PACKAGE_VERSION@
>>> +Requires: libdrm
>>> +Libs: -L${libdir} -ldrm_intel
>>
>> This probably wants to be -ldrm_vc4? Or nothing if there's no such lib yet?
>
> Fixed to be -ldrm until we start building a libdrm_vc4.so.

The Requires will take care of that, so you can just bin the entire
'Libs:' field until you need one:

[line breaks inserted for clarity]
strictly:~/tmp/pc% cat foo.pc bar.pc && PKG_CONFIG_PATH=. pkg-config --libs foo
Name: foo
Version: 1
Description: Nothing, but includes bar
Requires: bar

Name: bar
Description: An actual thing
Version: 1
Libs: -L/bar -lbar

-L/bar -lbar

Cheers,
Daniel
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux