From: Peter Hutterer Date: Thu, 17 Oct 2019 03:39:23 +0000 (+1000) Subject: meson: move HTTP doc url generation to here X-Git-Tag: 1.14.901~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61f81ec93e7ddfae79ce3d1e8069bfce97c6d6aa;p=platform%2Fupstream%2Flibinput.git meson: move HTTP doc url generation to here Signed-off-by: Peter Hutterer --- diff --git a/meson.build b/meson.build index 38ac8381..3d2e8919 100644 --- a/meson.build +++ b/meson.build @@ -50,6 +50,15 @@ add_project_arguments(cppflags, language : 'cpp') # config.h config_h = configuration_data() + +doc_url_base = 'https://wayland.freedesktop.org/libinput/doc' +if libinput_version[2].to_int() >= 90 + doc_url = '@0@/latest'.format(doc_url_base) +else + doc_url = '@0@/@1@'.format(doc_url_base, meson.project_version()) +endif +config_h.set_quoted('HTTP_DOC_LINK', doc_url) + config_h.set('_GNU_SOURCE', '1') if get_option('buildtype') == 'debug' or get_option('buildtype') == 'debugoptimized' config_h.set_quoted('MESON_BUILD_ROOT', meson.current_build_dir()) diff --git a/src/libinput-private.h b/src/libinput-private.h index abb47894..1a7900fd 100644 --- a/src/libinput-private.h +++ b/src/libinput-private.h @@ -41,12 +41,6 @@ #include "libinput-util.h" #include "libinput-version.h" -#if LIBINPUT_VERSION_MICRO >= 90 -#define HTTP_DOC_LINK "https://wayland.freedesktop.org/libinput/doc/latest/" -#else -#define HTTP_DOC_LINK "https://wayland.freedesktop.org/libinput/doc/" LIBINPUT_VERSION "/" -#endif - struct libinput_source; /* A coordinate pair in device coordinates */