View | Details | Raw Unified | Return to bug 2637
Collapse All | Expand All

(-)a/src/config-store/wscript (+11 lines)
 Lines 1-6    Link Here 
1
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
1
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
2
3
import wutils
3
import wutils
4
import sys
5
import subprocess
4
from waflib import Options
6
from waflib import Options
5
7
6
# Bug 2936 gcc version issue for GTK+ and -Wparentheses
8
# Bug 2936 gcc version issue for GTK+ and -Wparentheses
 Lines 80-85    Link Here 
80
    if bld.env['ENABLE_LIBXML2']:
82
    if bld.env['ENABLE_LIBXML2']:
81
        module.source.append('model/xml-config.cc')
83
        module.source.append('model/xml-config.cc')
82
        module.use.append('LIBXML2')
84
        module.use.append('LIBXML2')
85
        # Bug 2637:  use xcrun utility to find where macOS puts headers
86
        if sys.platform == 'darwin':
87
            find_sdk_path = '/usr/bin/xcrun --show-sdk-path'.split()
88
            try:
89
                p = subprocess.Popen(find_sdk_path, stdout=subprocess.PIPE)
90
                xcrun_output = p.stdout.read().strip()
91
                module.includes = xcrun_output + '/usr/include/libxml2'
92
            except OSError:
93
                pass
83
94
84
    if bld.env['ENABLE_EXAMPLES']:
95
    if bld.env['ENABLE_EXAMPLES']:
85
        bld.recurse('examples')
96
        bld.recurse('examples')

Return to bug 2637