This repository has been archived on 2024-03-07. You can view files and clone it, but cannot push or open issues/pull-requests.
bloody-gun/meson.build

47 lines
815 B
Meson
Raw Normal View History

2023-11-10 22:50:20 +00:00
project('bloody-gun',
'cpp',
version: '0.0.0',
default_options: [
'warning_level=3',
'cpp_std=c++17'
])
datadir = get_option('prefix') / get_option('datadir') / 'bloody_gun'
conf = configuration_data()
conf.set('version', meson.project_version())
conf.set('datadir', datadir)
configure_file(
input: 'src/conf.in.hpp',
output: 'conf.hpp',
configuration: conf
)
executable(
'bloody-gun',
sources: [
'src/main.cpp',
2023-11-11 07:57:45 +00:00
# core
'src/Game.cpp',
'src/BaseScene.cpp',
'src/scenes/World.cpp',
# gfx
'src/Renderer.cpp',
'src/Shaders.cpp',
'src/Canvas.cpp',
2023-11-10 22:50:20 +00:00
],
dependencies: [
2023-11-11 07:57:45 +00:00
dependency('glew'),
dependency('glm'),
dependency('sdl2'),
2023-11-10 22:50:20 +00:00
],
install: true
)
install_subdir('assets', install_dir: datadir)