Skip to content

Commit

Permalink
Move libmythnvctrl to external/libXNVCtrl, and update references
Browse files Browse the repository at this point in the history
Refs #11302
(cherry picked from commit ab3f8e6)
  • Loading branch information
garybuhrmaster authored and dekarl committed Feb 25, 2017
1 parent a8b2fe8 commit cdc57f4
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 11 deletions.
5 changes: 5 additions & 0 deletions mythtv/configure
Original file line number Diff line number Diff line change
Expand Up @@ -8919,6 +8919,11 @@ echo "Configuring minilzo..."
echo "Configuring libmythsoundtouch..."
(cd external/libmythsoundtouch ; \
${qmakeconf} -o Makefile)
if ! disabled x11 ; then
echo "Configuring libXNVCtrl..."
(cd external/libXNVCtrl; \
${qmakeconf} -o Makefile.lib)
fi

# generate the lists of enabled components
print_enabled_components(){
Expand Down
7 changes: 7 additions & 0 deletions mythtv/external/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ ifdef CONFIG_HDHOMERUN
SUBDIRS += libhdhomerun
endif

ifdef CONFIG_X11
SUBDIRS += libXNVCtrl
endif

SUBDIRS_ALL = $(addsuffix -all, ${SUBDIRS})
SUBDIRS_INSTALL = $(addsuffix -install, ${SUBDIRS})
SUBDIRS_UNINSTALL = $(addsuffix -uninstall, ${SUBDIRS})
Expand Down Expand Up @@ -64,3 +68,6 @@ minilzo-all minilzo-clean minilzo-distclean minilzo-install minilzo-uninstall:

libmythsoundtouch-all libmythsoundtouch-clean libmythsoundtouch-distclean libmythsoundtouch-install libmythsoundtouch-uninstall:
${MAKE} -C libmythsoundtouch ${@:libmythsoundtouch-%=%}

libXNVCtrl-all libXNVCtrl-install libXNVCtrl-uninstall libXNVCtrl-clean libXNVCtrl-distclean:
${MAKE} -C libXNVCtrl -f Makefile.lib ${@:libXNVCtrl-%=%}
1 change: 1 addition & 0 deletions mythtv/external/libXNVCtrl/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Makefile.lib
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
include ( ../../settings.pro )

TEMPLATE = lib
TARGET = mythnvctrl-$$LIBVERSION
TARGET = mythXNVCtrl-$${LIBVERSION}
CONFIG += staticlib warn_off
CONFIG -= qt

INCLUDEPATH += ../ ../../

DEFINES += HAVE_AV_CONFIG_H

QMAKE_CLEAN += $(TARGET) $(TARGETA) $(TARGETD) $(TARGET0) $(TARGET1) $(TARGET2)

# Input
HEADERS += nv_control.h NVCtrl.h NVCtrlLib.h
SOURCES += NVCtrl.c

include ( ../libs-targetfix.pro )
File renamed without changes.
5 changes: 3 additions & 2 deletions mythtv/libs/libmythui/libmythui.pro
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ using_x11 {
# Add nvidia XV-EXTENSION support
HEADERS += util-nvctrl.h
SOURCES += util-nvctrl.cpp
LIBS += -L../libmythnvctrl -lmythnvctrl-$${LIBVERSION}
POST_TARGETDEPS += ../libmythnvctrl/libmythnvctrl-$${MYTH_LIB_EXT}
INCLUDEPATH += ../../external/libXNVCtrl
LIBS += -L../../external/libXNVCtrl -lmythXNVCtrl-$${LIBVERSION}
POST_TARGETDEPS += ../../external/libXNVCtrl/libmythXNVCtrl-$${LIBVERSION}.$${QMAKE_EXTENSION_STATICLIB}
}

using_qtdbus {
Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythui/util-nvctrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

#include "mythxdisplay.h"

#include "libmythnvctrl/NVCtrl.h"
#include "libmythnvctrl/NVCtrlLib.h"
#include "NVCtrl.h"
#include "NVCtrlLib.h"

#ifdef USING_XRANDR
#include "DisplayResX.h"
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/libs.pro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ SUBDIRS += libmythservicecontracts
libmythservicecontracts.depends = libmythbase

using_mheg:SUBDIRS += libmythfreemheg
using_x11:SUBDIRS += libmythnvctrl
!contains( CONFIG_LIBMPEG2EXTERNAL, yes):SUBDIRS += libmythmpeg2

# Libraries with dependencies
Expand Down

0 comments on commit cdc57f4

Please sign in to comment.