aboutsummaryrefslogtreecommitdiff
path: root/extension/deps/SCsub
blob: 6a7a48db13dcf88849d4bc4e7c0c4fcb7e916070 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python

Import("env")

def build_openvic_simulation(env):
    ovsim_env = SConscript("openvic-simulation/SConstruct")
    env.Append(LIBPATH=ovsim_env.openvic_simulation["LIBPATH"])
    env.Prepend(LIBS=ovsim_env.openvic_simulation["LIBS"])
    env.Append(CPPPATH=ovsim_env.openvic_simulation["INCPATH"])
    env.openvic_simulation = ovsim_env.openvic_simulation

def build_gli(env):
    gli_includes = ["gli", "gli/external"]
    env.gli_loader = {}
    env.gli_loader["INCPATH"] = [env.Dir(p) for p in gli_includes]
    env.Append(CPPPATH=env.gli_loader["INCPATH"])

build_openvic_simulation(env)
build_gli(env)