This repository has been archived by the owner on Apr 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.sh
executable file
·54 lines (38 loc) · 1.58 KB
/
configure.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env bash
if [[ ! -f "$MESON_BUILD_ROOT/bootstrap.sql" ]]; then
command cp "$MESON_SOURCE_ROOT/bootstrap.sql" "$MESON_BUILD_ROOT/bootstrap.sql"
fi
if [[ ! $(cmp -s "$MESON_SOURCE_ROOT/bootstrap.sql" "$MESON_BUILD_ROOT/bootstrap.sql") ]]; then
command rm "$MESON_BUILD_ROOT/bootstrap.sql"
command cp "$MESON_SOURCE_ROOT/bootstrap.sql" "$MESON_BUILD_ROOT/bootstrap.sql"
fi
if [[ -d "$MESON_SOURCE_ROOT/lib" ]]; then
exit 0
fi
command git submodule update --init --recursive
command rm -rf lib/ && mkdir -p lib/
WITH_BORINGSSL=1
command make clean -C vendor/uws/uSockets
command make -j8 -C vendor/uws/uSockets
command cp vendor/uws/uSockets/uSockets.a lib/uws.a
command make clean -C vendor/uws/uSockets
command cmake -Blib/validator -Svendor/validator -DHUNTER_ENABLED=ON
command make -j8 -C lib/validator
command cp lib/validator/libnlohmann_json_schema_validator.a lib/validator.a
command rm -rf lib/validator
command cmake -Blib/curl -Svendor/curl
command make -j8 -C lib/curl
command cp lib/curl/libcurlpp.a lib/curlpp.a
command rm -rf lib/curl
if [[ ! -v CONTAINER ]]; then
# Pending: https://github.com/getsentry/sentry-native/issues/501
command cd vendor/sentry/external/breakpad && git checkout handler && cd -
fi
command cmake -Blib/sentry -Svendor/sentry -DCMAKE_BUILD_TYPE=RelWithDebInfo
command make -j8 -C lib/sentry
command cp lib/sentry/libsentry.so lib/libsentry.so
command rm -rf lib/sentry
command cmake -Blib/pq -Svendor/pq -DPostgreSQL_TYPE_INCLUDE_DIR=/usr/include/postgresql/
command make -j8 -C lib/pq
command cp lib/pq/libtaopq.a lib/libtaopq.a
command rm -rf lib/pq