#
# SConstruct
# GDL2FAP
# By Rossana Baptista Queiroz
#


# ------------------------------------------------------------------------------
#  The "base" building environment
#  This is used as a template to create the more specific building environments
#  that are actually used to build something.
# ------------------------------------------------------------------------------

# Inherit the environment from, well, from the environment.
# TODO: I suppose that's not the best way to create a 'SConstruct'. But for a
#       rootless GoboLinux user (with installed libraries in his own $HOME),
#       this simplifies the things quite a lot.
import os
envBase = Environment (ENV = os.environ,
                       CPPPATH = ["#/include", "#/../EyesMotionModel/include"],
                       LIBPATH = ["#/lib", "$HOME/System/Links/Libraries",
                                  "#/../EyesMotionModel/lib"]
)


# ------------------------------------------------------------------------------
#  The tests building environment
#  This is one is used to build the Diluculum unit tests.
# ------------------------------------------------------------------------------
envGDL = envBase.Copy (LIBS = [ "GDL2FAP", "Diluculum", "lua", "dl", "EyesMotionModel" ])
envLib = envBase.Copy ()

# ------------------------------------------------------------------------------
#  The build targets
#  The things that are actually built.
# ------------------------------------------------------------------------------



theStaticLib = envLib.Library ("lib/GDL2FAP", [ "src/GDL2FAP.cpp",
                                                "src/Structures.cpp",
                                                "src/Eyebrows.cpp",
                                                "src/Eyelids.cpp",
                                                "src/Eyeballs.cpp",
                                                "src/Head.cpp",
                                                "src/FAPFrames.cpp",
                                                "src/Storyboard.cpp"
                                              ])

envGDL.Program ("testGDLParser", [ "src/testGDLParser.cpp"] )
