Fix build with dllexport/dllimport
authorYaakov Selkowitz <yselkowi@redhat.com>
Wed, 22 Jul 2015 06:48:19 +0000 (01:48 -0500)
committerYaakov Selkowitz <yselkowi@redhat.com>
Wed, 22 Jul 2015 06:48:19 +0000 (01:48 -0500)
5.12.0-dllexport.patch [new file with mode: 0644]
kf5-kjsembed.cygport

diff --git a/5.12.0-dllexport.patch b/5.12.0-dllexport.patch
new file mode 100644 (file)
index 0000000..2bf7207
--- /dev/null
@@ -0,0 +1,24 @@
+--- origsrc/kjsembed-5.12.0/src/kjsembed/kjsembed.cpp  2015-07-05 04:08:27.000000000 -0500
++++ src/kjsembed-5.12.0/src/kjsembed/kjsembed.cpp      2015-07-21 20:41:39.540559800 -0500
+@@ -72,6 +72,7 @@
+ namespace KJS
+ {
+ #ifndef QTONLY_WEBKIT
++KJSEMBED_EXPORT
+ UString::UString(const QString &d)
+ {
+     uint len = d.length();
+@@ -80,11 +81,13 @@ UString::UString(const QString &d)
+     m_rep = UString::Rep::create(dat, len);
+ }
++KJSEMBED_EXPORT
+ QString UString::qstring() const
+ {
+     return QString((QChar *) data(), size());
+ }
++KJSEMBED_EXPORT
+ QString Identifier::qstring() const
+ {
+     return QString((QChar *) data(), size());
index 21f7a160b242272876eca30092fa9d9688d6350a..52ed138b8e51a0691513681bd8ca1401a60dcf14 100644 (file)
@@ -9,6 +9,7 @@ DESCRIPTION="KSJEmbed provides a method of binding JavaScript objects to
 QObjects, so you can script your applications."
 
 SRC_URI="mirror://kde/stable/frameworks/${VERSION%\.*}/portingAids/${NAME#kf5-}-${VERSION}.tar.xz"
+PATCH_URI="5.12.0-dllexport.patch"
 
 PKG_NAMES="libKF5JsEmbed5 libKF5JsEmbed-devel"
 libKF5JsEmbed5_CONTENTS="
This page took 0.029627 seconds and 5 git commands to generate.