Skip to content

Commit

Permalink
[orbetto] Simplify orbetto source code
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaut committed Feb 2, 2024
1 parent bdb586e commit 615e37a
Show file tree
Hide file tree
Showing 5 changed files with 1,479 additions and 1,759 deletions.
7 changes: 4 additions & 3 deletions ext/orbetto/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project('orbetto', ['c', 'cpp'], default_options: ['cpp_std=c++20'])
project('orbetto', ['c', 'cpp'], default_options: ['cpp_std=c++23'])

# Clone the perfetto git repository
subproject('perfetto')
Expand All @@ -18,12 +18,13 @@ perfbuf_lib = static_library('perfbuf', sources: perfbuf_sources, dependencies:
# Clone the orbuculum git repository
orbuculum = subproject('orbuculum')
liborb = orbuculum.get_variable('liborb')
orbinc = orbuculum.get_variable('incdirs')
git_version_info_h = orbuculum.get_variable('git_version_info_h')

# Compile and link everything together
executable('orbetto',
sources: ['orbetto.cpp', git_version_info_h],
include_directories: ['subprojects/orbuculum/Inc', 'subprojects/orbuculum/Inc/external'] + perfbuf_lib.private_dir_include(),
sources: ['src/orbetto.cpp', 'src/device.cpp', git_version_info_h],
include_directories: ['src'] + perfbuf_lib.private_dir_include() + orbinc,
dependencies: [dependency('protobuf')] + orbuculum.get_variable('dependencies'),
link_with: [liborb, perfbuf_lib],
install: true,
Expand Down
Loading

0 comments on commit 615e37a

Please sign in to comment.