mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-04-18 21:46:48 +02:00
Compare commits
3 Commits
cf491fc56d
...
59b3a297f9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59b3a297f9 | ||
| 790e24ebdb | |||
|
|
3a2563a7f5 |
37
meson.build
37
meson.build
@@ -1,12 +1,15 @@
|
|||||||
project('MacroLibX',
|
project('MacroLibX',
|
||||||
['c', 'cpp'],
|
['c', 'cpp'],
|
||||||
version : '2.2.4',
|
version : '2.3.0',
|
||||||
license : 'MIT',
|
license : 'MIT',
|
||||||
meson_version : '>= 1.9.0',
|
meson_version : '>= 0.63.0',
|
||||||
default_options : ['warning_level=2', 'optimization=3', 'cpp_std=c++20'])
|
default_options : [
|
||||||
|
'warning_level=2',
|
||||||
|
'optimization=3',
|
||||||
|
'cpp_std=c++20',
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
add_project_arguments('-Wno-error=', language : 'c')
|
|
||||||
add_project_arguments('-fPIC', language : 'c')
|
|
||||||
add_project_arguments('-DSDL_MAIN_HANDLED', language : 'c')
|
add_project_arguments('-DSDL_MAIN_HANDLED', language : 'c')
|
||||||
|
|
||||||
if get_option('graphics_memory_dump')
|
if get_option('graphics_memory_dump')
|
||||||
@@ -25,15 +28,14 @@ if get_option('disable_all_safeties')
|
|||||||
add_project_arguments('-DDISABLE_ALL_SAFETIES', language : 'c')
|
add_project_arguments('-DDISABLE_ALL_SAFETIES', language : 'c')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
includes_directories = [
|
includes_directories = include_directories(
|
||||||
include_directories('includes'),
|
'includes',
|
||||||
include_directories('runtime/Includes'),
|
'runtime/Includes',
|
||||||
include_directories('runtime/Sources'),
|
'runtime/Sources',
|
||||||
include_directories('third_party'),
|
'third_party',
|
||||||
]
|
)
|
||||||
|
|
||||||
sources = [
|
sources = files(
|
||||||
files(
|
|
||||||
'runtime/Sources/Core/Application.cpp',
|
'runtime/Sources/Core/Application.cpp',
|
||||||
'runtime/Sources/Core/Bridge.cpp',
|
'runtime/Sources/Core/Bridge.cpp',
|
||||||
'runtime/Sources/Core/EventBus.cpp',
|
'runtime/Sources/Core/EventBus.cpp',
|
||||||
@@ -66,9 +68,8 @@ sources = [
|
|||||||
'runtime/Sources/Renderer/RenderCore.cpp',
|
'runtime/Sources/Renderer/RenderCore.cpp',
|
||||||
'runtime/Sources/Renderer/Renderer.cpp',
|
'runtime/Sources/Renderer/Renderer.cpp',
|
||||||
'runtime/Sources/Renderer/SceneRenderer.cpp',
|
'runtime/Sources/Renderer/SceneRenderer.cpp',
|
||||||
'runtime/Sources/Renderer/Swapchain.cpp'
|
'runtime/Sources/Renderer/Swapchain.cpp',
|
||||||
)
|
)
|
||||||
]
|
|
||||||
|
|
||||||
mlx_headers = [
|
mlx_headers = [
|
||||||
'includes/mlx.h',
|
'includes/mlx.h',
|
||||||
@@ -78,9 +79,7 @@ mlx_headers = [
|
|||||||
|
|
||||||
install_headers(mlx_headers)
|
install_headers(mlx_headers)
|
||||||
|
|
||||||
deps = [
|
deps = dependency('sdl2')
|
||||||
dependency('sdl2'),
|
|
||||||
]
|
|
||||||
|
|
||||||
libmlx = library('mlx',
|
libmlx = library('mlx',
|
||||||
sources,
|
sources,
|
||||||
|
|||||||
Reference in New Issue
Block a user