Register modes for Gtk+ {2,3} and releases
This commit is contained in:
parent
d962fa04fd
commit
bc86366d5d
0
data/.gitignore → data/gtk2/.gitignore
vendored
0
data/.gitignore → data/gtk2/.gitignore
vendored
11
data/gtk2/libDesktop.pc.in
Normal file
11
data/gtk2/libDesktop.pc.in
Normal 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
9
data/gtk2/project.conf
Normal 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
1
data/gtk3/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/libDesktop.pc
|
9
data/gtk3/project.conf
Normal file
9
data/gtk3/project.conf
Normal 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,8 +1,10 @@
|
|||
targets=libDesktop.pc
|
||||
dist=Makefile,libDesktop.pc.in,pkgconfig.sh
|
||||
subdirs=gtk3
|
||||
dist=Makefile,pkgconfig.sh
|
||||
mode=gtk3-debug
|
||||
|
||||
[libDesktop.pc]
|
||||
type=script
|
||||
script=./pkgconfig.sh
|
||||
depends=libDesktop.pc.in,../config.sh
|
||||
install=
|
||||
#modes
|
||||
[mode::gtk2-debug]
|
||||
subdirs=gtk2
|
||||
|
||||
[mode::gtk2-release]
|
||||
subdirs=gtk2
|
||||
|
|
|
@ -1,14 +1,26 @@
|
|||
targets=libDesktop
|
||||
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=-W -Wall -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
|
||||
ldflags_force=`pkg-config --libs libSystem gtk+-3.0`
|
||||
ldflags=-Wl,-z,relro -Wl,-z,now
|
||||
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
|
||||
[libDesktop]
|
||||
|
|
|
@ -2,13 +2,25 @@ targets=clint.log,fixme.log,htmllint.log,mime,mimehandler,tests.log,widget,xmlli
|
|||
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` $(OBJDIR)../src/libDesktop.a
|
||||
#for Gtk+ 3
|
||||
cflags_force=`pkg-config --cflags libSystem gtk+-3.0`
|
||||
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
|
||||
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
|
||||
[clint.log]
|
||||
|
|
|
@ -1,14 +1,26 @@
|
|||
targets=widget
|
||||
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=-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=-pie -Wl,-z,relro -Wl,-z,now
|
||||
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
|
||||
[widget]
|
||||
|
|
Loading…
Reference in New Issue
Block a user