mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-01-29 16:49:32 +01:00
Include resources into the dll
This commit is contained in:
parent
f98e4ebdc5
commit
5ed72d5b44
@ -165,6 +165,8 @@ HEADERS += \
|
||||
FORMS += \
|
||||
sources/pdfrenderingerrorswidget.ui
|
||||
|
||||
RESOURCES += cmaps.qrc
|
||||
|
||||
PDFFORQT_DEPENDENCIES_PATH = K:\Programming\PDF\PDF_For_Qt\PDfForQt-Dependencies
|
||||
PDFFORQT_OPENSSL_PATH = K:\Programming\Qt\Tools\
|
||||
|
||||
@ -222,20 +224,7 @@ INSTALLS += lcms2
|
||||
CONFIG += force_debug_info
|
||||
|
||||
QMAKE_CXXFLAGS += /std:c++latest /utf-8
|
||||
|
||||
# resource manifest
|
||||
CMAP_RESOURCE_INPUT = $$PWD/cmaps.qrc
|
||||
cmap_resource_builder.commands = $$[QT_HOST_BINS]/rcc -binary ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT} -threshold 0 -compress 9
|
||||
cmap_resource_builder.depend_command = $$[QT_HOST_BINS]/rcc -list $$QMAKE_RESOURCE_FLAGS ${QMAKE_FILE_IN}
|
||||
cmap_resource_builder.input = CMAP_RESOURCE_INPUT
|
||||
cmap_resource_builder.output = $$DESTDIR/${QMAKE_FILE_IN_BASE}.qrb
|
||||
cmap_resource_builder.CONFIG += no_link target_predeps
|
||||
QMAKE_EXTRA_COMPILERS += cmap_resource_builder
|
||||
|
||||
cmaps_files.files = $$DESTDIR/cmaps.qrb
|
||||
cmaps_files.path = $$DESTDIR/install
|
||||
|
||||
INSTALLS += cmaps_files
|
||||
QMAKE_RESOURCE_FLAGS += -threshold 0 -compress 9
|
||||
|
||||
pdfforqt_library.files = $$DESTDIR/PdfForQtLib.dll
|
||||
pdfforqt_library.path = $$DESTDIR/install
|
||||
|
@ -38,8 +38,6 @@ int main(int argc, char *argv[])
|
||||
parser.addPositionalArgument("file", "The PDF file to open.");
|
||||
parser.process(application);
|
||||
|
||||
QResource::registerResource(QString("cmaps.qrb"));
|
||||
|
||||
pdfviewer::PDFViewerMainWindow mainWindow;
|
||||
mainWindow.show();
|
||||
|
||||
|
@ -28,8 +28,6 @@ int main(int argc, char *argv[])
|
||||
QCoreApplication::setApplicationName("PdfTool");
|
||||
QCoreApplication::setApplicationVersion("1.0.0");
|
||||
|
||||
QResource::registerResource(QString("cmaps.qrb"));
|
||||
|
||||
QStringList arguments = QCoreApplication::arguments();
|
||||
|
||||
QCommandLineParser parser;
|
||||
|
Loading…
x
Reference in New Issue
Block a user