Register modes for Gtk+ {2,3} and releases

This commit is contained in:
Pierre Pronchery 2021-01-10 00:21:06 +01:00
parent d962fa04fd
commit bc86366d5d
10 changed files with 91 additions and 23 deletions

View File

@ -0,0 +1,11 @@
prefix=@PREFIX@
includedir=${prefix}/include
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
Name: @PACKAGE@
Description: DeforaOS Desktop helper library
Version: @VERSION@
Requires: libSystem gtk+-2.0
Cflags: -I${includedir}
Libs: @RPATH@ -L${libdir} -lDesktop

9
data/gtk2/project.conf Normal file
View File

@ -0,0 +1,9 @@
targets=libDesktop.pc
dist=Makefile,libDesktop.pc.in
#targets
[libDesktop.pc]
type=script
script=../pkgconfig.sh
depends=libDesktop.pc.in,../../config.sh
install=

1
data/gtk3/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/libDesktop.pc

9
data/gtk3/project.conf Normal file
View File

@ -0,0 +1,9 @@
targets=libDesktop.pc
dist=Makefile,libDesktop.pc.in
#targets
[libDesktop.pc]
type=script
script=../pkgconfig.sh
depends=libDesktop.pc.in,../../config.sh
install=

View File

@ -1,8 +1,10 @@
targets=libDesktop.pc subdirs=gtk3
dist=Makefile,libDesktop.pc.in,pkgconfig.sh dist=Makefile,pkgconfig.sh
mode=gtk3-debug
[libDesktop.pc] #modes
type=script [mode::gtk2-debug]
script=./pkgconfig.sh subdirs=gtk2
depends=libDesktop.pc.in,../config.sh
install= [mode::gtk2-release]
subdirs=gtk2

View File

@ -1,14 +1,26 @@
targets=libDesktop targets=libDesktop
cppflags_force=-I ../include cppflags_force=-I ../include
cflags=-W -Wall -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags=-Wl,-z,relro -Wl,-z,now
#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 cflags_force=`pkg-config --cflags libSystem gtk+-3.0` -fPIC
cflags=-W -Wall -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags_force=`pkg-config --libs libSystem gtk+-3.0` ldflags_force=`pkg-config --libs libSystem gtk+-3.0`
ldflags=-Wl,-z,relro -Wl,-z,now
dist=Makefile,mimehandler.h dist=Makefile,mimehandler.h
mode=gtk3-debug
#modes
[mode::gtk2-debug]
cflags_force=`pkg-config --cflags libSystem gtk+-2.0` -fPIC
ldflags_force=`pkg-config --libs libSystem gtk+-2.0`
[mode::gtk2-release]
cppflags_force=-I ../include -DNDEBUG
cflags_force=`pkg-config --cflags libSystem gtk+-2.0` -fPIC
cflags=-W -Wall -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags_force=`pkg-config --libs libSystem gtk+-2.0`
[mode::gtk3-release]
cppflags_force=-I ../include -DNDEBUG
cflags=-W -Wall -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
#targets #targets
[libDesktop] [libDesktop]

View File

@ -2,13 +2,25 @@ targets=clint.log,fixme.log,htmllint.log,mime,mimehandler,tests.log,widget,xmlli
cppflags_force=-I ../include cppflags_force=-I ../include
cflags=-W -Wall -g -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector cflags=-W -Wall -g -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags=-pie -Wl,-z,relro -Wl,-z,now ldflags=-pie -Wl,-z,relro -Wl,-z,now
#for Gtk+ 2
#cflags_force=`pkg-config --cflags libSystem gtk+-2.0`
#ldflags_force=`pkg-config --libs libSystem gtk+-2.0` $(OBJDIR)../src/libDesktop.a
#for Gtk+ 3
cflags_force=`pkg-config --cflags libSystem gtk+-3.0` cflags_force=`pkg-config --cflags libSystem gtk+-3.0`
ldflags_force=`pkg-config --libs libSystem gtk+-3.0` $(OBJDIR)../src/libDesktop.a ldflags_force=`pkg-config --libs libSystem gtk+-3.0` $(OBJDIR)../src/libDesktop.a
dist=Makefile,applications/Root.desktop,applications/Widget.desktop,clint.sh,fixme.sh,htmllint.sh,pkgconfig.sh,tests.sh,xmllint.sh dist=Makefile,applications/Root.desktop,applications/Widget.desktop,clint.sh,fixme.sh,htmllint.sh,pkgconfig.sh,tests.sh,xmllint.sh
mode=gtk3-debug
#modes
[mode::gtk2-debug]
cflags_force=`pkg-config --cflags libSystem gtk+-2.0`
ldflags_force=`pkg-config --libs libSystem gtk+-2.0` $(OBJDIR)../src/libDesktop.a
[mode::gtk2-release]
cppflags_force=-I ../include -DNDEBUG
cflags_force=`pkg-config --cflags libSystem gtk+-2.0`
cflags=-W -Wall -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags_force=`pkg-config --libs libSystem gtk+-2.0` $(OBJDIR)../src/libDesktop.a
[mode::gtk3-release]
cppflags_force=-I ../include -DNDEBUG
cflags=-W -Wall -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
#targets #targets
[clint.log] [clint.log]

View File

@ -1,14 +1,26 @@
targets=widget targets=widget
cppflags_force=-I ../include cppflags_force=-I ../include
cflags=-W -Wall -g -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags=-pie -Wl,-z,relro -Wl,-z,now
#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` cflags_force=`pkg-config --cflags libSystem gtk+-3.0`
cflags=-W -Wall -g -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags_force=`pkg-config --libs libSystem gtk+-3.0` -L $(OBJDIR)../src -lDesktop ldflags_force=`pkg-config --libs libSystem gtk+-3.0` -L $(OBJDIR)../src -lDesktop
ldflags=-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,subst.sh dist=Makefile,subst.sh
mode=gtk3-debug
#modes
[mode::gtk2-debug]
cflags_force=`pkg-config --cflags libSystem gtk+-2.0`
ldflags_force=`pkg-config --libs libSystem gtk+-2.0` -L $(OBJDIR)../src -lDesktop
[mode::gtk2-release]
cppflags_force=-I ../include -DNDEBUG
cflags_force=`pkg-config --cflags libSystem gtk+-2.0`
cflags=-W -Wall -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags_force=`pkg-config --libs libSystem gtk+-2.0` -L $(OBJDIR)../src -lDesktop
[mode::gtk3-release]
cppflags_force=-I ../include -DNDEBUG
cflags=-W -Wall -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
#targets #targets
[widget] [widget]