Add glava-config configuration program
This commit is contained in:
14
meson.build
14
meson.build
@@ -63,7 +63,7 @@ if get_option('enable_glfw')
|
||||
'-DGLAVA_GLFW',
|
||||
language: 'c'
|
||||
)
|
||||
glava_dependencies += dependency('glfw')
|
||||
glava_dependencies += cc.find_library('glfw')
|
||||
endif
|
||||
|
||||
if not get_option('disable_glx')
|
||||
@@ -93,4 +93,16 @@ executable(
|
||||
install: true
|
||||
)
|
||||
|
||||
executable(
|
||||
'glava-config',
|
||||
sources: run_command('find', 'glava-config', '-type', 'f', '-name', '*.c', '-print').stdout().strip().split('\n'),
|
||||
dependencies: [
|
||||
dependency('glew'),
|
||||
cc.find_library('glfw'),
|
||||
cc.find_library('GL')
|
||||
],
|
||||
c_args: '-Wunused-but-set-variable',
|
||||
install: true
|
||||
)
|
||||
|
||||
install_subdir('shaders/glava', install_dir: shaderdir+'/../')
|
||||
|
||||
Reference in New Issue
Block a user