[vlc-devel] [PATCH 1/4] contrib: add vulkan-headers rules

Steve Lhomme robux4 at ycbcr.xyz
Tue May 5 12:59:53 CEST 2020


On 2020-05-05 12:45, Alexandre Janniaux wrote:
> On Tue, May 05, 2020 at 12:30:13PM +0200, Steve Lhomme wrote:
>> On 2020-05-05 12:20, Alexandre Janniaux wrote:
>>> ---
>>>    contrib/src/vulkan-headers/SHA512SUMS |  1 +
>>>    contrib/src/vulkan-headers/rules.mak  | 20 ++++++++++++++++++++
>>>    2 files changed, 21 insertions(+)
>>>    create mode 100644 contrib/src/vulkan-headers/SHA512SUMS
>>>    create mode 100644 contrib/src/vulkan-headers/rules.mak
>>>
>>> diff --git a/contrib/src/vulkan-headers/SHA512SUMS b/contrib/src/vulkan-headers/SHA512SUMS
>>> new file mode 100644
>>> index 00000000000..34574ab8729
>>> --- /dev/null
>>> +++ b/contrib/src/vulkan-headers/SHA512SUMS
>>> @@ -0,0 +1 @@
>>> +7472ec31fe74bc3a98303f668eb0c88bf4e4a93b1e3bcf4df2b20fe731cc2efd754d8b64e6507d8ee470841ee575c3092b2b20c4325a44e2e5cd830b7c7dc8ab  Vulkan-Headers-1.1.127.tar.gz
>>> diff --git a/contrib/src/vulkan-headers/rules.mak b/contrib/src/vulkan-headers/rules.mak
>>> new file mode 100644
>>> index 00000000000..edf1402c510
>>> --- /dev/null
>>> +++ b/contrib/src/vulkan-headers/rules.mak
>>> @@ -0,0 +1,20 @@
>>> +VULKAN_HEADER_VERSION := 1.1.127
>>> +VULKAN_HEADER_URL := https://github.com/KhronosGroup/Vulkan-Headers/archive/v$(VULKAN_HEADER_VERSION).tar.gz
>>> +VULKAN_HEADER_ARCHIVE := Vulkan-Headers-$(VULKAN_HEADER_VERSION).tar.gz
>>> +
>>> +DEPS_vulkan-headers =
>>> +
>>
> 
> Hi, indeed, but do you have a proper .pc file with it?
> I only have vulkan-loader (known as «vulkan») in pkg-config.

Mh, no. I thought the contribs was more flexible in detecting packages, 
but apparently not.

>> You may mark it as found as it may exist in a package. I msys2 I have
>> mingw-w64-x86_64-vulkan-headers.
>>
>>> +$(TARBALLS)/$(VULKAN_HEADER_ARCHIVE):
>>> +	$(call download_pkg,$(VULKAN_HEADER_URL),vulkan-headers)
>>> +
>>> +.sum-vulkan-headers: $(VULKAN_HEADER_ARCHIVE)
>>> +
>>> +vulkan-headers: $(VULKAN_HEADER_ARCHIVE) .sum-vulkan-headers
>>> +	$(UNPACK)
>>> +	$(MOVE)
>>> +
>>> +.vulkan-headers: vulkan-headers toolchain.cmake
>>> +	cd $< && rm -rf ./build && mkdir -p build
>>> +	cd $</build && $(HOSTVARS) $(CMAKE) .. -G Ninja
>>> +	cd $< && cd build && ninja install
>>> +	touch $@
>>> --
>>> 2.26.2
>>>
>>> _______________________________________________
>>> vlc-devel mailing list
>>> To unsubscribe or modify your subscription options:
>>> https://mailman.videolan.org/listinfo/vlc-devel
>>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> 


More information about the vlc-devel mailing list