Remove autogeneration of version header
...just use a direct define.
This commit is contained in:
parent
96d7fd8772
commit
cd62f76fc2
7 changed files with 1 additions and 16 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -41,7 +41,3 @@ target_wrapper.*
|
||||||
|
|
||||||
# QtCreator CMake
|
# QtCreator CMake
|
||||||
CMakeLists.txt.user*
|
CMakeLists.txt.user*
|
||||||
|
|
||||||
# Automatically generated
|
|
||||||
|
|
||||||
seaprint_version.h
|
|
||||||
|
|
|
@ -31,13 +31,7 @@ PKGCONFIG += mlite5 libcurl poppler glib-2.0 cairo
|
||||||
LIBS += -lcurl -lglib-2.0 -lgobject-2.0 -ldl
|
LIBS += -lcurl -lglib-2.0 -lgobject-2.0 -ldl
|
||||||
DEFINES += MADNESS=1
|
DEFINES += MADNESS=1
|
||||||
DEFINES += PDF_CREATOR='\\"SeaPrint\ $$VERSION\\"'
|
DEFINES += PDF_CREATOR='\\"SeaPrint\ $$VERSION\\"'
|
||||||
|
DEFINES += SEAPRINT_VERSION='\\"$$VERSION\\"'
|
||||||
# Write version file
|
|
||||||
VERSION_H = \
|
|
||||||
"$${LITERAL_HASH}ifndef SEAPRINT_VERSION" \
|
|
||||||
"$${LITERAL_HASH} define SEAPRINT_VERSION \"$$VERSION\"" \
|
|
||||||
"$${LITERAL_HASH}endif"
|
|
||||||
write_file($$$$OUT_PWD/seaprint_version.h, VERSION_H)
|
|
||||||
|
|
||||||
SOURCES += src/harbour-seaprint.cpp \
|
SOURCES += src/harbour-seaprint.cpp \
|
||||||
src/convertchecker.cpp \
|
src/convertchecker.cpp \
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
#include "papersizes.h"
|
#include "papersizes.h"
|
||||||
#include "convertchecker.h"
|
#include "convertchecker.h"
|
||||||
#include "mimer.h"
|
#include "mimer.h"
|
||||||
#include "seaprint_version.h"
|
|
||||||
#include <QImage>
|
#include <QImage>
|
||||||
#include <QMatrix>
|
#include <QMatrix>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#include "curlworker.h"
|
#include "curlworker.h"
|
||||||
#include "curlrequester.h"
|
#include "curlrequester.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include <seaprint_version.h>
|
|
||||||
|
|
||||||
static size_t trampoline(char* dest, size_t size, size_t nmemb, void* userp)
|
static size_t trampoline(char* dest, size_t size, size_t nmemb, void* userp)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#include <QtQuick>
|
#include <QtQuick>
|
||||||
|
|
||||||
#include <sailfishapp.h>
|
#include <sailfishapp.h>
|
||||||
#include <seaprint_version.h>
|
|
||||||
#include <src/ippdiscovery.h>
|
#include <src/ippdiscovery.h>
|
||||||
#include <src/ippprinter.h>
|
#include <src/ippprinter.h>
|
||||||
#include <src/mimer.h>
|
#include <src/mimer.h>
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#include "ippdiscovery.h"
|
#include "ippdiscovery.h"
|
||||||
#include "ippprinter.h"
|
#include "ippprinter.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include <seaprint_version.h>
|
|
||||||
|
|
||||||
#define A 1
|
#define A 1
|
||||||
#define PTR 12
|
#define PTR 12
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#include "ippprinter.h"
|
#include "ippprinter.h"
|
||||||
#include <seaprint_version.h>
|
|
||||||
#include "mimer.h"
|
#include "mimer.h"
|
||||||
#include "papersizes.h"
|
#include "papersizes.h"
|
||||||
#include "overrider.h"
|
#include "overrider.h"
|
||||||
|
|
Loading…
Reference in a new issue