[gnome-documents] build: Remove unused defines



commit bf131fd13ee2d5f77c0010b743b2fbc2dccc0e71
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Fri Nov 17 17:22:51 2017 +0100

    build: Remove unused defines
    
    meson generates the config.h file with multiple defines to be used
    as compile-time options, in the same way as autotools does. However,
    some of them are not used.
    
    This patch removes those unused defines.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787013

 meson.build |   46 ----------------------------------------------
 1 files changed, 0 insertions(+), 46 deletions(-)
---
diff --git a/meson.build b/meson.build
index 55b52c3..39d63a9 100644
--- a/meson.build
+++ b/meson.build
@@ -33,14 +33,8 @@ config_h = configuration_data()
 # defines
 set_defines = [
   # package
-  ['PACKAGE', meson.project_name()],
-  ['PACKAGE_BUGREPORT', 'http://bugzilla.gnome.org/enter_bug.cgi?product=' + meson.project_name()],
   ['PACKAGE_NAME', meson.project_name()],
-  ['PACKAGE_STRING', '@0@ @1@'.format(meson.project_name(), documents_version)],
-  ['PACKAGE_TARNAME', meson.project_name()],
-  ['PACKAGE_URL', 'https://wiki.gnome.org/Apps/Documents'],
   ['PACKAGE_VERSION', documents_version],
-  ['VERSION', documents_version],
   # i18n
   ['GETTEXT_PACKAGE', meson.project_name()]
 ]
@@ -49,46 +43,6 @@ foreach define: set_defines
   config_h.set_quoted(define[0], define[1])
 endforeach
 
-# debug options
-config_h.set('NDEBUG', not documents_debug)
-
-# headers
-check_headers = [
-  ['HAVE_DLFCN_H', 'dlfcn.h'],
-  ['HAVE_INTTYPES_H', 'inttypes.h'],
-  ['HAVE_MEMORY_H', 'memory.h'],
-  ['HAVE_STDINT_H', 'stdint.h'],
-  ['HAVE_STDLIB_H', 'stdlib.h'],
-  ['HAVE_STRINGS_H', 'strings.h'],
-  ['HAVE_STRING_H', 'string.h'],
-  ['HAVE_SYS_STAT_H', 'sys/stat.h'],
-  ['HAVE_SYS_TYPES_H', 'sys/types.h'],
-  ['HAVE_UNISTD_H', 'unistd.h']
-]
-
-foreach header: check_headers
-  config_h.set(header[0], cc.has_header(header[1]))
-endforeach
-
-# functions
-check_functions = [
-  # i18n
-  ['HAVE_DCGETTEXT', 'dcgettext'],
-  ['HAVE_GETTEXT', 'gettext'],
-  ['HAVE_ICONV', 'iconv']
-]
-
-if host_machine.system().contains('darwin')
-  check_functions += [
-    ['HAVE_CFLOCALECOPYCURRENT', 'CFLocaleCopyCurrent'],
-    ['HAVE_CFPREFERENCESCOPYAPPVALUE', 'CFPreferencesCopyAppValue']
-  ]
-endif
-
-foreach func: check_functions
-  config_h.set(func[0], cc.has_function(func[1]))
-endforeach
-
 # compiler flags
 add_project_arguments('-DHAVE_CONFIG_H', language: 'c')
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]