Compare commits

..

2 Commits

Author SHA1 Message Date
mo7sen 9d1e0ead4b Added .editorconfig
Test Compilation / Build evk (push) Failing after 16s
2026-05-08 14:23:55 +03:00
mo7sen 95f122e93c Updated + Formatted meson.build 2026-05-08 14:23:31 +03:00
3 changed files with 43 additions and 22 deletions
+17
View File
@@ -0,0 +1,17 @@
root = true
# All (Defaults)
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = false
trim_trailing_whitespace = true
max_line_length = 80
indent_style = space
indent_size = 2
# C
# [*.{c,h}]
# indent_style = space
# indent_size = 2
+24 -20
View File
@@ -1,11 +1,15 @@
project('evk', ['c','cpp'],
version : '0.1',
default_options : [
'c_std=c23',
'default_library=static',
'c_args=-fcolor-diagnostics -fansi-escape-codes',
'cpp_args=-fcolor-diagnostics -fansi-escape-codes',
])
project(
'evk',
['c', 'cpp'],
version: '0.1',
default_options: {
'c_std': 'c23',
'default_library': 'static',
'c_args': '-fcolor-diagnostics -fansi-escape-codes',
'cpp_args': '-fcolor-diagnostics -fansi-escape-codes',
},
meson_version: '>=1.2',
)
build_config = configuration_data()
@@ -26,7 +30,7 @@ disabled_warnings = {
],
}
subproject('evol-headers')
subproject('evol-headers', default_options: {'build_tests': false})
subproject('volk')
evk_c_args = []
@@ -40,12 +44,14 @@ elif cc.get_id() == 'clang'
endif
foreach w : disabled_warnings[cc.get_id()]
evk_c_args += '-Wno-'+w
evk_c_args += '-Wno-' + w
endforeach
evk_incdir = include_directories([
'.',
])
evk_incdir = include_directories(
[
'.',
],
)
evk_src = [
'evk/evkInstance.c',
@@ -71,11 +77,8 @@ evk_lib = library(
include_directories: evk_incdir,
dependencies: [
dependency('evol-headers'),
dependency('vma'),
dependency('volk'),
dependency('shaderc'),
dependency('spvref'),
],
@@ -89,9 +92,10 @@ evk_dep = declare_dependency(
dependency('volk').partial_dependency(includes: true, compile_args: true),
dependency('vma').partial_dependency(includes: true),
dependency('evol-headers').partial_dependency(includes: true),
])
],
)
meson.override_dependency('evk', evk_dep)
# if build_samples
subdir('samples')
# endif
if get_option('build_samples')
subdir('samples')
endif
+1 -1
View File
@@ -1 +1 @@
option('build_evh_tests', type: 'boolean', value: false, description: 'Build the evol-headers tests')
option('build_samples', type: 'boolean', value: true, description: 'Build the evk samples')