Remove autogeneration of version header

...just use a direct define.
This commit is contained in:
Anton Thomasson 2022-01-01 19:26:40 +01:00
parent 96d7fd8772
commit cd62f76fc2
7 changed files with 1 additions and 16 deletions

4
.gitignore vendored
View file

@ -41,7 +41,3 @@ target_wrapper.*
# QtCreator CMake
CMakeLists.txt.user*
# Automatically generated
seaprint_version.h

View file

@ -31,13 +31,7 @@ PKGCONFIG += mlite5 libcurl poppler glib-2.0 cairo
LIBS += -lcurl -lglib-2.0 -lgobject-2.0 -ldl
DEFINES += MADNESS=1
DEFINES += PDF_CREATOR='\\"SeaPrint\ $$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)
DEFINES += SEAPRINT_VERSION='\\"$$VERSION\\"'
SOURCES += src/harbour-seaprint.cpp \
src/convertchecker.cpp \

View file

@ -3,7 +3,6 @@
#include "papersizes.h"
#include "convertchecker.h"
#include "mimer.h"
#include "seaprint_version.h"
#include <QImage>
#include <QMatrix>
#include <QPainter>

View file

@ -1,7 +1,6 @@
#include "curlworker.h"
#include "curlrequester.h"
#include "settings.h"
#include <seaprint_version.h>
static size_t trampoline(char* dest, size_t size, size_t nmemb, void* userp)
{

View file

@ -1,7 +1,6 @@
#include <QtQuick>
#include <sailfishapp.h>
#include <seaprint_version.h>
#include <src/ippdiscovery.h>
#include <src/ippprinter.h>
#include <src/mimer.h>

View file

@ -1,7 +1,6 @@
#include "ippdiscovery.h"
#include "ippprinter.h"
#include "settings.h"
#include <seaprint_version.h>
#define A 1
#define PTR 12

View file

@ -1,5 +1,4 @@
#include "ippprinter.h"
#include <seaprint_version.h>
#include "mimer.h"
#include "papersizes.h"
#include "overrider.h"