[geary/geary-0.13] Merge branch 'wip/update-libunwind-build-option' into 'master'



commit ae4e2b0f4b3a686e473a5a7ce5ca6d8cd290693e
Author: Michael Gratton <mike vee net>
Date:   Thu Feb 21 01:14:54 2019 +0000

    Merge branch 'wip/update-libunwind-build-option' into 'master'
    
    Flip the sense of the libunwind build option
    
    See merge request GNOME/geary!127
    
    (cherry picked from commit b0133b611a137fcc345fa9659cd65e4bc20f6b32)
    
    ee867393 Flip the sense of the libunwind build option

 meson.build       | 8 ++++++--
 meson_options.txt | 2 +-
 2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 2917804f..a7147e78 100644
--- a/meson.build
+++ b/meson.build
@@ -70,8 +70,12 @@ libmath = cc.find_library('m')
 libnotify = dependency('libnotify', version: '>= 0.7.5')
 libsecret = dependency('libsecret-1', version: '>= 0.11')
 libsoup = dependency('libsoup-2.4', version: '>= 2.48')
-libunwind_dep = dependency('libunwind', version: '>= 1.1', required: get_option('libunwind'))
-libunwind_generic_dep = dependency('libunwind-generic', version: '>= 1.1', required: get_option('libunwind'))
+libunwind_dep = dependency(
+  'libunwind', version: '>= 1.1', required: not get_option('libunwind_optional')
+)
+libunwind_generic_dep = dependency(
+  'libunwind-generic', version: '>= 1.1', required: not get_option('libunwind_optional')
+)
 libxml = dependency('libxml-2.0', version: '>= 2.7.8')
 posix = valac.find_library('posix')
 webkit2gtk_web_extension = dependency('webkit2gtk-web-extension-4.0', version: '>=' + target_webkit)
diff --git a/meson_options.txt b/meson_options.txt
index 63bbce7e..2bd04e4a 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -4,4 +4,4 @@ option('poodle', type: 'boolean', value: true, description: 'Whether to apply th
 option('ref_tracking', type: 'boolean', value: false, description: 'Whether to use explicit reference 
tracking.')
 option('iso_639_xml', type: 'string', value: '', description: 'Full path to the ISO 639 XML file.')
 option('iso_3166_xml', type: 'string', value: '', description: 'Full path to the ISO 3166 XML file.')
-option('libunwind', type: 'boolean', value: true, description: 'Whether to depend on libunwind.')
+option('libunwind_optional', type: 'boolean', value: false, description: 'Determines if libunwind is 
required.')


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