forked from Gnucash/gnucash-on-osx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.jhbuildrc-custom
54 lines (42 loc) · 2.63 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
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- mode: python -*-
#Uncomment this if you have a completed build and only want to rebuild
#updated modules instead of everything:
#
#build_policy = "updated-deps"
#Select one of these, or use a different one: Do keep the directories
#separate for stable and unstable as they have different
#dependencies. You can use 2.3.x for svn builds.
prefix = os.path.join(os.environ["HOME"], "gnucash-stable")
#prefix = os.path.join(os.environ["HOME"], "gnucash-unstable")
#Select which modules to build. The only difference is which gnucash
#module (and all of the dependencies, see above) get built. N.B.: If
#you are building with/for OS X 10.5, append "Leopard" to the
#meta-gnucash module name, e.g. meta-gnucash-stable-Leopard."
modules = ["meta-gtk-osx-bootstrap", "meta-gtk-osx-core", "meta-gnucash-stable"]
#modules = ["meta-gtk-osx-bootstrap", "meta-gtk-osx-core", "meta-gnucash-unstable"]
#modules = ["meta-gtk-osx-bootstrap", "meta-gtk-osx-core", "meta-gnucash-git"]
#Setup the build. PPC users will need to replace "i386" with
#"ppc". Don't try to do a universal build, it doesn't work. x86_64 is
#untested. Users on systems later than 10.6 will need to replace both
#instances of "10.5" below with their OS version:
setup_sdk("10.5", "10.5",["i386"])
moduleset = "http://github.com/gnucash/gnucash-on-osx/raw/master/modulesets/gnucash.modules"
#If you wish to enable the mysql backend, uncomment the lines below.
#MySQL requires CMake 2.6.0 or later to build, so the libmysql module
#has a dependency on cmake which will be built by default. If you
#already have CMake installed on the path, add "skip.append("cmake")
#somewhere in this file.
#_gc_module=modules[-1]
#modules[-1]="mysql"
#modules.append(_gc_module)
#module_extra_env["mysql"] = { "CMAKE_INSTALL_PREFIX": prefix }
#append_autogenargs("libdbi-drivers", "--with-mysql --with-mysql-incdir=" + prefix + "/include --with-mysql-libdir=" + prefix + "/lib")
append_autogenargs("libofx", "--with-opensp-includes=" + prefix + "/include/OpenSP --with-opensp-libs=" + prefix + "/lib")
append_autogenargs("scrollkeeper", "--with-xml-catalog=" + os.path.join(prefix, "etc/xml/catalog"))
append_autogenargs("OpenSP", "--enable-shared") #To override the global --disable-shared
append_autogenargs("libdbi-drivers","--with-dbi-incdir=" + prefix + "/include --with-dbi-libdir=" + prefix + "/lib")
append_autogenargs("gnucash-unstable", "--with-dbi-dbd-dir=" + prefix +"/lib/dbd")
append_autogenargs("gnucash-svn", "--with-dbi-dbd-dir=" + prefix +"/lib/dbd")
append_autogenargs("gnucash", "--with-dbi-dbd-dir=" + prefix +"/lib/dbd")
append_autogenargs("libiconv", "--with-libintl-prefix=" + prefix)
module_makecheck["gmp"] = True