build: use -Ddevelopment=true to set DEVELOPMENT_BUILD

And also, we use it as #ifdef, so never define it as 0.
This commit is contained in:
Christian Hergert
2022-07-22 12:53:25 -07:00
parent 5298e67d12
commit 97633fd011
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
# If this is a development build, which is used for our Flatpak build
# so that we have a different app-id (.Devel suffix) than the regular
# application.
option('development', type: 'boolean', value: 'false')
# Optionally disable the GTK application in case you're building the
# sysprof-cli only for your platform. Might be useful in IoT or various
# server scenarios.