Commit eb858058 authored by Camilo Higuita's avatar Camilo Higuita
Browse files

getting ready for 1.2 tar release

parent bb527db5
cmake_minimum_required(VERSION 3.0)
project (Babe)
project (babe)
set (KF5_MIN_VERSION "5.24.0")
find_package (ECM ${KF5_MIN_VERSION} CONFIG REQUIRED)
......@@ -9,8 +9,26 @@ include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMInstallIcons)
include(ECMSetupVersion)
include(FeatureSummary)
cmake_policy(SET CMP0048 NEW)
project(babe VERSION "1.2.0")
ecm_setup_version(${PROJECT_VERSION}
VARIABLE_PREFIX BABE
SOVERSION ${PROJECT_VERSION_MAJOR}
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/kde/config.h"
)
#usage somewhere in cmake for a library:
#set_target_properties(kgraphviewerlib PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${KGRAPHVIEWER_SOVERSION} OUTPUT_NAME kgraphviewer )
set (QT_MIN_VERSION "5.5.0")
# Find the required Qt libraries
find_package (
......@@ -83,6 +101,7 @@ set(babe_SRCS
src/dialogs/playlistform.h
src/kde/mpris2.h
src/kde/notify.h
src/kde/config.h
src/pulpo/services/geniusService.h
src/pulpo/services/lastfmService.h
src/pulpo/services/lyricwikiaService.h
......@@ -171,3 +190,4 @@ feature_summary (
INCLUDE_QUIET_PACKAGES
FATAL_ON_MISSING_REQUIRED_PACKAGES
)
Copyright <2018> <Camilo Higuita> <milo.h@aol.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 3 of
the License or any later version accepted by the membership of
KDE e.V. (or its successor approved by the membership of KDE
e.V.), which shall act as a proxy defined in Section 14 of
version 3 of the license.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
......@@ -17,6 +17,9 @@
#include <QApplication>
#include "views/babewindow.h"
#include <QStyleFactory>
#include "src/utils/bae.h"
#include <QCommandLineParser>
int main(int argc, char *argv[])
{
......@@ -27,9 +30,27 @@ int main(int argc, char *argv[])
files << argv[i];
QApplication a(argc, argv);
QApplication::setStyle(QStyleFactory::create("Breeze"));
a.setApplicationName("Babe");
a.setDesktopFileName("Babe");
a.setApplicationVersion("1.0");
a.setApplicationVersion(BABE_VERSION_STR);
QCommandLineParser parser;
parser.setApplicationDescription("Babe music player");
const QCommandLineOption versionOption = parser.addVersionOption();
parser.process(a);
const QStringList args = parser.positionalArguments();
bool version = parser.isSet(versionOption);
if(version)
{
printf("%s %s\n", qPrintable(QCoreApplication::applicationName()),
qPrintable(QCoreApplication::applicationVersion()));
return 0;
}
BabeWindow w(files);
w.start();
w.show();
......
......@@ -13,8 +13,16 @@
#include <QDirIterator>
#include <cmath>
using namespace std;
#define BABE_MAJOR_VERSION 1
#define BABE_MINOR_VERSION 2
#define BABE_PATCH_VERSION 0
#define BABE_VERSION_STR "1.2.0"
#define BABE_VERSION KDE_MAKE_VERSION(1, 2, 0)
using namespace std;
namespace BAE
{
enum SearchT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment