diff options
| author | ludolpif <ludolpif@ass-project.org> | 2026-11-29 00:01:11 +0100 |
|---|---|---|
| committer | ludolpif <ludolpif@ass-project.org> | 2026-11-29 00:01:11 +0100 |
| commit | 88e891a048cc2b0c9f7b201bf62fa9845d182aeb (patch) | |
| tree | 8a4599804de492f5030f8846657a886a88efc763 /meson.build | |
| download | ass-88e891a048cc2b0c9f7b201bf62fa9845d182aeb.tar.gz ass-88e891a048cc2b0c9f7b201bf62fa9845d182aeb.tar.bz2 ass-88e891a048cc2b0c9f7b201bf62fa9845d182aeb.zip | |
Signed-off-by: ludolpif <ludolpif@ass-project.org>
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..ac6f7c9 --- /dev/null +++ b/meson.build @@ -0,0 +1,34 @@ +# NOTE: Meson is used exclusively for Linux builds. +# Windows builds use MSBuild / Visual Studio (build-win/ass.sln). +# macOS builds use native Xcode project (build-mac/ass.xcodeproj). +project( + 'ass', + ['c', 'cpp'], + version: run_command('scripts/get_version.sh', check: true).stdout().strip(), + default_options: ['c_std=gnu11', 'cpp_std=c++17', 'warning_level=2'], +) + +if host_machine.system() != 'linux' + error('Meson build is supported exclusively on Linux. For macOS, use native Xcode (build-mac/ass.xcodeproj). For Windows, use MSBuild (build-win/ass.sln).') +endif + + +cc = meson.get_compiler('c') +sdl3_dep = dependency('sdl3', required: true) + +project_inc = include_directories('app_metadata') + +dev_args = [] +if get_option('debug') + dev_args += ['-DASS_DEV_BUILD=1'] +endif + +executable( + 'ass', + [ + 'src/app/main.c', + ], + include_directories: project_inc, + c_args: ['-D_GNU_SOURCE'] + dev_args, + dependencies: [sdl3_dep], +) |
