[gnome-documents/wip/inigomartinez/meson: 6/6] build: Remove unused defines



commit 18d5bcc9a704ccff40202f1dde338fc576bd0f05
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.

 meson.build |   46 ----------------------------------------------
 1 files changed, 0 insertions(+), 46 deletions(-)
---
diff --git a/meson.build b/meson.build
index 4c46929..1f44272 100644
--- a/meson.build
+++ b/meson.build
@@ -32,14 +32,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()]
 ]
@@ -48,46 +42,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]