Fix autotype test (build) failures on Mac OS and Windows.

We need to tell Windows what symbols the main program exports
and the autotype plugin imports.

On both systems the linker needs the path of the main program that
loads the plugin.
This commit is contained in:
Felix Geyer
2013-03-29 16:27:02 +01:00
parent 98e59215b8
commit 5550d7af0d
5 changed files with 23 additions and 7 deletions

View File

@@ -118,4 +118,14 @@ template <> class QStaticAssertFailure<true> {};
#endif // COMPILER_STATIC_ASSERT
#endif // !defined(Q_STATIC_ASSERT) && !defined(Q_STATIC_ASSERT_X)
#if defined(Q_OS_WIN)
# if defined(KEEPASSX_BUILDING_CORE)
# define KEEPASSX_EXPORT Q_DECL_EXPORT
# else
# define KEEPASSX_EXPORT Q_DECL_IMPORT
# endif
#else
# define KEEPASSX_EXPORT
#endif
#endif // KEEPASSX_GLOBAL_H