-
Notifications
You must be signed in to change notification settings - Fork 6
/
jhbuildrc-custom
41 lines (31 loc) · 1.94 KB
/
jhbuildrc-custom
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# -*- mode: python -*-
setup_sdk()
if 'PREFIX' in os.environ:
prefix = os.path.join(os.environ['PREFIX'], 'inst')
else:
prefix = os.path.join(os.environ['HOME'], 'gnucash', 'inst')
checkoutroot = os.path.join(os.path.dirname(prefix), 'src')
buildroot = os.path.join(os.path.dirname(prefix), 'build')
moduleset = "https://github.com/gnucash/gnucash-on-osx/raw/master/modulesets/gnucash.modules"
_modules_deps = ['pygments', 'meta-gtk-osx-bootstrap',
'meta-gnucash-dependencies']
_modules_stable = ['pygments', 'meta-gtk-osx-bootstrap',
'meta-gnucash-dependencies', 'gnucash', 'gnucash-docs']
_modules_git = ['pygments', 'meta-gtk-osx-bootstrap',
'meta-gnucash-dependencies','gnucash-git', 'gnucash-docs-git']
#set modules to the _modules variable above corresponding you what you need.
modules = _modules_stable
_pypathenv = {'PYTHON':os.path.join(prefix, 'bin', 'python3')}
append_autogenargs("fontconfig", "--with-default-fonts=/System/Library/Fonts/Supplemental --with-add-fonts=/System/Library/Fonts,/Library/Fonts --with-cache-dir=home")
os.environ['CC_FOR_BUILD'] = os.environ['CC']
os.environ['CPP_FOR_BUILD'] = os.environ['CC']
os.environ['CFLAGS_FOR_BUILD'] = os.environ['CFLAGS']
module_extra_env['pycairo'] = _pypathenv
module_extra_env['pygobject3'] = _pypathenv
module_extra_env['icu'] = {'CXXFLAGS':os.environ['CXXFLAGS'] + ' -std=c++17'}
module_extra_env['boost'] = {'CXXFLAGS':os.environ['CXXFLAGS'] + ' -std=c++17'}
module_extra_env['mariadb-connector'] = {'CFLAGS':os.environ['CFLAGS'] + ' -std=c99'} # -Wno-deprecated-non-prototype'}
module_extra_env['OpenSP'] = {'CXXFLAGS':os.environ['CXXFLAGS'] + ' -std=c++03'}
module_extra_env['libchipcard'] = {'CXXFLAGS':os.environ['CXXFLAGS'] + ' -std=c++03'}
module_cmakeargs['boost'] = '-DCMAKE_CXX_FLAGS="' + os.environ['CXXFLAGS'] + ' -std=c++17"'
module_cmakeargs["mariadb-connector"] = "-DCMAKE_INSTALL_NAME_DIR=" + os.path.join(prefix, 'lib', 'mariadb')