summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/core_gyp_generator.pro15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core/core_gyp_generator.pro b/src/core/core_gyp_generator.pro
index f2834946f..247ec482a 100644
--- a/src/core/core_gyp_generator.pro
+++ b/src/core/core_gyp_generator.pro
@@ -175,3 +175,18 @@ qtHaveModule(positioning) {
HEADERS += location_provider_qt.h
DEFINES += QT_USE_POSITIONING=1
}
+
+win32:msvc {
+ EXPORTS_CPP = $$OUT_PWD/api/public_exports.cpp
+ !build_pass {
+ API_HEADERS = $$files($$PWD/api/*.h)
+ CONTENT = "// Dummy C++ file to make sure API symbols are exported."
+ for(f, API_HEADERS) {
+ CONTENT += "$${LITERAL_HASH}include <$$basename(f)>"
+ }
+ write_file($$EXPORTS_CPP, CONTENT)
+ unset(API_HEADERS)
+ unset(CONTENT)
+ }
+ SOURCES += $$EXPORTS_CPP
+}