-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial work to spport building it as shared lib :)
Signed-off-by: Christian Parpart <[email protected]>
- Loading branch information
1 parent
0dc3977
commit c0d82f5
Showing
60 changed files
with
519 additions
and
3,601 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,18 @@ if(DEFINED MSVC) | |
add_compile_options(/nologo) | ||
endif() | ||
|
||
if(NOT(CPACK_GENERATOR)) | ||
set(CPACK_GENERATOR TGZ) | ||
endif() | ||
set(CPACK_PACKAGE_NAME "Lightweight") | ||
set(CPACK_PACKAGE_VENDOR "https://github.com/christianparpart/Lightwweight/") | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Lightweight SQL C++ library on top of ODBC") | ||
set(CPACK_PACKAGE_CONTACT "Christian Parpart <[email protected]>") | ||
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md") | ||
#set(CPACK_PACKAGE_EXECUTABLES LightweightTest "Lightweight Test Suite") | ||
#set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE.txt") | ||
#set(CPACK_PACKAGE_INSTALL_DIRECTORY "Lightweight SQL ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}") | ||
|
||
add_subdirectory(src/Lightweight) | ||
add_subdirectory(src/tools) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#if defined(__GNUC__) | ||
#define LIGHTWEIGHT_NO_EXPORT __attribute__((visibility("hidden"))) | ||
#define LIGHTWEIGHT_EXPORT __attribute__((visibility("default"))) | ||
#define LIGHTWEIGHT_IMPORT /*!*/ | ||
#define LIGHTWEIGHT_FORCE_INLINE __attribute__((always_inline)) | ||
#elif defined(_MSC_VER) | ||
#define LIGHTWEIGHT_NO_EXPORT /*!*/ | ||
#define LIGHTWEIGHT_EXPORT __declspec(dllexport) | ||
#define LIGHTWEIGHT_IMPORT __declspec(dllimport) | ||
#define LIGHTWEIGHT_FORCE_INLINE __forceinline | ||
#endif | ||
|
||
#if defined(LIGHTWEIGHT_SHARED) | ||
#if defined(BUILD_LIGHTWEIGHT) | ||
#define LIGHTWEIGHT_API LIGHTWEIGHT_EXPORT | ||
#else | ||
#define LIGHTWEIGHT_API LIGHTWEIGHT_IMPORT | ||
#endif | ||
#else | ||
#define LIGHTWEIGHT_API /*!*/ | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.