From 69d71f44aba0ad914c1745e963886fcb59236e19 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 19 Oct 2015 00:07:06 +0200 Subject: [PATCH] Document compilation flags for Gtk+ 3 --- src/project.conf | 6 +++++- tools/project.conf | 8 ++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/project.conf b/src/project.conf index ee7f7b8..3cf8f99 100644 --- a/src/project.conf +++ b/src/project.conf @@ -1,8 +1,12 @@ targets=libDesktop cppflags_force=-I ../include -cflags_force=`pkg-config --cflags libSystem gtk+-2.0` -fPIC cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all +#for Gtk+ 2 +cflags_force=`pkg-config --cflags libSystem gtk+-2.0` -fPIC ldflags_force=`pkg-config --libs libSystem gtk+-2.0` +#for Gtk+ 3 +#cflags_force=`pkg-config --cflags libSystem gtk+-3.0` -fPIC +#ldflags_force=`pkg-config --libs libSystem gtk+-3.0` dist=Makefile [libDesktop] diff --git a/tools/project.conf b/tools/project.conf index 2b2fd74..45acde6 100644 --- a/tools/project.conf +++ b/tools/project.conf @@ -1,9 +1,13 @@ targets=widget cppflags_force=-I ../include -cflags_force=`pkg-config --cflags libSystem gtk+-2.0` cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all -ldflags_force=`pkg-config --libs libSystem gtk+-2.0` -L $(OBJDIR)../src -lDesktop ldflags=-Wl,-pie +#for Gtk+ 2 +cflags_force=`pkg-config --cflags libSystem gtk+-2.0` +ldflags_force=`pkg-config --libs libSystem gtk+-2.0` -L $(OBJDIR)../src -lDesktop +#for Gtk+ 3 +#cflags_force=`pkg-config --cflags libSystem gtk+-3.0` +#ldflags_force=`pkg-config --libs libSystem gtk+-3.0` -L $(OBJDIR)../src -lDesktop dist=Makefile [widget]