forked from len0rd/rockbox
Theme Editor: fix building on Windows.
The imported qtfindreplacedialog assumes getting compiled as library. Including the files directly causes problems on Windows because of its __declspec() handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27559 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4e8ef93509
commit
62f661829b
2 changed files with 6 additions and 0 deletions
|
|
@ -8,10 +8,14 @@
|
|||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
#ifndef FINDREPLACE_NOLIB
|
||||
#if defined(FINDREPLACE_LIBRARY)
|
||||
# define FINDREPLACESHARED_EXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
# define FINDREPLACESHARED_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define FINDREPLACESHARED_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // FINDREPLACE_GLOBAL_H
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@ INCLUDEPATH += models
|
|||
INCLUDEPATH += graphics
|
||||
INCLUDEPATH += quazip
|
||||
INCLUDEPATH += qtfindreplacedialog
|
||||
|
||||
DEFINES += FINDREPLACE_NOLIB
|
||||
cross {
|
||||
message("Crossbuilding for W32 binary")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue