Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
export/import attributes for Core lib
- Loading branch information
1 parent
4d985e6
commit 547ddf4
Showing
4 changed files
with
28 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
StaticLibrary { | ||
name: "core-static" | ||
cpp.cxxLanguageVersion: "c++11" | ||
cpp.defines: "CORE_STATIC" | ||
files: ["core.h", "core.cpp"] | ||
Depends { name: "cpp" } | ||
Depends { name: "header-only" } | ||
Export { | ||
Depends { name: "cpp" } | ||
cpp.defines: "CORE_STATIC" | ||
cpp.includePaths: [product.sourceDirectory] | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef CORE_DYNAMIC_H | ||
#define CORE_DYNAMIC_H | ||
|
||
#if defined(_MSC_VER) || defined(WIN64) || defined(_WIN64) || defined(__WIN64__) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) | ||
# define Q_DECL_EXPORT __declspec(dllexport) | ||
# define Q_DECL_IMPORT __declspec(dllimport) | ||
#else | ||
# define Q_DECL_EXPORT __attribute__((visibility("default"))) | ||
# define Q_DECL_IMPORT __attribute__((visibility("default"))) | ||
#endif | ||
|
||
#if defined(CORE_LIBRARY) | ||
# define CORE_EXPORT Q_DECL_EXPORT | ||
#else | ||
# define CORE_EXPORT Q_DECL_IMPORT | ||
#endif | ||
|
||
#endif // CORE_DYNAMIC_H |