Difference between revisions of "Database/Drivers/MySQL Native/Building With CMake"

From Apache OpenOffice Wiki
Jump to: navigation, search
(New page: Both Connector/C++ (called C/Cpp) and Connector/C (called C/C; formerly known as libmysql) are usually built using [http://www.cmake.org cmake]. It's hardly possible to simulate this with...)
 
Line 3: Line 3:
 
It's hardly possible to simulate this with <code>dmake</code>: Both projects make use of <code>cmake</code>'s configuration features, in that a template file is processed by <code>cmake</code>, and converted into an actual header/source file. In case of C/Cpp, this template file is pretty simple, and can easily be replaced with a hard-coded one.
 
It's hardly possible to simulate this with <code>dmake</code>: Both projects make use of <code>cmake</code>'s configuration features, in that a template file is processed by <code>cmake</code>, and converted into an actual header/source file. In case of C/Cpp, this template file is pretty simple, and can easily be replaced with a hard-coded one.
  
However, in case of C/C, the templates are pretty complex, containing lot of checks for certain system headers and functions. Here, simulating <code>cmake<code> functionality with <code>dmake</code> is up to impossible.
+
However, in case of C/C, the templates are pretty complex, containing lot of checks for certain system headers and functions. Here, simulating <code>cmake</code> functionality with <code>dmake</code> is up to impossible.
  
 
Thus, we need a solution how to build C/C and C/Cpp during an OOo build.
 
Thus, we need a solution how to build C/C and C/Cpp during an OOo build.

Revision as of 13:58, 6 March 2009

Both Connector/C++ (called C/Cpp) and Connector/C (called C/C; formerly known as libmysql) are usually built using cmake.

It's hardly possible to simulate this with dmake: Both projects make use of cmake's configuration features, in that a template file is processed by cmake, and converted into an actual header/source file. In case of C/Cpp, this template file is pretty simple, and can easily be replaced with a hard-coded one.

However, in case of C/C, the templates are pretty complex, containing lot of checks for certain system headers and functions. Here, simulating cmake functionality with dmake is up to impossible.

Thus, we need a solution how to build C/C and C/Cpp during an OOo build.

Personal tools