Merge commit 'f5ab6870b25741cd4459fc46b4fe5861d993e499'

This commit is contained in:
Andrea Cavalli 2020-11-06 11:50:26 +01:00
commit ece8aa969f

View File

@ -367,7 +367,7 @@ function onOptionsChanged() {
if (!use_root) { if (!use_root) {
commands.push('su -'); commands.push('su -');
} }
var packages = 'git gperf cmake'; var packages = 'git gperf php-7.2.10 cmake';
commands.push('pkg_add -z ' + packages); commands.push('pkg_add -z ' + packages);
if (!use_root) { if (!use_root) {
commands.push('exit'); commands.push('exit');
@ -469,6 +469,12 @@ function onOptionsChanged() {
} }
commands.push(getCmakeInitCommand(cmake_init_options)); 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'; let build_command = 'cmake --build . --target install';
if (use_msvc) { if (use_msvc) {
if (!is_debug_build) { if (!is_debug_build) {
@ -480,6 +486,10 @@ function onOptionsChanged() {
} else { } else {
commands.push(build_command); commands.push(build_command);
} }
if (os_openbsd) {
commands.push('cd ../td');
commands.push('php-7.2 SplitSource.php --undo');
}
commands.push('cd ../..'); commands.push('cd ../..');
if (install_dir !== '/usr/local') { if (install_dir !== '/usr/local') {
install_dir = 'telegram-bot-api'; install_dir = 'telegram-bot-api';