Introduce compilation modes
This commit is contained in:
parent
63220a31dc
commit
1ebebc1c3d
14
project.conf
14
project.conf
|
@ -6,6 +6,20 @@ config=h,sh
|
|||
subdirs=data,doc,include,po,src,tests
|
||||
targets=tests
|
||||
dist=COPYING,Makefile,README.md,config.h,config.sh
|
||||
mode=debug
|
||||
|
||||
#modes
|
||||
[mode::debug]
|
||||
title=Debug
|
||||
|
||||
[mode::release]
|
||||
title=Release
|
||||
|
||||
[mode::embedded-debug]
|
||||
title=Debug (embedded)
|
||||
|
||||
[mode::embedded-release]
|
||||
title=Release (embedded)
|
||||
|
||||
#targets
|
||||
[tests]
|
||||
|
|
|
@ -1,12 +1,25 @@
|
|||
subdirs=controls
|
||||
targets=mixer
|
||||
cppflags_force=-I../include
|
||||
#cppflags=-D EMBEDDED
|
||||
cflags_force=`pkg-config --cflags libDesktop`
|
||||
cflags=-W -Wall -g -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
|
||||
ldflags_force=`pkg-config --libs libDesktop` -lintl -lm
|
||||
ldflags=-pie -Wl,-z,relro -Wl,-z,now
|
||||
dist=Makefile,common.h,control.h,mixer.h,window.h
|
||||
mode=debug
|
||||
|
||||
#modes
|
||||
[mode::embedded-debug]
|
||||
cppflags=-DEMBEDDED
|
||||
|
||||
[mode::release]
|
||||
cppflags_force=-DNDEBUG
|
||||
cflags=-W -Wall -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
|
||||
|
||||
[mode::embedded-release]
|
||||
cppflags_force=-DNDEBUG
|
||||
cppflags=-DEMBEDDED
|
||||
cflags=-W -Wall -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
|
||||
|
||||
#targets
|
||||
[mixer]
|
||||
|
|
Loading…
Reference in New Issue
Block a user