mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 04:55:44 +00:00
Lifts Bannerlator's Linux/gamescope runtime out into an app of its own: the Wayland compositor, the proot session, the runtime installer, the fake-evdev controller path and the PulseAudio server, with none of the Wine, container or store machinery around them. One activity installs the runtime from the same winlator-contents catalog and a second one runs the session: compositor on a SurfaceView, gamescope and Valve's native arm64 client under proot, a physical pad republished into the fake-input rings, and the session's milestones on screen until the first frame arrives.
51 lines
1.8 KiB
Meson
51 lines
1.8 KiB
Meson
project(
|
|
'adrenotools',
|
|
['cpp', 'c'],
|
|
default_options : ['default_library=static']
|
|
)
|
|
|
|
cpp = meson.get_compiler('cpp')
|
|
c = meson.get_compiler('c')
|
|
|
|
adrenotools_inc = include_directories('include')
|
|
|
|
libandroid_dep = cpp.find_library('android')
|
|
liblog_dep = c.find_library('log')
|
|
|
|
subdir('lib/linkernsbypass')
|
|
|
|
linkernsbypass_dep = declare_dependency(
|
|
include_directories: linkernsbypass_inc,
|
|
link_with: linkernsbypass_lib,
|
|
link_args: '-Wl,-s,--exclude-libs,liblinkernsbypass.a'
|
|
)
|
|
|
|
adrenotools_sources = ['src/bcenabler.cpp', 'src/driver.cpp', 'include/adrenotools/bcenabler.h', 'include/adrenotools/driver.h', 'include/adrenotools/priv.h']
|
|
|
|
adrenotools_lib = shared_library(
|
|
'adrenotools',
|
|
adrenotools_sources,
|
|
c_args: (['-Wall', '-Wextra']),
|
|
cpp_args: (['-Wall', '-Wextra']),
|
|
include_directories: adrenotools_inc,
|
|
dependencies: ([linkernsbypass_dep, libandroid_dep, liblog_dep]),
|
|
install: true
|
|
)
|
|
|
|
subdir('src/hook')
|
|
|
|
# target_include_directories(['adrenotools', 'PUBLIC', 'include'])
|
|
# target_include_directories(['adrenotools', 'PRIVATE', '.'])
|
|
# target_compile_options(['adrenotools', 'PRIVATE', '-Wall', '-Wextra'])
|
|
# target_link_libraries(['adrenotools', 'android', 'linkernsbypass'])
|
|
# hooks_deb = subproject('src/hook')
|
|
# if build_shared_libs
|
|
# target_link_options(['adrenotools', 'PRIVATE', '-Wl,-s,--exclude-libs,liblinkernsbypass.a'])
|
|
# endif
|
|
# if gen_install_target
|
|
# configure_file(['adrenotools.pc.in', 'adrenotools.pc', '@ONLY'])
|
|
# install(['FILES', cmake_binary_dir, '/adrenotools.pc', 'DESTINATION', 'lib/pkgconfig'])
|
|
# install(['TARGETS', 'adrenotools', 'main_hook', 'file_redirect_hook', 'gsl_alloc_hook', 'hook_impl'])
|
|
# install(['DIRECTORY', 'include/', 'DESTINATION', 'include', 'FILES_MATCHING', 'PATTERN', '*.h*'])
|
|
# endif
|