1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-09-15 08:21:18 +03:00
Commit Graph

12 Commits

Author SHA1 Message Date
Sergei Golubchik
61ef765c43 change plugin TYPE in the REGISTER_PLUGIN to something useful
it's currently unused
2024-10-17 10:00:31 +02:00
Georg Richter
c2b322d2ca CONC-644: Build named pipe plugin as static plugin
Instead of building named pipe plugin as a dynamic
(external) plugin it can be used now as a static
(compiled in) plugin.
2023-05-02 18:30:31 +02:00
Georg Richter
50d48e91fa Reworked plugin interface
Plugin configuration happens now in CMakeLists.txt files in corresponding plugin directories.

plugins.cmake now contains REGISTER_PLUGIN_FUNCTION which accepts the following parameters:
  - TARGET: the name of the plugin (dynamic plugins will be named ${TARGET}.so (or .dll)
  - SOURCES: source files
  - LIBRARIES: additional libraries for linking
  - INCLUDES: include directories
  - CONFIGURATIONS: possible plugin configurations: valid arguments are DYNAMIC, STATIC, OFF
  - DEFAULT: default configuration (see CONFIGURATIONS)
  - COMPILE_OPTIONS: compiler flags

The default plugin configuration can be specified via cmake parameter -DCLIENT_PLUGIN_${TARGET}=[DYNAMIC|STATIC|OFF]
2018-04-07 07:14:43 +02:00
Georg Richter
aabaac04aa Plugin fixes
- include ma_errmsg.h if plugin is built dynamically
- trace_example fixes
2016-11-24 08:56:27 +01:00
Sergei Golubchik
7a787b1e3e C/C integration in MariaDB Server builds
* make is usable as a CMake sub-project
  * put options in a separate namespace
  * but use parent project values when specified
* always specify COMPONENT when INSTALLing
* don't use PROJECT_SOURCE_DIR/PROJECT_BINARY_DIR

Also

* fix out-of-source builds (don't generate files
  in the CMAKE_SOURCE_DIR, always do it in CMAKE_BINARY_DIR)
* make subsequence cmake runs less verbose, use MESSAGE1
  to avoid repeating messages that didn't change
2016-09-05 19:15:58 +02:00
GeorgyKirichenko
56505d8fb6 Use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR. Client library
can be used as subdirectory in another cmake project.
2016-04-27 17:54:07 +03:00
Georg Richter
2f6791115f changed plugin library types from SHARED to MODULE
Fixed float/double/decimal converion for prepared statements:
  since _gcvt (Windows) and gcvt (*nix) deliver different results
  we use now dtoa.c from server package, which is licensed under
  LGPL.
2016-03-11 07:08:34 +01:00
Georg Richter
7246867547 Fix vor VS10 build on Windows:
Visual Studio 10 returns error module machine type 'x64' conflicts with
target machine type 'X86' when compiling a library with a resource file
(version info).
To prevent this, the resource file (.rc) must be the first file.
2015-11-13 15:33:10 +01:00
Georg Richter
587f6d8c63 Added version info support for Windows:
For adding version_info use the macro SET_VERSION_INFO.
The following variable parameters are supported:
  TARGET:target_name
  SOURCE_FILE:source_file_name
  FILE_TYPE:VFT_APP,VFT_Dll or VT_STATIC_LIB
  ORIGINAL_FILE_NAME:exe,dll or lib filename
  FILE_DESCRIPTION:short description of the file
2015-11-10 11:10:28 +01:00
Georg Richter
630d742b89 Last push was incomplete, it contained only new file (old_password.c) 2015-11-02 14:58:04 +01:00
Georg Richter
a240b930fc Added cmake macro for plugin installation 2015-10-27 15:00:02 +01:00
Georg Richter
7500f37150 - Renamed cio to pvio (pluggable virtual IO)
- minor fixes in windows schannel
2015-10-27 10:24:48 +01:00