[libchamplain] Remove unnecessary comparisons
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] Remove unnecessary comparisons
- Date: Thu, 7 Feb 2019 13:49:46 +0000 (UTC)
commit a2a47d1e1c9647cea33f98ebb0bc295b5f2986e0
Author: Jiří Techet <techet gmail com>
Date: Thu Feb 7 10:05:07 2019 +0100
Remove unnecessary comparisons
champlain-gtk/meson.build | 4 ++--
champlain/meson.build | 14 +++++++-------
demos/meson.build | 6 +++---
docs/meson.build | 6 +++---
docs/reference/meson.build | 2 +-
meson.build | 4 ++--
6 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/champlain-gtk/meson.build b/champlain-gtk/meson.build
index e777594..8137bc7 100644
--- a/champlain-gtk/meson.build
+++ b/champlain-gtk/meson.build
@@ -82,7 +82,7 @@ libchamplain_gtk_dep_sources = [
libchamplain_gtk_marshals_h,
]
-if generate_gir == true
+if generate_gir
libchamplain_gtk_gir_includes = [
'GObject-2.0',
'Clutter-1.0',
@@ -113,7 +113,7 @@ if generate_gir == true
libchamplain_gtk_gir,
]
- if generate_vapi == true
+ if generate_vapi
libchamplain_gtk_vapi_packages = [
'clutter-gtk-1.0',
'cogl-pango-1.0',
diff --git a/champlain/meson.build b/champlain/meson.build
index 815908b..b31f2d0 100644
--- a/champlain/meson.build
+++ b/champlain/meson.build
@@ -36,7 +36,7 @@ libchamplain_public_h = [
'champlain.h',
]
-if build_with_memphis == true
+if build_with_memphis
libchamplain_public_h += [
'champlain-memphis-renderer.h',
]
@@ -79,7 +79,7 @@ libchamplain_sources = [
'champlain-viewport.c',
]
-if build_with_memphis == true
+if build_with_memphis
libchamplain_sources += [
'champlain-memphis-renderer.c',
]
@@ -96,7 +96,7 @@ libchamplain_deps = [
libsoup_dep,
]
-if build_with_memphis == true
+if build_with_memphis
libchamplain_deps += memphis_dep
endif
@@ -112,7 +112,7 @@ libchamplain_link_args = [
]
features_h = configuration_data()
-if build_with_memphis == true
+if build_with_memphis
features_h.set('CHAMPLAIN_HAS_MEMPHIS', '1')
endif
@@ -206,13 +206,13 @@ libchamplain_dep_sources = [
libchamplain_version_h,
]
-if generate_gir == true
+if generate_gir
libchamplain_gir_includes = [
'GObject-2.0',
'Clutter-1.0',
]
- if build_with_memphis == true
+ if build_with_memphis
libchamplain_gir_includes += 'Memphis-0.2'
endif
@@ -239,7 +239,7 @@ if generate_gir == true
libchamplain_gir,
]
- if generate_vapi == true
+ if generate_vapi
libchamplain_vapi_packages = [
'clutter-1.0',
'cogl-pango-1.0',
diff --git a/demos/meson.build b/demos/meson.build
index 47c9979..f34def6 100644
--- a/demos/meson.build
+++ b/demos/meson.build
@@ -24,7 +24,7 @@ endforeach
subdir('icons')
subdir('memphis')
-if build_gtk_widgetry == true
+if build_gtk_widgetry
libchamplain_gtk_demos = [
['minimal-gtk', 'minimal-gtk.c'],
['launcher-gtk', ['launcher-gtk.c', 'markers.c']],
@@ -46,7 +46,7 @@ if build_gtk_widgetry == true
endforeach
endif
-if generate_vapi == true and build_gtk_widgetry == true
+if generate_vapi and build_gtk_widgetry
libchamplain_vala_demos = [
['launcher-vala', ['launcher-vala.vala', 'markers-vala.vala']],
]
@@ -70,7 +70,7 @@ if generate_vapi == true and build_gtk_widgetry == true
endforeach
endif
-if build_with_memphis == true and build_gtk_widgetry == true
+if build_with_memphis and build_gtk_widgetry
libchamplain_memphis_demos = [
['local-rendering', 'local-rendering.c'],
]
diff --git a/docs/meson.build b/docs/meson.build
index d7ecf41..eb240b7 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -1,6 +1,6 @@
-if build_gtk_doc == true
+if build_gtk_doc
subdir('reference')
- if build_gtk_widgetry == true
+ if build_gtk_widgetry
subdir('reference-gtk')
endif
-endif
\ No newline at end of file
+endif
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
index fb957eb..42da149 100644
--- a/docs/reference/meson.build
+++ b/docs/reference/meson.build
@@ -20,7 +20,7 @@ libchamplain_reference_ignored_h = [
'champlain.h',
]
-if build_with_memphis == false
+if not build_with_memphis
libchamplain_reference_ignored_h += [
'champlain-memphis-renderer.h',
]
diff --git a/meson.build b/meson.build
index f3cd472..648e5e0 100644
--- a/meson.build
+++ b/meson.build
@@ -130,13 +130,13 @@ if generate_vapi and not vapigen_dep.found()
endif
subdir('champlain')
-if build_gtk_widgetry == true
+if build_gtk_widgetry
subdir('champlain-gtk')
endif
subdir('docs')
-if build_demos == true
+if build_demos
subdir('demos')
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]