Starting Out
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
26
subprojects/packagefiles/volk/meson.build
Normal file
26
subprojects/packagefiles/volk/meson.build
Normal file
@@ -0,0 +1,26 @@
|
||||
project('volk', 'c',
|
||||
default_options: [
|
||||
'default_library=static',
|
||||
],
|
||||
)
|
||||
|
||||
vulkan_dep = dependency('vulkan').partial_dependency(compile_args : true)
|
||||
|
||||
volk_inc = include_directories('.')
|
||||
|
||||
volk_src = files('volk_impl.c')
|
||||
|
||||
volk_lib = library(
|
||||
'volk',
|
||||
volk_src,
|
||||
include_directories: volk_inc,
|
||||
dependencies: vulkan_dep
|
||||
)
|
||||
|
||||
volk_dep = declare_dependency(
|
||||
link_with: volk_lib,
|
||||
include_directories: volk_inc,
|
||||
dependencies: vulkan_dep
|
||||
)
|
||||
|
||||
meson.override_dependency('volk', volk_dep)
|
||||
2
subprojects/packagefiles/volk/volk_impl.c
Normal file
2
subprojects/packagefiles/volk/volk_impl.c
Normal file
@@ -0,0 +1,2 @@
|
||||
#define VOLK_IMPLEMENTATION
|
||||
#include "volk.h"
|
||||
Reference in New Issue
Block a user