Database/Drivers/MySQL Native/Building With CMake

From Apache OpenOffice Wiki
< Database‎ | Drivers‎ | MySQL Native
Revision as of 13:57, 6 March 2009 by Frank Schoenheit (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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<code> functionality with <code>dmake is up to impossible.

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

Personal tools