aboutsummaryrefslogtreecommitdiffhomepage
path: root/build.html
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2020-11-05 23:38:57 +0300
committerlevlam <levlam@telegram.org>2020-11-05 23:38:57 +0300
commit8d93905760094fe8197742d622f8b3ab7e925d98 (patch)
treeed214ae47257b1bc4e2a907c6702d6d34b458400 /build.html
parent91db058809e6f14f6aa22d2f09e0a969676bf4e6 (diff)
Always use SplitSource on OpenBSD.
Diffstat (limited to 'build.html')
-rw-r--r--build.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/build.html b/build.html
index a81e39e..82c4c38 100644
--- a/build.html
+++ b/build.html
@@ -367,7 +367,7 @@ function onOptionsChanged() {
if (!use_root) {
commands.push('su -');
}
- var packages = 'git gperf cmake';
+ var packages = 'git gperf php-7.2.10 cmake';
commands.push('pkg_add -z ' + packages);
if (!use_root) {
commands.push('exit');
@@ -469,6 +469,12 @@ function onOptionsChanged() {
}
commands.push(getCmakeInitCommand(cmake_init_options));
+ if (os_openbsd) {
+ commands.push('cmake --build . --target prepare_cross_compiling');
+ commands.push('cd ../td');
+ commands.push('php-7.2 SplitSource.php');
+ commands.push('cd ../build');
+ }
let build_command = 'cmake --build . --target install';
if (use_msvc) {
if (!is_debug_build) {
@@ -480,6 +486,10 @@ function onOptionsChanged() {
} else {
commands.push(build_command);
}
+ if (os_openbsd) {
+ commands.push('cd ../td');
+ commands.push('php-7.2 SplitSource.php --undo');
+ }
commands.push('cd ../..');
if (install_dir !== '/usr/local') {
install_dir = 'telegram-bot-api';