mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
improved disabling of skininstaller
This commit is contained in:
parent
92553a8134
commit
0e93a8663f
6
Makefile
6
Makefile
@ -4,8 +4,8 @@
|
|||||||
# $Id$ Makefile 1.0 2014/07/24 louis Exp $
|
# $Id$ Makefile 1.0 2014/07/24 louis Exp $
|
||||||
|
|
||||||
# Config
|
# Config
|
||||||
CONFIG := #-DDOPROFILE # enable profiling code
|
CONFIG := #-DDOPROFILE # enable profiling code
|
||||||
CONFIG += -DUSE_SKININSTALLER # use skin installer in skindesigner setup
|
CONFIG += #-DDO_NOT_USE_SKININSTALLER # disable installer in skindesigner setup
|
||||||
|
|
||||||
# The official name of this plugin.
|
# The official name of this plugin.
|
||||||
PLUGIN = skindesigner
|
PLUGIN = skindesigner
|
||||||
@ -138,7 +138,7 @@ $(SOFILE): SUB_LIBS = libskindesignerapi/libskindesignerapi.so.$(shell pkg-confi
|
|||||||
### Implicit rules:
|
### Implicit rules:
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CXX) $(CXXFLAGS) -std=c++11 -c $(DEFINES) $(SUB_DEFINES) $(INCLUDES) -o $@ $<
|
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -std=c++11 -c $(DEFINES) $(SUB_DEFINES) $(INCLUDES) -o $@ $<
|
||||||
|
|
||||||
### Dependencies:
|
### Dependencies:
|
||||||
|
|
||||||
|
5
README
5
README
@ -68,6 +68,11 @@ pkg-config --modversion libskindesignerapi
|
|||||||
Note that skindesigner itself and all plugins which use libSkindesignerAPI have to
|
Note that skindesigner itself and all plugins which use libSkindesignerAPI have to
|
||||||
be build against the same major verison of the library to be compatible.
|
be build against the same major verison of the library to be compatible.
|
||||||
|
|
||||||
|
If you like to disable the possibility to install skins from skindesigner setup
|
||||||
|
menu, you can enable the option in the makefile or set the option
|
||||||
|
DO_NOT_USE_SKININSTALLER manually via CPP Flags:
|
||||||
|
make CPPFLAGS="-DDO_NOT_USE_SKININSTALLER"
|
||||||
|
|
||||||
After installation you have to care about the paths for the XML skins and epg images.
|
After installation you have to care about the paths for the XML skins and epg images.
|
||||||
The following paths can be set at startup:
|
The following paths can be set at startup:
|
||||||
|
|
||||||
|
8
config.c
8
config.c
@ -47,7 +47,9 @@ void cDesignerConfig::SetPathes(void) {
|
|||||||
epgImagePath = cString::sprintf("%s/epgimages/", cPlugin::CacheDirectory(PLUGIN_NAME_I18N));
|
epgImagePath = cString::sprintf("%s/epgimages/", cPlugin::CacheDirectory(PLUGIN_NAME_I18N));
|
||||||
|
|
||||||
dsyslog("skindesigner: using Skin Directory %s", *skinPath);
|
dsyslog("skindesigner: using Skin Directory %s", *skinPath);
|
||||||
|
#ifndef DO_NOT_USE_SKININSTALLER
|
||||||
dsyslog("skindesigner: using Installer Skin Directory %s", *installerSkinPath);
|
dsyslog("skindesigner: using Installer Skin Directory %s", *installerSkinPath);
|
||||||
|
#endif
|
||||||
dsyslog("skindesigner: using common ChannelLogo Directory %s", *logoPath);
|
dsyslog("skindesigner: using common ChannelLogo Directory %s", *logoPath);
|
||||||
dsyslog("skindesigner: using EPG Images Directory %s", *epgImagePath);
|
dsyslog("skindesigner: using EPG Images Directory %s", *epgImagePath);
|
||||||
|
|
||||||
@ -110,10 +112,13 @@ void cDesignerConfig::ReadSkinFolder(cString &skinFolder, vector<string> *contai
|
|||||||
|
|
||||||
void cDesignerConfig::ReadSkins(void) {
|
void cDesignerConfig::ReadSkins(void) {
|
||||||
ReadSkinFolder(skinPath, &deliveredSkins);
|
ReadSkinFolder(skinPath, &deliveredSkins);
|
||||||
|
#ifndef DO_NOT_USE_SKININSTALLER
|
||||||
ReadSkinFolder(installerSkinPath, &installerSkins);
|
ReadSkinFolder(installerSkinPath, &installerSkins);
|
||||||
|
#endif
|
||||||
for (vector<string>::iterator it = deliveredSkins.begin(); it != deliveredSkins.end(); it++) {
|
for (vector<string>::iterator it = deliveredSkins.begin(); it != deliveredSkins.end(); it++) {
|
||||||
skins.push_back(*it);
|
skins.push_back(*it);
|
||||||
}
|
}
|
||||||
|
#ifndef DO_NOT_USE_SKININSTALLER
|
||||||
for (vector<string>::iterator it = installerSkins.begin(); it != installerSkins.end(); it++) {
|
for (vector<string>::iterator it = installerSkins.begin(); it != installerSkins.end(); it++) {
|
||||||
string instSkin = *it;
|
string instSkin = *it;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
@ -126,6 +131,7 @@ void cDesignerConfig::ReadSkins(void) {
|
|||||||
if (!found)
|
if (!found)
|
||||||
skins.push_back(instSkin);
|
skins.push_back(instSkin);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void cDesignerConfig::ClearSkinSetups(void) {
|
void cDesignerConfig::ClearSkinSetups(void) {
|
||||||
@ -335,9 +341,11 @@ void cDesignerConfig::SetSkinSetupParameters(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void cDesignerConfig::ReadSkinRepos(void) {
|
void cDesignerConfig::ReadSkinRepos(void) {
|
||||||
|
#ifndef DO_NOT_USE_SKININSTALLER
|
||||||
skinRepos.Init(*installerSkinPath);
|
skinRepos.Init(*installerSkinPath);
|
||||||
skinRepos.Read(*installerSkinPath);
|
skinRepos.Read(*installerSkinPath);
|
||||||
dsyslog("skindesigner: read %d skinrepositories from %s", skinRepos.Count(), *installerSkinPath);
|
dsyslog("skindesigner: read %d skinrepositories from %s", skinRepos.Count(), *installerSkinPath);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cDesignerConfig::CheckVersion(string name, string &neededVersion) {
|
bool cDesignerConfig::CheckVersion(string name, string &neededVersion) {
|
||||||
|
2
setup.c
2
setup.c
@ -360,7 +360,7 @@ void cSkinDesignerSetup::SkinSetup(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void cSkinDesignerSetup::InstallSkins(void) {
|
void cSkinDesignerSetup::InstallSkins(void) {
|
||||||
#ifdef USE_SKININSTALLER
|
#ifndef DO_NOT_USE_SKININSTALLER
|
||||||
Add(InfoItem(tr("Install new skins")));
|
Add(InfoItem(tr("Install new skins")));
|
||||||
|
|
||||||
config.InitSkinRepoIterator();
|
config.InitSkinRepoIterator();
|
||||||
|
Loading…
Reference in New Issue
Block a user