notes: introduce compilation modes
This commit is contained in:
parent
79e80e89a9
commit
4d19d474dc
13
project.conf
13
project.conf
|
@ -6,6 +6,19 @@ subdirs=data,doc,include,po,src,tests
|
|||
targets=tests
|
||||
dist=Makefile,COPYING,config.h,config.sh
|
||||
|
||||
#modes
|
||||
[mode::debug]
|
||||
title=Debug
|
||||
|
||||
[mode::embedded-debug]
|
||||
title=Debug (embedded UI)
|
||||
|
||||
[mode::embedded-release]
|
||||
title=Release (embedded UI)
|
||||
|
||||
[mode::release]
|
||||
title=Release
|
||||
|
||||
#targets
|
||||
[tests]
|
||||
type=command
|
||||
|
|
|
@ -1,12 +1,23 @@
|
|||
targets=libNotes,notes
|
||||
cppflags_force=-I../include
|
||||
#cppflags=-D EMBEDDED
|
||||
cflags_force=`pkg-config --cflags libDesktop`
|
||||
cflags=-W -Wall -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
|
||||
ldflags_force=`pkg-config --libs libDesktop` -lintl
|
||||
ldflags=-pie -Wl,-z,relro -Wl,-z,now
|
||||
dist=Makefile,note.h,noteedit.h,notes.h,window.h
|
||||
|
||||
#modes
|
||||
[mode::embedded-debug]
|
||||
cppflags_force=-I../include -DEMBEDDED
|
||||
|
||||
[mode::embedded-release]
|
||||
cppflags_force=-I../include -DEMBEDDED -DNDEBUG
|
||||
cflags=-W -Wall -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
|
||||
|
||||
[mode::release]
|
||||
cppflags_force=-I../include -DNDEBUG
|
||||
cflags=-W -Wall -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
|
||||
|
||||
#targets
|
||||
[libNotes]
|
||||
type=library
|
||||
|
|
Loading…
Reference in New Issue
Block a user