diff options
| -rw-r--r-- | README.md | 7 | ||||
| -rw-r--r-- | build.html | 11 |
2 files changed, 6 insertions, 12 deletions
@@ -68,15 +68,12 @@ cmake --build . ``` To build `TDLib` on low memory devices you can run [SplitSource.php](https://github.com/tdlib/td/blob/master/SplitSource.php) script -before compiling main `TDLib` source code and compile only needed targets: +before compiling `TDLib` source code and compile only needed targets: ``` +php SplitSource.php mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release .. -cmake --build . --target prepare_cross_compiling -cd .. -php SplitSource.php -cd build cmake --build . --target tdjson cmake --build . --target tdjson_static cd .. diff --git a/build.html b/build.html index f46fd416b..761631eaf 100644 --- a/build.html +++ b/build.html @@ -994,6 +994,10 @@ function onOptionsChanged() { } commands.push('cd ../..'); } else { + if (low_memory) { + commands.push(php + ' SplitSource.php'); + } + commands.push(use_powershell ? 'Remove-Item build -Force -Recurse -ErrorAction SilentlyContinue' : 'rm -rf build'); commands.push('mkdir build'); commands.push('cd build'); @@ -1041,13 +1045,6 @@ function onOptionsChanged() { } commands.push(getCmakeInitCommand(cmake_init_options)); - if (low_memory) { - commands.push(cmake + ' --build . --target prepare_cross_compiling'); - commands.push('cd ..'); - commands.push(php + ' SplitSource.php'); - commands.push('cd build'); - } - let build_command = cmake + ' --build .'; if (install_dir) { build_command += ' --target install'; |
