Skip to content

Request for as a library #20

@rahmanshaber

Description

@rahmanshaber

I want to use the qpdf as a library of my app .
But qpdf is an app and it come with app and the library.
so i need to add the whole repo and it will come with the app .but it is not convenient to make an app with two front end and with one library.One only need the library to make an app based on the qpdf.
And i want my app in GPL but the license make it impossible to make my app in GPL and library in LGPL.

Also add Linux and windows installation requirements in qmake .i don't know about windows ,here is an example of mac and linux qmake .here is the library libarchive-qt

``
unix {
isEmpty(PREFIX) {
PREFIX = /usr
}

INSTALLS	+= target includes data
CONFIG		+= create_pc no_install_prl link_pkgconfig
contains(DEFINES, LIB64): target.path = $$INSTALL_PREFIX/lib64
else: target.path = $$INSTALL_PREFIX/lib

target.path			= $$PREFIX/lib/
includes.files		= libarchiveqt.h
includes.path		= $$PREFIX/include/

data.path = $$PREFIX/share/lib$$TARGET/
data.files = Changelog README

QMAKE_PKGCONFIG_NAME = libarchive-qt
QMAKE_PKGCONFIG_DESCRIPTION = A Qt based archiving solution with libarchive backend
QMAKE_PKGCONFIG_PREFIX  = $$INSTALL_PREFIX
QMAKE_PKGCONFIG_LIBDIR  = $$target.path
QMAKE_PKGCONFIG_INCDIR  = $$includes.path
QMAKE_PKGCONFIG_VERSION = $$VERSION
QMAKE_PKGCONFIG_DESTDIR = pkgconfig

}

macx {
INCLUDEPATH += /usr/local/opt/libarchive/include /usr/local/opt/xz/include
QMAKE_LFLAGS += -L/usr/local/opt/libarchive/lib -L/usr/local/opt/xz/lib
}

``

so i am suggesting that make an option in qmake to build the library with the app or make a separate repo for only the library . it will be best .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions