Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/code-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Tests
on:
- push
- pull_request

jobs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ jobs:
-Dapparmor=true \
-Dopenssl=true \
-Ddbus=false \
-Ddbus=false \
-Dandroid-log=true \
--cross-file aarch64-android-api30.txt

Expand Down
24 changes: 13 additions & 11 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,19 @@ if add_languages('cpp', required : want_oss_fuzz)
add_project_arguments(cxx.get_supported_arguments(basic_disabled_warnings), language : 'cpp')
endif

## Android
have = cc.get_id().contains('clang') and cc.has_header('android/log.h')
srcconf.set10('IS_BIONIC', have)

# Feature detection
## Android Log System.
if want_android_log
liblog = cc.find_library('log', required: true)
pkgconfig_libs += liblog
liblxc_dependencies += liblog
srcconf.set10('USE_ANDROID_LOG', liblog.found())
endif

## I/O uring.
if want_io_uring
liburing = dependency('liburing')
Expand Down Expand Up @@ -428,7 +440,7 @@ if want_capabilities
code = '''
int main(int argc, char *argv[]) { return 0; };
'''
if libcap_static.found()
if libcap_static.found() and not IS_BIONIC
libcap_static_linkable = cc.links(code, args: '-static', dependencies: libcap_static)
else
libcap_static_linkable = false
Expand Down Expand Up @@ -461,16 +473,6 @@ pkgconfig_libs += pam
have = cc.has_function('fmemopen', prefix: '#include <stdio.h>', args: '-D_GNU_SOURCE')
srcconf.set10('HAVE_FMEMOPEN', have)

## Android
have = cc.get_id().contains('clang') and cc.has_header('android/log.h')
srcconf.set10('IS_BIONIC', have)
if want_android_log
liblog = cc.find_library('log', required: true)
pkgconfig_libs += liblog
liblxc_dependencies += liblog
srcconf.set10('USE_ANDROID_LOG', liblog.found())
endif

have = cc.has_function('openpty', dependencies: libutil, prefix: '#include <pty.h>')
srcconf.set10('HAVE_OPENPTY', have)
if have
Expand Down
Loading