Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for as a library #20

Open
rahmanshaber opened this issue Nov 17, 2018 · 0 comments
Open

Request for as a library #20

rahmanshaber opened this issue Nov 17, 2018 · 0 comments

Comments

@rahmanshaber
Copy link

rahmanshaber commented Nov 17, 2018

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant