Ticket #3470: cygwin-16may07.diff
File cygwin-16may07.diff, 33.0 KB (added by , 17 years ago) |
---|
-
libs/libmythtv/eit.cpp
142 142 " manualid = 0 AND " 143 143 " ( ( starttime >= :STIME1 AND starttime < :ETIME1 ) OR " 144 144 " ( endtime > :STIME2 AND endtime <= :ETIME2 ) )"); 145 query.bindValue(":CHANID", chanid);145 query.bindValue(":CHANID", (uint)chanid); 146 146 query.bindValue(":STIME1", starttime); 147 147 query.bindValue(":ETIME1", endtime); 148 148 query.bindValue(":STIME2", starttime); … … 355 355 "WHERE chanid = :CHANID AND " 356 356 " starttime = :OLDSTART "); 357 357 358 query.bindValue(":CHANID", chanid);358 query.bindValue(":CHANID", (uint)chanid); 359 359 query.bindValue(":OLDSTART", match.starttime); 360 360 query.bindValue(":TITLE", ltitle.utf8()); 361 361 query.bindValue(":SUBTITLE", lsubtitle.utf8()); … … 515 515 516 516 QString cattype = myth_category_type_to_string(category_type); 517 517 518 query.bindValue(":CHANID", chanid);518 query.bindValue(":CHANID", (uint)chanid); 519 519 query.bindValue(":TITLE", title.utf8()); 520 520 query.bindValue(":SUBTITLE", subtitle.utf8()); 521 521 query.bindValue(":DESCRIPTION", description.utf8()); … … 561 561 "FROM channel " 562 562 "WHERE chanid = :CHANID"); 563 563 564 query.bindValue(":CHANID", chanid);564 query.bindValue(":CHANID", (uint)chanid); 565 565 566 566 if (!query.exec()) 567 567 { -
libs/libmythtv/NuppelVideoPlayer.cpp
73 73 #undef GetFileSize 74 74 #ifdef CONFIG_CYGWIN 75 75 #undef DialogBox 76 #undef GetCurrentTime 76 77 #endif 77 78 #endif 78 79 … … 5638 5639 if (ringBuffer->isDVD()) 5639 5640 { 5640 5641 if (!ringBuffer->DVD()->IsInMenu()) 5641 #ifndef CONFIG_CYGWIN5642 5642 secsplayed = ringBuffer->DVD()->GetCurrentTime(); 5643 #else5644 // DVD playing non-functional under windows for now5645 secsplayed = 0;5646 #endif5647 5643 } 5648 5644 else 5649 5645 secsplayed = ((float)framesPlayed / video_frame_rate); -
libs/libmythtv/NuppelVideoRecorder.cpp
735 735 */ 736 736 bool NuppelVideoRecorder::MJPEGInit(void) 737 737 { 738 #if defined(CONFIG_CYGWIN) 739 VERBOSE(VB_IMPORTANT, LOC_ERR + "Not supported under Cygwin yet" + ENO); 740 #else 738 741 bool we_opened_fd = false; 739 742 int init_fd = fd; 740 743 if (init_fd < 0) … … 777 780 } 778 781 779 782 VERBOSE(VB_IMPORTANT, LOC_ERR + "MJPEG not supported by device"); 783 #endif 780 784 return false; 781 785 } 782 786 … … 895 899 896 900 bool NuppelVideoRecorder::Open(void) 897 901 { 902 #if defined(CONFIG_CYGWIN) 903 VERBOSE(VB_IMPORTANT, LOC_ERR + "Not supported under Cygwin yet" + ENO); 904 errored = true; 905 return false; 906 #else 898 907 if (channelfd>0) 899 908 return true; 900 909 … … 970 979 971 980 channelfd = fd; 972 981 return true; 982 #endif 973 983 } 974 984 975 985 void NuppelVideoRecorder::StartRecording(void) 976 986 { 987 #if defined(CONFIG_CYGWIN) 988 VERBOSE(VB_IMPORTANT, LOC_ERR + "Not supported under Cygwin yet" + ENO); 989 #else 977 990 if (lzo_init() != LZO_E_OK) 978 991 { 979 992 VERBOSE(VB_IMPORTANT, LOC_ERR + "lzo_init() failed, exiting"); … … 1214 1227 1215 1228 recording = false; 1216 1229 close(fd); 1230 #endif 1217 1231 } 1218 1232 1219 1233 void NuppelVideoRecorder::DoV4L2(void) 1220 1234 { 1235 #if defined(CONFIG_CYGWIN) 1236 VERBOSE(VB_IMPORTANT, LOC_ERR + "Not supported under Cygwin yet" + ENO); 1237 #else 1221 1238 struct v4l2_format vfmt; 1222 1239 struct v4l2_buffer vbuf; 1223 1240 struct v4l2_requestbuffers vrbuf; … … 1542 1559 recording = false; 1543 1560 close(fd); 1544 1561 close(channelfd); 1562 #endif 1545 1563 } 1546 1564 1547 1565 void NuppelVideoRecorder::DoMJPEG(void) 1548 1566 { 1567 #if defined(CONFIG_CYGWIN) 1568 VERBOSE(VB_IMPORTANT, LOC_ERR + "Not supported under Cygwin yet" + ENO); 1569 #else 1549 1570 struct mjpeg_params bparm; 1550 1571 1551 1572 if (ioctl(fd, MJPIOC_G_PARAMS, &bparm) < 0) … … 1673 1694 1674 1695 recording = false; 1675 1696 close(fd); 1697 #endif 1676 1698 } 1677 1699 1678 1700 int NuppelVideoRecorder::SpawnChildren(void) … … 2590 2612 2591 2613 void NuppelVideoRecorder::doVbiThread(void) 2592 2614 { 2615 #if defined(CONFIG_CYGWIN) 2616 VERBOSE(VB_IMPORTANT, LOC_ERR + "Not supported under Cygwin yet" + ENO); 2617 #else 2593 2618 //VERBOSE(VB_IMPORTANT, LOC + "vbi begin"); 2594 2619 struct VBIData vbicallbackdata; 2595 2620 struct vbi *pal_tt = NULL; … … 2730 2755 cc_close(ntsc_cc); 2731 2756 2732 2757 //VERBOSE(VB_RECORD, LOC + "vbi end"); 2758 #endif 2733 2759 } 2734 2760 2735 2761 -
libs/libmythtv/videoout_dx.h
1 1 #ifndef VIDEOOUT_DX_H_ 2 2 #define VIDEOOUT_DX_H_ 3 3 4 /* ACK! <windows.h> and <ddraw.h> should only be in cpp's compiled in4 /* HACK! <windows.h> and <ddraw.h> should only be in cpp's compiled in 5 5 * windows only. Some of the variables in VideoOutputDX need to be 6 6 * moved to a private class before removing these includes though. 7 7 */ -
libs/libmythtv/libmythtv.pro
27 27 DEPENDPATH += ../libmythlivemedia/UsageEnvironment/include 28 28 DEPENDPATH += ../libmythlivemedia/UsageEnvironment 29 29 30 cygwin:LIBS += -L./ -lmythui-$${LIBVERSION} -lGdi32 -L../libmythfreemheg -lmythfreemheg-$${LIBVERSION} 30 31 LIBS += -L../libmyth -L../libavutil -L../libavcodec -L../libavformat 31 32 LIBS += -L../libmythmpeg2 -L../libmythdvdnav 32 33 LIBS += -lmyth-$${LIBVERSION} -lmythavutil-$${LIBVERSION} … … 42 43 } 43 44 44 45 cygwin { 45 QMAKE_EXTENSION_SHLIB=$${QMAKE_EXTENSION_SHLIB}$${QMAKE_EXTENSION_CYGWIN} 46 target.path = $${PREFIX}/bin 47 implib.target = libmythui-$${LIBVERSION}$$QMAKE_EXTENSION_CYGWIN 48 implib.commands = test -e libmythui-$${LIBVERSION}$$QMAKE_EXTENSION_CYGWIN || dlltool --input-def ../libmythui/libmythui.def --dllname cygmythui-$${LIBVERSION}-0.$$QMAKE_EXTENSION_SHLIB --output-lib libmythui-$${LIBVERSION}$$QMAKE_EXTENSION_CYGWIN -k 49 QMAKE_EXTRA_UNIX_TARGETS += implib 50 POST_TARGETDEPS += libmythui-$${LIBVERSION}$$QMAKE_EXTENSION_CYGWIN 51 TARGETDEPS += ../libmyth/libmyth-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}$${QMAKE_EXTENSION_CYGWIN} 52 TARGETDEPS += ../libavutil/libmythavutil-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}$${QMAKE_EXTENSION_CYGWIN} 53 TARGETDEPS += ../libavcodec/libmythavcodec-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}$${QMAKE_EXTENSION_CYGWIN} 54 TARGETDEPS += ../libavformat/libmythavformat-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}$${QMAKE_EXTENSION_CYGWIN} 55 TARGETDEPS += ../libmythfreemheg/libmythfreemheg-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}$${QMAKE_EXTENSION_CYGWIN} 56 } else { 57 TARGETDEPS += ../libmyth/libmyth-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} 58 TARGETDEPS += ../libavutil/libmythavutil-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} 59 TARGETDEPS += ../libavcodec/libmythavcodec-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} 60 TARGETDEPS += ../libavformat/libmythavformat-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} 46 61 } 47 48 TARGETDEPS += ../libmyth/libmyth-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}49 TARGETDEPS += ../libavutil/libmythavutil-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}50 TARGETDEPS += ../libavcodec/libmythavcodec-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}51 TARGETDEPS += ../libavformat/libmythavformat-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}52 62 TARGETDEPS += ../libmythmpeg2/libmythmpeg2-$${LIBVERSION}.$${QMAKE_EXTENSION_LIB} 53 63 TARGETDEPS += ../libmythdvdnav/libmythdvdnav-$${LIBVERSION}.$${QMAKE_EXTENSION_LIB} 54 64 55 56 65 DEFINES += _LARGEFILE_SOURCE 57 66 QMAKE_CXXFLAGS_RELEASE += $${FREETYPE_CFLAGS} 58 67 QMAKE_CXXFLAGS_DEBUG += $${FREETYPE_CFLAGS} … … 94 103 QMAKE_LFLAGS_SHLIB += -seg1addr 0xC9000000 95 104 } 96 105 97 cygwin:QMAKE_LFLAGS_SHLIB += -Wl,--noinhibit-exec98 106 cygwin:DEFINES += _WIN32 99 107 100 108 # Enable Linux Open Sound System support -
libs/libmythtv/videodev_myth.h
11 11 typedef uint8_t __u8; 12 12 typedef uint32_t __u64; 13 13 typedef int32_t __s64; // HACK. Non 64bit FreeBSD kernels require this for ioctls 14 #elif defined(CONFIG_CYGWIN) 15 #include <sys/types.h> 16 typedef uint32_t __u32; 17 typedef uint16_t __u16; 18 typedef int32_t __s32; 19 typedef uint8_t __u8; 20 typedef uint64_t __u64; 21 typedef int64_t __s64; 14 22 #else 15 23 #include <linux/types.h> 16 24 #include <linux/version.h> -
libs/libmythtv/videoout_dx.cpp
18 18 #include "../libavcodec/avcodec.h" 19 19 } 20 20 21 #define PRINT_FOURCC(c) ((char) (c & 0xFF)) << ((char) ((c >> 8) & 0xFF)) << ((char) ((c >> 16) & 0xFF)) << ((char) ((c >> 24) & 0xFF)) 22 21 23 const int kNumBuffers = 31; 22 24 const int kNeedFreeFrames = 1; 23 25 const int kPrebufferFramesNormal = 12; … … 159 161 VideoOutput::Init(width, height, aspect, winid, 160 162 winx, winy, winw, winh, embedid); 161 163 162 wnd = winid;164 wnd = (HWND)winid; 163 165 164 166 XJ_width = width; 165 167 XJ_height = height; … … 792 794 793 795 /* Create the actual brush */ 794 796 SetClassLong(wnd, GCL_HBRBACKGROUND, 795 (LONG)CreateSolidBrush( rgb_colorkey));797 (LONG)CreateSolidBrush((COLORREF)rgb_colorkey)); 796 798 InvalidateRect(wnd, NULL, TRUE); 797 799 //DirectXUpdateRects(true); 798 800 … … 1349 1351 int diff_x = display_visible_rect.left(); 1350 1352 diff_x -= display_video_rect.left(); 1351 1353 int diff_w = display_video_rect.width(); 1352 diff_x -= display_visible_rect.width() 1354 diff_x -= display_visible_rect.width(); 1353 1355 1354 1356 rect_src.left += (XJ_width * diff_x) / display_video_rect.width(); 1355 1357 rect_src.right -= ((XJ_width * (diff_w - diff_x)) / … … 1367 1369 rect_dest.top = display_visible_rect.top(); 1368 1370 rect_dest.bottom = display_visible_rect.bottom(); 1369 1371 1372 int diff_x = display_visible_rect.left(); 1373 diff_x -= display_video_rect.left(); 1370 1374 int diff_y = display_visible_rect.top(); 1371 1375 diff_y -= display_video_rect.top(); 1372 1376 int diff_h = display_video_rect.height(); -
libs/libavformat/libavformat.pro
13 13 14 14 LIBS += $$LOCAL_LIBDIR_X11 15 15 16 cygwin :LIBS += -lz 16 cygwin { 17 LIBS += -lz 18 target.path = $${PREFIX}/bin 19 } 17 20 18 21 QMAKE_CLEAN += $(TARGET) $(TARGETA) $(TARGETD) $(TARGET0) $(TARGET1) $(TARGET2) 19 22 -
libs/libmythui/mythmainwindow.cpp
520 520 fonTweak = gContext->GetNumSetting("QtFonTweak", 0); 521 521 522 522 bool hideCursor = gContext->GetNumSetting("HideMouseCursor", 1); 523 #ifdef QWS 524 #if QT_VERSION >= 0x030300 523 #if defined(QWS) && QT_VERSION >= 0x030300 && !defined(CONFIG_CYGWIN) 525 524 QWSServer::setCursorVisible(!hideCursor); 526 525 #endif 527 #endif528 526 529 527 if (gContext->GetNumSetting("RunFrontendInWindow", 0)) 530 528 d->does_fill_screen = false; … … 537 535 flags = Qt::WStyle_Customize | 538 536 Qt::WStyle_NoBorder; 539 537 else 538 #if defined(CONFIG_CYGWIN) 539 flags = Qt::WStyle_Customize | Qt::WStyle_DialogBorder | Qt::WStyle_Title | Qt::WStyle_SysMenu; 540 #else 540 541 flags = Qt::WStyle_Customize | Qt::WStyle_NormalBorder; 542 #endif 541 543 542 544 // Workarounds for Qt/Mac bugs 543 545 #ifdef Q_WS_MACX … … 574 576 // Set cursor call must come after Show() to work on some systems. 575 577 setCursor((hideCursor) ? (Qt::BlankCursor) : (Qt::ArrowCursor)); 576 578 579 #if defined(CONFIG_CYGWIN) 580 if (d->does_fill_screen) 581 #endif 577 582 move(d->xbase, d->ybase); 578 583 } 579 584 … … 995 1000 int mediaType, 996 1001 const QString &extensions) 997 1002 { 998 #ifndef _WIN321003 #ifndef CONFIG_CYGWIN 999 1004 if (d->mediaHandlerMap.count(destination) == 0) 1000 1005 { 1001 1006 MHData mhd = { callback, mediaType, destination, description }; … … 1017 1022 VERBOSE(VB_GENERAL, QString("%1 is already registered as a media " 1018 1023 "handler.").arg(destination)); 1019 1024 } 1020 #endif // ! _WIN321025 #endif // !CONFIG_CYGWIN 1021 1026 } 1022 1027 1023 1028 void MythMainWindow::RegisterMediaPlugin(const QString &name, -
libs/libmythui/mythpainter_ogl.cpp
15 15 #include <OpenGL/glext.h> 16 16 #endif 17 17 18 #if def _WIN3218 #if defined(CONFIG_CYGWIN) 19 19 #include <GL/glext.h> 20 20 #endif 21 21 -
libs/libmythui/libmythui.def
1 LIBRARY 2 EXPORTS 3 ; GetMythMainWindow() 4 _Z17GetMythMainWindowv 5 ; DestroyMythMainWindow() 6 _Z21DestroyMythMainWindowv 7 ; MythMainWindow::NormalizeFontSize(int) 8 _ZN14MythMainWindow17NormalizeFontSizeEi 9 ; MythMainWindow::TranslateKeyPress(QString const&, QKeyEvent*, QStringList&, bool) 10 _ZN14MythMainWindow17TranslateKeyPressERK7QStringP9QKeyEventR11QStringListb 11 ; MythMainWindow::detach(QWidget*) 12 _ZN14MythMainWindow6detachEP7QWidget 13 ; MythMainWindow::attach(QWidget*) 14 _ZN14MythMainWindow6attachEP7QWidget 15 ; MythMainWindow::RegisterKey(QString const&, QString const&, QString const&, QString const&) 16 _ZN14MythMainWindow11RegisterKeyERK7QStringS2_S2_S2_ @ 737 17 ; MythMainWindow::GetKey(QString const&, QString const&) const 18 _ZNK14MythMainWindow6GetKeyERK7QStringS2_ 19 ; MythMainWindow::currentWidget() 20 _ZN14MythMainWindow13currentWidgetEv -
libs/libmythui/libmythui.pro
Property changes on: libs/libmythui/libmythui.def ___________________________________________________________________ Name: svn:executable + *
71 71 DEFINES += USE_LIRC 72 72 } 73 73 74 cygwin:DEFINES += _WIN32 74 cygwin { 75 LIBS += $$LOCAL_LIBDIR_X11 76 target.path = $${PREFIX}/bin 77 } 78 No newline at end of file -
libs/libmyth/mythcontext.cpp
37 37 38 38 // These defines provide portability for different 39 39 // plugin file names. 40 #if def CONFIG_DARWIN40 #if defined(CONFIG_DARWIN) 41 41 const QString kPluginLibPrefix = "lib"; 42 42 const QString kPluginLibSuffix = ".dylib"; 43 #elif defined(CONFIG_CYGWIN) 44 const QString kPluginLibPrefix = "lib"; 45 const QString kPluginLibSuffix = ".dll"; 43 46 #else 44 47 const QString kPluginLibPrefix = "lib"; 45 48 const QString kPluginLibSuffix = ".so"; -
libs/libmyth/qmdcodec.cpp
473 473 data[count] == '\t' || data[count] == ' ') ) 474 474 count++; 475 475 476 #if def _WIN32476 #if defined(CONFIG_CYGWIN) 477 477 if ( strnicmp(data+count, "begin", 5) == 0 ) 478 478 #else 479 479 if ( strncasecmp(data+count, "begin", 5) == 0 ) -
libs/libmyth/screensaver.cpp
3 3 #include "screensaver.h" 4 4 #include "screensaver-null.h" 5 5 6 #if def _WIN326 #if defined(CONFIG_CYGWIN) 7 7 #undef Q_WS_X11 /* Even if we have an X server in WIN32, don't use X11... */ 8 8 #endif // _WIN32 9 9 -
libs/libmyth/audiooutput.cpp
8 8 #include "audiooutput.h" 9 9 10 10 /* Required to define BOOL first with friendly _WINDEF_H */ 11 #if def _WIN3211 #if defined(CONFIG_CYGWIN) 12 12 #include <windows.h> 13 13 #endif 14 14 -
libs/libmyth/util-x11.cpp
6 6 #include "config.h" // for CONFIG_DARWIN 7 7 #include "mythcontext.h" 8 8 9 #if defined(CONFIG_CYGWIN) 10 #undef Q_WS_X11 /* Even if we have an X server in WIN32, don't use X11... */ 11 #endif // CONFIG_CYGWIN 12 9 13 QMutex x11_lock; 10 14 11 15 #ifdef Q_WS_X11 -
libs/libmyth/libmyth.pro
73 73 } 74 74 75 75 cygwin { 76 QMAKE_LFLAGS_SHLIB += -Wl,--noinhibit-exec77 76 DEFINES += _WIN32 78 #HEADERS += mediamonitor-windows.h 79 #SOURCES += mediamonitor-windows.cpp 77 HEADERS += mediamonitor-windows.h mythhdd.h mythcdrom.h 78 SOURCES += mediamonitor-windows.cpp mythhdd.cpp mythcdrom.cpp 79 LIBS += $$LOCAL_LIBDIR_X11 80 target.path = $${PREFIX}/bin 81 LIBS += -L./ -lmythui-$${LIBVERSION} 82 implib.target = libmythui-$${LIBVERSION}$$QMAKE_EXTENSION_CYGWIN 83 implib.commands = test -e libmythui-$${LIBVERSION}$$QMAKE_EXTENSION_CYGWIN || dlltool --input-def ../libmythui/libmythui.def --dllname cygmythui-$${LIBVERSION}-0.$$QMAKE_EXTENSION_SHLIB --output-lib libmythui-$${LIBVERSION}$$QMAKE_EXTENSION_CYGWIN -k 84 QMAKE_EXTRA_UNIX_TARGETS += implib 85 POST_TARGETDEPS += libmythui-$${LIBVERSION}$$QMAKE_EXTENSION_CYGWIN 80 86 } 81 87 82 88 macx { -
libs/libmyth/mediamonitor-windows.h
4 4 class MediaMonitorWindows : public MediaMonitor 5 5 { 6 6 public: 7 MediaMonitorWindows(QObject* par, unsigned long interval, bool allowEject) 8 : MediaMonitor(par, interval, allowEject) {}; 7 MediaMonitorWindows(QObject* par, unsigned long interval, bool allowEject); 9 8 10 9 QStringList GetCDROMBlockDevices(void); 10 virtual bool AddDevice(MythMediaDevice* pDevice); 11 11 }; 12 12 #endif // MYTH_MEDIA_MONITOR_WINDOWS_H -
libs/libmyth/mediamonitor-windows.cpp
5 5 6 6 #include "mythmediamonitor.h" 7 7 #include "mediamonitor-windows.h" 8 #include "mythcontext.h" 8 9 #include "mythcdrom.h" 9 10 #include "mythhdd.h" 11 #define _WIN32_WINNT 0x0500 12 #include <windows.h> 10 13 11 12 14 /** 13 15 * \class MediaMonitorWindows 14 16 * … … 20 22 bool allowEject) 21 23 : MediaMonitor(par, interval, allowEject) 22 24 { 23 for (each device) 24 if (device.isRemovable()) 25 { 26 MythMediaDevice *media; 27 28 if (device.isCDorDVD()) 29 media = MythCDROM::get(this, device.letter(), 30 false, AllowEject); 31 else 32 media = MythHDD::Get(this, device.letter(), 33 false, allowEject); 25 char strDrives[128]; 26 if (::GetLogicalDriveStrings(sizeof(strDrives), strDrives)) { 27 for (char* driveName = strDrives; *driveName; driveName += strlen(driveName) + 1) { 28 UINT type = ::GetDriveType(driveName); 29 if (type == DRIVE_REMOVABLE || type == DRIVE_CDROM) 30 { 31 MythMediaDevice *media; 32 33 if (type == DRIVE_CDROM) 34 media = MythCDROM::get(this, driveName, false, allowEject); 35 else 36 media = MythHDD::Get(this, driveName, false, allowEject); 34 37 35 36 37 38 39 40 38 if (!media) 39 { 40 VERBOSE(VB_IMPORTANT, 41 "Error. Couldn't create MythMediaDevice."); 42 return; 43 } 41 44 42 // We store the volume name to improve 43 // user activities like ChooseAndEjectMedia(). 44 media->setVolumeID(device.volName()); 45 // We store the volume name to improve 46 // user activities like ChooseAndEjectMedia(). 47 char volumeName[256]; 48 if (GetVolumeNameForVolumeMountPoint(driveName, volumeName, sizeof(volumeName))) { 49 media->setVolumeID(volumeName); 50 } else { 51 media->setVolumeID(driveName); 52 } 45 53 46 AddDevice(media); 47 } 54 AddDevice(media); 55 } 56 } 57 } 48 58 } 49 59 50 60 … … 52 62 { 53 63 QStringList list; 54 64 65 char strDrives[128]; 66 if (::GetLogicalDriveStrings(sizeof(strDrives), strDrives)) { 67 for (char* driveName = strDrives; *driveName; driveName += strlen(driveName) + 1) { 68 if (::GetDriveType(driveName) == DRIVE_CDROM) 69 list.append(driveName); 70 } 71 } 55 72 56 for (each device)57 if (device.isCDorDVD())58 list.append(device.letter());59 60 73 return list; 61 74 } 75 76 // Given a media deivce add it to our collection. 77 bool MediaMonitorWindows::AddDevice(MythMediaDevice* pDevice) 78 { 79 if ( ! pDevice ) 80 { 81 VERBOSE(VB_IMPORTANT, "Error - MediaMonitorUnix::AddDevice(null)"); 82 return false; 83 } 84 85 // 86 // Check if this is a duplicate of a device we have already added 87 // 88 QValueList<MythMediaDevice*>::const_iterator itr = m_Devices.begin(); 89 for (; itr != m_Devices.end(); ++itr) 90 { 91 if ((*itr)->getDevicePath() == pDevice->getDevicePath()) 92 { 93 VERBOSE(VB_MEDIA, "MediamonitorWindows::AddDevice() -- " + 94 QString("Not adding '%1', it appears to be a duplicate.") 95 .arg(pDevice->getDevicePath())); 96 97 return false; 98 } 99 } 100 101 pDevice->setDeviceModel(pDevice->getDevicePath()); 102 103 QMutexLocker locker(&m_DevicesLock); 104 connect(pDevice, SIGNAL(statusChanged(MediaStatus, MythMediaDevice*)), 105 this, SLOT(mediaStatusChanged(MediaStatus, MythMediaDevice*))); 106 m_Devices.push_back( pDevice ); 107 m_UseCount[pDevice] = 0; 108 109 return true; 110 } -
libs/libs.pro
8 8 # Directories 9 9 SUBDIRS += libavutil libavcodec libavformat libmythsamplerate 10 10 SUBDIRS += libmythsoundtouch libmythmpeg2 libmythdvdnav 11 SUBDIRS += libmyth libmythtv libmythui libmythfreemheg11 SUBDIRS += libmythfreemheg libmyth libmythtv libmythui 12 12 SUBDIRS += libmythupnp 13 13 SUBDIRS += libmythlivemedia 14 14 -
libs/libavcodec/libavcodec.pro
23 23 } 24 24 } 25 25 26 cygwin:LIBS += -lz 26 cygwin { 27 LIBS += -lz 28 target.path = $${PREFIX}/bin 29 } 27 30 28 31 QMAKE_CFLAGS_DEBUG += -O 29 32 -
libs/libavutil/libavutil.pro
20 20 } 21 21 } 22 22 23 cygwin { 24 target.path = $${PREFIX}/bin 25 } 26 23 27 QMAKE_CFLAGS_DEBUG += -O 24 28 25 29 QMAKE_CLEAN += $(TARGET) $(TARGETA) $(TARGETD) $(TARGET0) $(TARGET1) $(TARGET2) -
libs/libmythdvdnav/dvdnav.h
369 369 dvdnav_status_t dvdnav_time_search(dvdnav_t *self, 370 370 uint64_t time, uint search_to_nearest_cell); 371 371 372 int dvdnav_time_search_within_cell(dvdnav_t *self,372 dvdnav_status_t dvdnav_time_search_within_cell(dvdnav_t *self, 373 373 int relative_time); 374 374 /* 375 375 * Stop playing current position and play the "GoUp"-program chain. -
libs/libmythfreemheg/libmythfreemheg.pro
24 24 25 25 LIBS += $$EXTRA_LIBS 26 26 27 cygwin { 28 target.path = $${PREFIX}/bin 29 } 30 No newline at end of file -
libs/libmythupnp/ssdp.cpp
52 52 53 53 // Setup SearchSocket 54 54 55 m_Sockets[ SocketIdx_Search ]->bind( INADDR_ANY, m_nSearchPort );55 m_Sockets[ SocketIdx_Search ]->bind( (uint)INADDR_ANY, m_nSearchPort ); 56 56 57 57 m_pNotifyTask = NULL; 58 58 -
libs/libmythupnp/libmythupnp.pro
49 49 } 50 50 51 51 cygwin { 52 QMAKE_EXTENSION_SHLIB=$${QMAKE_EXTENSION_SHLIB}$${QMAKE_EXTENSION_CYGWIN} 52 target.path = $${PREFIX}/bin 53 TARGETDEPS += ../libmyth/libmyth-$${LIBVERSION}.$$QMAKE_EXTENSION_SHLIB$$QMAKE_EXTENSION_CYGWIN 54 TARGETDEPS += ../libmythtv/libmythtv-$${LIBVERSION}.$$QMAKE_EXTENSION_SHLIB$$QMAKE_EXTENSION_CYGWIN 55 TARGETDEPS += ../libavcodec/libmythavcodec-$${LIBVERSION}.$$QMAKE_EXTENSION_SHLIB$$QMAKE_EXTENSION_CYGWIN 56 TARGETDEPS += ../libavformat/libmythavformat-$${LIBVERSION}.$$QMAKE_EXTENSION_SHLIB$$QMAKE_EXTENSION_CYGWIN 57 } else { 58 TARGETDEPS += ../libmyth/libmyth-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} 59 TARGETDEPS += ../libmythtv/libmythtv-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} 60 TARGETDEPS += ../libavcodec/libmythavcodec-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} 61 TARGETDEPS += ../libavformat/libmythavformat-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} 53 62 } 54 63 55 TARGETDEPS += ../libmyth/libmyth-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}56 TARGETDEPS += ../libmythtv/libmythtv-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}57 TARGETDEPS += ../libavcodec/libmythavcodec-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}58 TARGETDEPS += ../libavformat/libmythavformat-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}59 60 64 inc.path = $${PREFIX}/include/mythtv/upnp/ 61 65 62 66 inc.files = httprequest.h upnp.h ssdp.h taskqueue.h bufferedsocketdevice.h -
programs/mythuitest/mythuitest.pro
1 1 INCLUDEPATH += ../../libs/libmythui ../../libs/libmyth 2 2 3 LIBS += -L../../libs/libmyth -L../../libs/libmythui3 LIBS += -L../../libs/libmythui -L../../libs/libmyth 4 4 5 5 include ( ../../config.mak ) 6 6 include ( ../../settings.pro ) … … 17 17 isEmpty(QMAKE_EXTENSION_LIB) { 18 18 QMAKE_EXTENSION_LIB=a 19 19 } 20 cygwin { 21 QMAKE_EXTENSION_SHLIB=$$QMAKE_EXTENSION_SHLIB$$QMAKE_EXTENSION_CYGWIN 22 } 23 20 24 TARGETDEPS += ../../libs/libmythui/libmythui-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} 21 25 TARGETDEPS += ../../libs/libmyth/libmyth-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} 22 26 -
programs/programs-libs.pro
3 3 INCLUDEPATH += ../../libs/libmythupnp ../../libs/libmythui 4 4 INCLUDEPATH += ../../libs/libmythlivemedia 5 5 6 LIBS += -L../../libs/libmythui 6 7 LIBS += -L../../libs/libmyth -L../../libs/libmythtv 7 8 LIBS += -L../../libs/libavutil -L../../libs/libavcodec -L../../libs/libavformat 8 9 LIBS += -L../../libs/libmythfreemheg 9 LIBS += -L../../libs/libmythui10 10 LIBS += -L../../libs/libmythupnp 11 11 LIBS += -L../../libs/libmythlivemedia 12 12 … … 25 25 } 26 26 27 27 cygwin { 28 QMAKE_EXTENSION_SHLIB=$${QMAKE_EXTENSION_SHLIB}$${QMAKE_EXTENSION_CYGWIN} 28 QMAKE_EXTENSION_SHLIB=$$QMAKE_EXTENSION_SHLIB$${QMAKE_EXTENSION_CYGWIN} 29 LIBS += -lGdi32 29 30 } 30 31 31 32 TARGETDEPS += ../../libs/libmythui/libmythui-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} -
programs/mythfrontend/statusbox.cpp
1324 1324 // weighted average loads 1325 1325 contentLines[count].append(". " + QObject::tr("Load") + ": "); 1326 1326 1327 #if def _WIN321327 #if defined(CONFIG_CYGWIN) 1328 1328 contentLines[count].append( 1329 1329 QObject::tr("unknown") + " - getloadavg() " + QObject::tr("failed")); 1330 1330 #else // if !_WIN32 -
programs/mythtranscode/replex/replex.pro
27 27 QMAKE_EXTENSION_SHLIB=so 28 28 } 29 29 30 cygwin { 31 QMAKE_EXTENSION_SHLIB=$$QMAKE_EXTENSION_SHLIB$$QMAKE_EXTENSION_CYGWIN 32 LIBS += -L../../../libs/libavcodec -lmythavcodec-$${LIBVERSION} 33 LIBS += -L../../../libs/libavutil -lmythavutil-$$LIBVERSION 34 LIBS += $$EXTRA_LIBS 35 } 36 30 37 TARGETDEPS += ../../../libs/libavformat/libmythavformat-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} 31 38 TARGETDEPS += ../../../libs/libavcodec/libmythavcodec-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} 32 39 TARGETDEPS += ../../../libs/libavutil/libmythavutil-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} -
programs/mythbackend/mainserver.cpp
2111 2111 2112 2112 QStringList strlist; 2113 2113 2114 #if !defined(CONFIG_CYGWIN) 2114 2115 double loads[3]; 2115 2116 if (getloadavg(loads,3) == -1) 2116 2117 strlist << "getloadavg() failed"; … … 2118 2119 strlist << QString::number(loads[0]) 2119 2120 << QString::number(loads[1]) 2120 2121 << QString::number(loads[2]); 2122 #else 2123 strlist << "getloadavg() not supported"; 2124 #endif 2121 2125 2122 2126 SendResponse(pbssock, strlist); 2123 2127 } -
programs/mythbackend/httpstatus.cpp
357 357 358 358 storage.setAttribute("fsids", ids); 359 359 360 #if !defined(CONFIG_CYGWIN) 360 361 // load average --------------------- 361 362 362 363 double rgdAverages[3]; … … 367 368 load.setAttribute("avg2", rgdAverages[1]); 368 369 load.setAttribute("avg3", rgdAverages[2]); 369 370 } 370 371 #endif 371 372 372 373 //temperature ----------------- 373 374 // Try ACPI first, then lmsensor 2nd -
programs/mythbackend/backendutil.cpp
4 4 #if defined(CONFIG_DARWIN) || defined(__FreeBSD__) 5 5 #include <sys/param.h> 6 6 #include <sys/mount.h> 7 #elif __linux__ 7 #elif __linux__ || defined(CONFIG_CYGWIN) 8 8 #include <sys/vfs.h> 9 9 #endif 10 10 -
programs/mythtv-setup/mythtv-setup.pro
25 25 QMAKE_POST_LINK = ../../contrib/OSX/makebundle.sh mythtv-setup 26 26 } 27 27 } 28 29 cygwin { 30 LIBS += -L../../libs/libmyth -lmyth-$$LIBVERSION 31 } 32 No newline at end of file -
filters/postprocess/postprocess.pro
4 4 INCLUDEPATH += ../../libs/libmythtv 5 5 DEPENDPATH += ../../libs/libmythtv 6 6 7 SOURCES += filter_postprocess.c 7 SOURCES += filter_postprocess.c ../../libs/libavcodec/libpostproc/postprocess.c 8 8 9 9 # Lots of symbols like pp_free_context, pp_free_mode, pp_get_context, pp_help 10 10 # are used but not defined, which sometimes prevents linking on OS X. -
filters/filter-avcodec.pro
13 13 isEmpty(QMAKE_EXTENSION_SHLIB) { 14 14 QMAKE_EXTENSION_SHLIB=so 15 15 } 16 TARGETDEPS += ../../libs/libavutil/libmythavutil-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} 17 TARGETDEPS += ../../libs/libavcodec/libmythavcodec-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} 16 cygwin { 17 TARGETDEPS += ../../libs/libavutil/libmythavutil-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}$${QMAKE_EXTENSION_CYGWIN} 18 TARGETDEPS += ../../libs/libavcodec/libmythavcodec-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}$${QMAKE_EXTENSION_CYGWIN} 19 } else { 20 TARGETDEPS += ../../libs/libavutil/libmythavutil-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} 21 TARGETDEPS += ../../libs/libavcodec/libmythavcodec-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB} 22 }