summaryrefslogtreecommitdiffstats
path: root/.pc/0002-Qt5.patch/makefiles/arch/desktop.mk
diff options
context:
space:
mode:
Diffstat (limited to '.pc/0002-Qt5.patch/makefiles/arch/desktop.mk')
-rw-r--r--.pc/0002-Qt5.patch/makefiles/arch/desktop.mk42
1 files changed, 42 insertions, 0 deletions
diff --git a/.pc/0002-Qt5.patch/makefiles/arch/desktop.mk b/.pc/0002-Qt5.patch/makefiles/arch/desktop.mk
new file mode 100644
index 0000000..3e81598
--- /dev/null
+++ b/.pc/0002-Qt5.patch/makefiles/arch/desktop.mk
@@ -0,0 +1,42 @@
+include $(ROOTDIR)/makefiles/arch/unix.mk
+
+ifeq "$(INSTALLDIR)" ""
+ INSTALLDIR=/usr
+endif
+IMAGEDIR = $(INSTALLDIR)/share/pixmaps
+APPIMAGEDIR = $(INSTALLDIR)/share/pixmaps/%APPLICATION_NAME%
+
+
+CCACHE = $(shell if which ccache > /dev/null; then echo "ccache"; fi) #if ccache is not installed, do not use it
+CC = $(CCACHE) gcc
+AR = ar rsu
+LD = g++
+
+CFLAGS = -pipe -fno-exceptions -Wall -Wno-ctor-dtor-privacy -W -DLIBICONV_PLUG
+LDFLAGS =
+EXTERNAL_INCLUDE = $(shell pkg-config --cflags fribidi)
+
+ifeq "$(UI_TYPE)" "qt"
+ MOC = moc-qt3
+ QTINCLUDE = -I /usr/include/qt3
+else
+ MOC = $(shell pkg-config QtCore --variable=moc_location)
+ QTINCLUDE = -I $(shell pkg-config --cflags QtCore)
+endif
+
+GTKINCLUDE = $(shell pkg-config --cflags gtk+-2.0 libpng xft)
+
+ifeq "$(UI_TYPE)" "qt"
+ UILIBS = -lqt-mt
+endif
+
+ifeq "$(UI_TYPE)" "qt4"
+ UILIBS = $(shell pkg-config --libs QtCore QtGui QtNetwork)
+endif
+
+ifeq "$(UI_TYPE)" "gtk"
+ UILIBS = $(shell pkg-config --libs gtk+-2.0 gio-2.0) -lpng -ljpeg
+endif
+
+RM = rm -rvf
+RM_QUIET = rm -rf