Skip to content
Snippets Groups Projects
Verified Commit 8bec894e authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Add libevent wrap

parent 417821a0
No related branches found
No related tags found
1 merge request!2Add wraps for all dependencies
Pipeline #1304 failed
......@@ -5,4 +5,6 @@
compile_commands.json
/subprojects/packagecache
/subprojects/doctest-*
/subprojects/libevent-2.1.12-stable/
/subprojects/packagecache/
/*.pem
......@@ -26,6 +26,27 @@ build:
reports:
junit: http*.xml
build-with-wraps:
stage: build
image: alpine:latest
tags: [docker]
before_script:
- echo 'https://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories
- apk update && apk add clang-extra-tools meson git python3 py3-pip py3-flask curl-dev g++ cmake pkgconf openssl make
- export PATH="$PATH:/root/.local/bin"
- pip3 install --user reuse
- ./scripts/run_tls_testserver.sh &
- ./scripts/run_testserver.sh &
script:
- meson setup builddir -Dtests=true -Dexamples=true --wrap-mode=forcefallback
- meson compile -C builddir
- ./builddir/tests/requests_tls -d --reporters=junit --out=https.xml
- ./builddir/tests/requests -d --reporters=junit --out=http.xml
- ./builddir/examples/coeurl_example
artifacts:
reports:
junit: http*.xml
build-cmake:
stage: build
image: alpine:latest
......
[wrap-file]
directory = libevent-2.1.12-stable
source_url = https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
source_filename = libevent-2.1.12-stable.tar.gz
source_hash = 92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb
patch_directory = libevent-meson
[provide]
libevent_core = libevent_core_dep
libevent_pthreads = libevent_pthreads_dep
libevent_windows = libevent_windows_dep
project('Libevent meson wrapper', 'c',
meson_version : '>=0.57.0',
)
mod = import('unstable_external_project')
p = mod.add_project('configure',
configure_options : [
'--disable-openssl',
],
)
libevent_core_dep = p.dependency('libevent_core')
if target_machine.system() == 'windows'
libevent_windows_dep = p.dependency('libevent_pthreads')
else
libevent_pthreads_dep = p.dependency('libevent_pthreads')
endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment