浏览代码

tutorials/cmake: added table with correspinding commands for the new cmake building system

- updated titles and added link back to main page
Daniel-Constantin Mierla 9 月之前
父节点
当前提交
03369f9706
共有 4 个文件被更改,包括 44 次插入5 次删除
  1. 33 0
      docs/tutorials/cmake/commands.md
  2. 3 1
      docs/tutorials/cmake/custom.md
  3. 3 1
      docs/tutorials/cmake/default.md
  4. 5 3
      docs/tutorials/cmake/index.md

+ 33 - 0
docs/tutorials/cmake/commands.md

@@ -0,0 +1,33 @@
+
+# Old-Makefiles And CMake Commands
+
+[Building Kamailio From Source Using CMake - ToC](index.md)
+
+The corresponding or similar commands between the old build systems using Makefiles
+and the new one using CMake.
+
+The Old-Makefiles commands are run in the root folder of Kamailio source code:
+
+```
+cd /path/to/kamailio
+```
+
+The CMake commands have to be run after:
+
+```
+cd /path/to/kamailio
+mkdir build
+cd build
+```
+
+| Old-Makefiles  | CMake         | Description |
+| :------------- | :------------ | :---------- |
+| `make cfg`  | `cmake ..`  | Generate config files for the build system |
+| `make PREFIX=/tmp/kamailio-dev cfg ` | `cmake -DCMAKE_INSTALL_PREFIX=/tmp/kamailio-dev ..` | Specify installation path prefix |
+| `make include_modules="app_lua db_mysql" cfg` | `cmake -DINCLUDE_MODULES="app_lua db_mysql" ..` | Specify additional modules to be included in compilation |
+| `make`      | `make kamailio` | Compile `kamailio` binary (the core) |
+| `make all`  | `make` | Compile everything (core and modules) |
+| `make modules modules=src/modules/acc` | `make acc` | Compile `acc` modules (substitute with any other module name) |
+| `make Q=0` | `make VERBOSE=on` | Compile with verbose output (quiet off) |
+
+

+ 3 - 1
docs/tutorials/cmake/custom.md

@@ -1,4 +1,6 @@
-# Customizing the Build with CMake Options
+# Customizing The Building Kamailio With CMake Options
+
+[Building Kamailio From Source Using CMake - ToC](index.md)
 
 When building Kamailio from source using CMake, you can customize the build process by passing various configuration options. These options allow you to tailor the build to your specific needs, such as specifying the installation prefix, including or excluding modules, and enabling or disabling features.
 

+ 3 - 1
docs/tutorials/cmake/default.md

@@ -1,4 +1,6 @@
-# Building Kamailio from Source using CMake
+# The Basics Of Building Kamailio From Source Using CMake
+
+[Building Kamailio From Source Using CMake - ToC](index.md)
 
 This guide will walk you through the process of building Kamailio from source using CMake.
 

+ 5 - 3
docs/tutorials/cmake/index.md

@@ -1,6 +1,8 @@
 
-# Building Kamailio from Source using CMake
+# Building Kamailio From Source Using CMake
 
-* [Building Kamailio from Source using CMake default options](default.md)
+* [The Basics Of Building Kamailio From Source Using CMake](default.md)
 
-* [Building Kamailio from Source using CMake with custom options](custom.md)
+* [Customizing The Building Kamailio With CMake Options](custom.md)
+
+* [Corresponding Old-Makefiles And CMake Commands](commands.md)