[eog] build: Remove unused variables and defines
- From: Iñigo Martínez <inigomartinez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] build: Remove unused variables and defines
- Date: Tue, 27 Feb 2018 07:31:14 +0000 (UTC)
commit 5404a0219f9e65c6bfda3d17cf5cb7ec4ec23537
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Wed Feb 21 17:59:15 2018 +0100
build: Remove unused variables and defines
Although micro and macro versions are commonly used, they are not
in Eye of GNOME, so there is no need to create them.
Some PACKAGE_* definitions are also not used in Eye of GNOME.
Finally, there is a variable pointing out if a debug build has been
enabled or not. This is used only once, so it's not necessary to
hold this information.
All of these have been removed.
https://bugzilla.gnome.org/show_bug.cgi?id=793719
meson.build | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/meson.build b/meson.build
index 1e6a9d5..e1e61b1 100644
--- a/meson.build
+++ b/meson.build
@@ -9,8 +9,6 @@ project(
eog_version = meson.project_version()
version_array = eog_version.split('.')
eog_major_version = version_array[0].to_int()
-eog_minor_version = version_array[1].to_int()
-eog_micro_version = version_array[2].to_int()
eog_api_version = '@0@.0'.format(eog_major_version)
eog_api_name = '@0@-@1@'.format(meson.project_name(), eog_api_version)
@@ -31,8 +29,6 @@ eog_pkglibexecdir = join_paths(eog_prefix, get_option('libexecdir'), meson.proje
eog_pluginsdir = join_paths(eog_pkglibdir, 'plugins')
eog_schemadir = join_paths(eog_datadir, 'glib-2.0', 'schemas')
-eog_debug = get_option('buildtype').contains('debug')
-
cc = meson.get_compiler('c')
config_h = configuration_data()
@@ -41,8 +37,6 @@ config_h = configuration_data()
set_defines = [
# package
['PACKAGE', meson.project_name()],
- ['PACKAGE_BUGREPORT', 'http://bugzilla.gnome.org/enter_bug.cgi?product=' + meson.project_name()],
- ['PACKAGE_URL', 'https://wiki.gnome.org/Apps/EyeOfGnome'],
['VERSION', eog_version],
# i18n
['GETTEXT_PACKAGE', meson.project_name()]
@@ -70,7 +64,7 @@ config_h.set('HAVE_STRPTIME', cc.has_function('strptime'))
common_flags = ['-DHAVE_CONFIG_H']
compiler_flags = []
-if eog_debug
+if get_option('buildtype').contains('debug')
test_cflags = [
'-Werror=format=2',
'-Werror=implicit-function-declaration',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]