File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -68,15 +68,12 @@ cmake --build .
68
68
```
69
69
70
70
To build ` TDLib ` on low memory devices you can run [ SplitSource.php] ( https://github.com/tdlib/td/blob/master/SplitSource.php ) script
71
- before compiling main ` TDLib ` source code and compile only needed targets:
71
+ before compiling ` TDLib ` source code and compile only needed targets:
72
72
```
73
+ php SplitSource.php
73
74
mkdir build
74
75
cd build
75
76
cmake -DCMAKE_BUILD_TYPE=Release ..
76
- cmake --build . --target prepare_cross_compiling
77
- cd ..
78
- php SplitSource.php
79
- cd build
80
77
cmake --build . --target tdjson
81
78
cmake --build . --target tdjson_static
82
79
cd ..
Original file line number Diff line number Diff line change 994
994
}
995
995
commands . push ( 'cd ../..' ) ;
996
996
} else {
997
+ if ( low_memory ) {
998
+ commands . push ( php + ' SplitSource.php' ) ;
999
+ }
1000
+
997
1001
commands . push ( use_powershell ? 'Remove-Item build -Force -Recurse -ErrorAction SilentlyContinue' : 'rm -rf build' ) ;
998
1002
commands . push ( 'mkdir build' ) ;
999
1003
commands . push ( 'cd build' ) ;
1041
1045
}
1042
1046
commands . push ( getCmakeInitCommand ( cmake_init_options ) ) ;
1043
1047
1044
- if ( low_memory ) {
1045
- commands . push ( cmake + ' --build . --target prepare_cross_compiling' ) ;
1046
- commands . push ( 'cd ..' ) ;
1047
- commands . push ( php + ' SplitSource.php' ) ;
1048
- commands . push ( 'cd build' ) ;
1049
- }
1050
-
1051
1048
let build_command = cmake + ' --build .' ;
1052
1049
if ( install_dir ) {
1053
1050
build_command += ' --target install' ;
You can’t perform that action at this time.
0 commit comments