Skip to content

Commit 47cb57b

Browse files
committed
Switch to meson build system
qbs unfortunately died an awful death due to commercial side of Qt. We'll go with the next best thing.
1 parent fc95eae commit 47cb57b

File tree

2 files changed

+23
-86
lines changed

2 files changed

+23
-86
lines changed

logic-dshot.qbs

-86
This file was deleted.

meson.build

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
project('DshotAnalyzer', 'cpp',
2+
default_options: ['cpp_std=c++17'])
3+
4+
cxx = meson.get_compiler('cpp')
5+
6+
if host_machine.cpu_family() == 'x86_64' and host_machine.system() != 'darwin'
7+
analyzer_name = 'Analyzer64'
8+
else
9+
analyzer_name = 'Analyzer'
10+
endif
11+
12+
sdk_lib = cxx.find_library(analyzer_name, dirs: meson.current_source_dir() + '/sdk/lib')
13+
14+
source = [
15+
'source/DshotAnalyzer.cpp',
16+
'source/DshotAnalyzerResults.cpp',
17+
'source/DshotAnalyzerSettings.cpp',
18+
'source/DshotSimulationDataGenerator.cpp',
19+
]
20+
includes = include_directories('source', 'sdk/include')
21+
libs = 'sdk/lib'
22+
shared_library('DShotAnalyzer', source, include_directories: includes, dependencies: sdk_lib)
23+

0 commit comments

Comments
 (0)