Ticket #4264: combine-libs.2.patch
File combine-libs.2.patch, 10.8 KB (added by , 16 years ago) |
---|
-
xmlparse.cpp
291 291 if (baseFont && !haveSize) 292 292 size = baseFont->face.pointSize(); 293 293 else 294 size = GetMythMainWindow()->NormalizeFontSize(size);294 size = gContext->NormalizeFontSize(size); 295 295 296 296 // If we don't have to, don't load the font. 297 297 if (!haveFace && baseFont) -
mythdbcon.h
116 116 /// \brief Wrap QSqlQuery::exec(const QString &query) so we can display SQL 117 117 bool exec(const QString &query); 118 118 119 /// \brief QSqlQuery::prepare() is not thread safe in Qt <= 3.3.2120 119 bool prepare(const QString &query); 121 120 122 121 /// \brief Wrap QSqlQuery::bindValue so we can convert null QStrings to empty QStrings 123 void bindValue ( const QString & placeholder, const QVariant & val, QSql::ParamType paramType = QSql::In ); 122 void bindValue ( const QString & placeholder, const QVariant & val, 123 QSql::ParamType paramType = QSql::In ); 124 124 /// \brief Wrap QSqlQuery::bindValue so we can convert null QStrings to empty QStrings 125 void bindValue ( int pos, const QVariant & val, QSql::ParamType paramType = QSql::In ); 125 void bindValue ( int pos, 126 const QVariant & val, QSql::ParamType paramType = QSql::In ); 126 127 127 128 /// \brief Add all the bindings in the passed in bindings 128 129 void bindValues(MSqlBindings &bindings); -
mythcontext.cpp
221 221 Settings *m_settings; ///< connection stuff, theme, button style 222 222 Settings *m_qtThemeSettings; ///< everything else theme-related 223 223 224 QString m_installprefix; ///< Compile-time PREFIX, or generated224 QString m_installprefix; ///< Compile-time RUNPREFIX, or generated 225 225 ///< from enviroment ($MYTHTVDIR or $cwd) 226 226 QString m_installlibdir; ///< Compile-time LIBDIR, or generated 227 227 … … 314 314 MythContextPrivate::MythContextPrivate(MythContext *lparent) 315 315 : parent(lparent), 316 316 m_settings(new Settings()), m_qtThemeSettings(new Settings()), 317 m_installprefix( PREFIX), m_installlibdir(LIBDIR),317 m_installprefix(RUNPREFIX), m_installlibdir(LIBDIR), 318 318 m_gui(false), m_backend(false), m_themeloaded(false), 319 319 m_menuthemepathname(QString::null), m_themepathname(QString::null), 320 320 m_backgroundimage(NULL), … … 368 368 m_installlibdir = prefixDir.canonicalPath(); 369 369 } 370 370 } 371 else if (prefixDir.path().contains(".app/Contents/MacOS"))372 {373 prefixDir.cd("../Resources");374 if (QDir(prefixDir.canonicalPath() + "/bin").exists() ||375 QDir(prefixDir.canonicalPath() + "/share").exists())376 m_installprefix = prefixDir.canonicalPath();377 if (QDir(prefixDir.canonicalPath() + "/lib").exists())378 m_installlibdir = prefixDir.canonicalPath() + "/lib";379 }380 371 381 372 VERBOSE(VB_IMPORTANT, QString("Using runtime prefix = %1, libdir = %2") 382 373 .arg(m_installprefix).arg(m_installlibdir)); -
mythdbcon.cpp
134 134 // mdz, 2003/08/11 135 135 136 136 137 if (m_db.hostName().isEmpty()) // Bootstrapping without a database? 137 #if 0 138 if (m_db.hostName().isEmpty() // Bootstrapping without a database? 139 || m_db.isOpenError()) // Database invalid? 140 #endif 141 if (m_db.hostName().isEmpty()) // Bootstrapping without a database? 138 142 { // Pretend we kicked, to reduce errors 139 143 m_lastDBKick = QDateTime::currentDateTime(); 140 144 return true; … … 326 330 qi.db = db; 327 331 qi.qsqldb = db->db(); 328 332 329 db->KickDatabase();333 //db->KickDatabase(); 330 334 } 331 335 } 332 336 else … … 351 355 qi.db = db; 352 356 qi.qsqldb = db->db(); 353 357 354 db->KickDatabase();358 //db->KickDatabase(); 355 359 } 356 360 } 357 361 else … … 376 380 qi.db = db; 377 381 qi.qsqldb = db->db(); 378 382 379 db->KickDatabase();383 //db->KickDatabase(); 380 384 } 381 385 } 382 386 else -
libmyth.pro
1 1 include ( ../../config.mak ) 2 2 include ( ../../settings.pro ) 3 3 4 4 TEMPLATE = lib 5 5 TARGET = myth-$$LIBVERSION 6 CONFIG += thread dll 6 CONFIG += thread dll debug 7 7 target.path = $${LIBDIR} 8 8 INSTALLS = target 9 9 … … 56 56 57 57 LIBS += -L../libmythsamplerate -lmythsamplerate-$${LIBVERSION} 58 58 LIBS += -L../libmythsoundtouch -lmythsoundtouch-$${LIBVERSION} 59 LIBS += -L../libmythui -lmythui-$${LIBVERSION}60 LIBS += -L../libmythupnp -lmythupnp-$${LIBVERSION}59 !combine-libmyth: LIBS += -L../libmythui -lmythui-$${LIBVERSION} 60 !combine-libmyth: LIBS += -L../libmythupnp -lmythupnp-$${LIBVERSION} 61 61 LIBS += -L../libmythfreesurround -lmythfreesurround-$${LIBVERSION} 62 62 LIBS += -L../libavcodec -lmythavcodec-$${LIBVERSION} 63 63 LIBS += -L../libavutil -lmythavutil-$${LIBVERSION} … … 113 113 114 114 # For easier debugging: 115 115 target.path = $${PREFIX}/bin 116 116 117 !combine-libmyth { 117 118 LIBS -= -lmythui-$$LIBVERSION -lmythupnp-$$LIBVERSION 118 119 LIBS += -L. -lmythui-bootstrap -lmythupnp-bootstrap 119 120 POST_TARGETDEPS += libmythui-bootstrap.a libmythupnp-bootstrap.a … … 128 129 --dllname libmythupnp-$${LIBVERSION}.dll \ 129 130 --output-lib $$implib2.target -k 130 131 QMAKE_EXTRA_WIN_TARGETS += implib implib2 132 } 131 133 } 132 134 133 135 macx { … … 248 250 249 251 #The following line was inserted by qt3to4 250 252 QT += network xml opengl sql qt3support 253 254 255 combine-libmyth { 256 # ../libmythupnp/libmythupnp.pro 257 258 include (../../version.pro) 259 260 setting.path = $${PREFIX}/share/mythtv/ 261 setting.files += CDS_scpd.xml CMGR_scpd.xml MSRR_scpd.xml MXML_scpd.xml 262 263 INSTALLS += setting 264 265 HEADERS3 += httprequest.h upnp.h ssdp.h taskqueue.h 266 HEADERS3 += upnpdevice.h upnptasknotify.h upnptasksearch.h threadpool.h upnputil.h 267 HEADERS3 += httpserver.h upnpcds.h upnpcdsobjects.h bufferedsocketdevice.h upnpmsrr.h 268 HEADERS3 += eventing.h upnpcmgr.h upnptaskevent.h upnptaskcache.h ssdpcache.h 269 HEADERS3 += upnpimpl.h multicast.h broadcast.h configuration.h 270 HEADERS3 += soapclient.h mythxmlclient.h 271 272 SOURCES3 += httprequest.cpp upnp.cpp ssdp.cpp taskqueue.cpp upnputil.cpp 273 SOURCES3 += upnpdevice.cpp upnptasknotify.cpp upnptasksearch.cpp threadpool.cpp 274 SOURCES3 += httpserver.cpp upnpcds.cpp upnpcdsobjects.cpp bufferedsocketdevice.cpp 275 SOURCES3 += eventing.cpp upnpcmgr.cpp upnpmsrr.cpp upnptaskevent.cpp ssdpcache.cpp 276 SOURCES3 += configuration.cpp soapclient.cpp mythxmlclient.cpp 277 278 LIBS += $$EXTRA_LIBS 279 280 mingw { 281 HEADERS3 += darwin-sendfile.h 282 SOURCES3 += darwin-sendfile.c 283 284 LIBS += -lws2_32 285 } 286 287 inc3.path = $${PREFIX}/include/mythtv/upnp/ 288 289 inc3.files = httprequest.h upnp.h ssdp.h taskqueue.h bufferedsocketdevice.h 290 inc3.files += upnpdevice.h upnptasknotify.h upnptasksearch.h threadpool.h upnputil.h 291 inc3.files += httpserver.h httpstatus.h upnpcds.h upnpcdsobjects.h 292 inc3.files += eventing.h upnpcmgr.h upnptaskevent.h upnptaskcache.h ssdpcache.h 293 inc3.files += upnpimpl.h multicast.h broadcast.h configuration.h 294 inc3.files += soapclient.h mythxmlclient.h 295 296 INSTALLS += inc3 297 298 cygwin:HEADERS3 += darwin-sendfile.h 299 cygwin:SOURCES3 += darwin-sendfile.c 300 301 freebsd:HEADERS3 += darwin-sendfile.h 302 freebsd:SOURCES3 += darwin-sendfile.c 303 304 macx { 305 HEADERS3 += darwin-sendfile.h 306 SOURCES3 += darwin-sendfile.c 307 308 QMAKE_LFLAGS_SHLIB += -flat_namespace 309 } 310 311 312 313 314 # ../libmythui/libmythui.pro 315 316 HEADERS4 = mythmainwindow.h mythpainter.h mythimage.h myththemebase.h 317 HEADERS4 += mythpainter_qt.h mythmainwindow_internal.h 318 HEADERS4 += mythscreenstack.h mythscreentype.h mythuitype.h mythuiimage.h 319 HEADERS4 += mythuitext.h mythuistatetype.h mythgesture.h xmlparsebase.h 320 HEADERS4 += mythuibutton.h mythlistbutton.h myththemedmenu.h mythdialogbox.h 321 HEADERS4 += mythuiclock.h mythuitextedit.h mythprogressdialog.h mythuispinbox.h 322 323 SOURCES4 = mythmainwindow.cpp mythpainter.cpp mythimage.cpp myththemebase.cpp 324 SOURCES4 += mythpainter_qt.cpp xmlparsebase.cpp 325 SOURCES4 += mythscreenstack.cpp mythscreentype.cpp mythgesture.cpp 326 SOURCES4 += mythuitype.cpp mythuiimage.cpp mythuitext.cpp 327 SOURCES4 += mythuistatetype.cpp mythlistbutton.cpp mythfontproperties.cpp 328 SOURCES4 += mythuibutton.cpp myththemedmenu.cpp mythdialogbox.cpp 329 SOURCES4 += mythuiclock.cpp mythuitextedit.cpp mythprogressdialog.cpp 330 SOURCES4 += mythuispinbox.cpp 331 332 inc4.path = $${PREFIX}/include/mythtv/libmythui/ 333 334 inc4.files = mythmainwindow.h mythpainter.h mythimage.h myththemebase.h 335 inc4.files += mythpainter_qt.h mythuistatetype.h 336 inc4.files += mythscreenstack.h mythscreentype.h mythuitype.h mythuiimage.h 337 inc4.files += mythuitext.h mythuibutton.h mythlistbutton.h xmlparsebase.h 338 inc4.files += myththemedmenu.h mythdialogbox.h mythfontproperties.h 339 inc4.files += mythuiclock.h mythgesture.h mythuitextedit.h mythprogressdialog.h 340 inc4.files += mythuispinbox.h 341 342 INSTALLS += inc4 343 344 using_x11:using_opengl { 345 DEFINES += USE_OPENGL_PAINTER 346 SOURCES4 += mythpainter_ogl.cpp 347 HEADERS4 += mythpainter_ogl.h 348 inc4.files += mythpainter_ogl.h 349 LIBS += $$EXTRA_LIBS 350 } 351 352 macx { 353 QMAKE_CXXFLAGS += -F/System/Library/Frameworks/Carbon.framework/Frameworks 354 LIBS += -framework Carbon -framework OpenGL 355 356 QMAKE_LFLAGS_SHLIB += -flat_namespace 357 } 358 359 using_joystick_menu { 360 DEFINES += USE_JOYSTICK_MENU 361 } 362 363 using_lirc { 364 DEFINES += USE_LIRC 365 } 366 367 cygwin:DEFINES += _WIN32 368 369 mingw { 370 using_opengl { 371 LIBS += -lopengl32 372 DEFINES += USE_OPENGL_PAINTER 373 SOURCES4 += mythpainter_ogl.cpp 374 HEADERS4 += mythpainter_ogl.h 375 inc4.files += mythpainter_ogl.h 376 } 377 } 378 379 HEADERS += $$join(HEADERS3, ' ', '../libmythupnp/') 380 HEADERS += $$join(HEADERS4, ' ', '../libmythui/') 381 SOURCES += $$join(SOURCES3, ' ', '../libmythupnp/') 382 SOURCES += $$join(SOURCES4, ' ', '../libmythui/') 383 }