1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/vulkan-loader/vulkan-loader.conf
3 # Copyright (C) 2023 - 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 pkginstalled wayland-protocols || var_append cmakeopt ' ' '-DBUILD_WSI_WAYLAND_SUPPORT=OFF'
13 pkginstalled xorg-server || var_append cmakeopt ' ' '-DBUILD_WSI_XLIB_SUPPORT=OFF'
14 pkginstalled libxcb || var_append cmakeopt ' ' '-DBUILD_WSI_XCB_SUPPORT=OFF'
16 var_append cmakeopt ' ' '-DLOADER_CODEGEN=ON'
17 var_append cmakeopt ' ' '-DCMAKE_INSTALL_LIBDIR=$libdir'
18 var_append GCC_WRAPPER_INSERT " " "-I/usr/X11/include"
20 atstage cross && var_append cmakeopt ' ' '-DUSE_GAS=OFF'
22 hook_add premake 5 'var_append PATH : "$PWD/loader"'
23 hook_add premake 5 "mkdir -p $root$sysconfdir/vulkan/icd.d $root$datadir/vulkan/explicit_layer.d"