From ba6a618d44720cfaca7d80cad77431ac756a8b2f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 9 May 2023 21:39:20 -0400 Subject: [PATCH] build: Rename another option --- build-aux/flatpak/org.gtk.Demo4.json | 2 +- build-aux/flatpak/org.gtk.IconBrowser4.json | 2 +- build-aux/flatpak/org.gtk.WidgetFactory4.json | 2 +- build-aux/flatpak/org.gtk.gtk4.NodeEditor.json | 2 +- demos/meson.build | 2 +- meson_options.txt | 8 +++++++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/build-aux/flatpak/org.gtk.Demo4.json b/build-aux/flatpak/org.gtk.Demo4.json index 457dfd64b8..5c75ece589 100644 --- a/build-aux/flatpak/org.gtk.Demo4.json +++ b/build-aux/flatpak/org.gtk.Demo4.json @@ -187,7 +187,7 @@ "--libdir=/app/lib", "-Dvulkan=disabled", "-Dbuildtype=debugoptimized", - "-Dprofile=devel" + "-Ddemo-profile=devel" ], "sources" : [ { diff --git a/build-aux/flatpak/org.gtk.IconBrowser4.json b/build-aux/flatpak/org.gtk.IconBrowser4.json index 00cdf9f110..b563dbb285 100644 --- a/build-aux/flatpak/org.gtk.IconBrowser4.json +++ b/build-aux/flatpak/org.gtk.IconBrowser4.json @@ -116,7 +116,7 @@ "--libdir=/app/lib", "-Dvulkan=disabled", "-Dbuildtype=debugoptimized", - "-Dprofile=devel" + "-Ddemo-profile=devel" ], "sources" : [ { diff --git a/build-aux/flatpak/org.gtk.WidgetFactory4.json b/build-aux/flatpak/org.gtk.WidgetFactory4.json index cdca2010ee..390da50cac 100644 --- a/build-aux/flatpak/org.gtk.WidgetFactory4.json +++ b/build-aux/flatpak/org.gtk.WidgetFactory4.json @@ -116,7 +116,7 @@ "--libdir=/app/lib", "-Dvulkan=disabled", "-Dbuildtype=debugoptimized", - "-Dprofile=devel" + "-Ddemo-profile=devel" ], "sources" : [ { diff --git a/build-aux/flatpak/org.gtk.gtk4.NodeEditor.json b/build-aux/flatpak/org.gtk.gtk4.NodeEditor.json index bff6b20be3..ef60c66084 100644 --- a/build-aux/flatpak/org.gtk.gtk4.NodeEditor.json +++ b/build-aux/flatpak/org.gtk.gtk4.NodeEditor.json @@ -116,7 +116,7 @@ "--libdir=/app/lib", "-Dvulkan=disabled", "-Dbuildtype=debugoptimized", - "-Dprofile=devel" + "-Ddemo-profile=devel" ], "sources" : [ { diff --git a/demos/meson.build b/demos/meson.build index 91eb3c465c..d4c04d2b8b 100644 --- a/demos/meson.build +++ b/demos/meson.build @@ -1,5 +1,5 @@ gen_demo_header = find_program('../build-aux/meson/gen-demo-header.py') -demo_profile = get_option('profile') +demo_profile = get_option('demo-profile') demo_conf_h = declare_dependency( sources: custom_target('demo-header', diff --git a/meson_options.txt b/meson_options.txt index 1526a351bc..f4399d39df 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -108,7 +108,7 @@ option('introspection', # Demos, examples and tests -option('profile', +option('demo-profile', type: 'combo', choices: [ 'default', 'devel' ], value: 'default', @@ -119,6 +119,12 @@ option('build-demos', value: true, description : 'Build demo programs') +option('profile', + type: 'combo', + choices: [ 'default', 'devel' ], + value: 'default', + deprecated: 'demo-profile') + option('demos', type: 'boolean', value: true, -- 2.30.2