notes: introduce compilation modes

This commit is contained in:
Pierre Pronchery 2024-10-07 00:16:08 +02:00
parent 79e80e89a9
commit 4d19d474dc
2 changed files with 25 additions and 1 deletions

View File

@ -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

View File

@ -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