Skip to content

Commit

Permalink
Fix setting the prefix and call setup_sdk at the beginning, not the end.
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed Oct 31, 2022
1 parent 47ab30b commit 3369a40
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions jhbuildrc-custom
@@ -1,8 +1,15 @@
# -*- mode: python -*-

prefix = os.environ['PREFIX']
checkoutroot = os.path.join(os.environ['HOME'], 'gnucash', 'src')
buildroot = os.path.join(os.environ['HOME'], 'gnucash', 'build')
setup_sdk()

if 'PREFIX' in os.environ:
prefix = os.environ['PREFIX']
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')
print("Building in %s", buildroot)
moduleset = "https://github.com/gnucash/gnucash-on-osx/raw/master/modulesets/gnucash.modules"

_modules_deps = ['pygments', 'meta-gtk-osx-bootstrap', 'meta-gtk-osx-gtk3',
Expand Down Expand Up @@ -35,4 +42,3 @@ os.environ['CPP_FOR_BUILD'] = os.environ['CC']
os.environ['CFLAGS_FOR_BUILD'] = os.environ['CFLAGS']
module_cmakeargs['boost'] = '-DCMAKE_CXX_FLAGS="' + os.environ['CXXFLAGS'] + ' -std=c++17"'

setup_sdk()

0 comments on commit 3369a40

Please sign in to comment.