# Builds OpenSceneGraph with basic plugin libraries as needed by Tcl3D.

# Setup LibName           ZipFile                           BuildFile               BuildOptions

# Tools needed for compilation of libraries.
Setup CMake               CMake-3.25.2.7z                   CMake.bawt
Setup yasm                yasm-1.3.0.7z                     yasm.bawt

# The following libraries can be compiled on Linux, but for OpenSceneGraph
# we use the libraries installed by the Linux distribution.
# Basic library needed by most other libraries.
Setup ZLib                ZLib-1.2.13.7z                    ZLib.bawt               NoLinux
Setup xz                  xz-5.4.1.7z                       xz.bawt                 NoLinux NoDarwin

# Image libraries needed by OpenSceneGraph.
Setup giflib              giflib-5.2.1.7z                   giflib.bawt             NoLinux
Setup JPEG                JPEG-9.e.7z                       JPEG.bawt               NoLinux
Setup PNG                 PNG-1.6.39.7z                     PNG.bawt                NoLinux
Setup TIFF                TIFF-4.5.0.7z                     TIFF.bawt               NoLinux

Setup freeglut            freeglut-3.2.2.7z                 freeglut.bawt           NoLinux NoDarwin
Setup Freetype            Freetype-2.10.4.7z                Freetype.bawt           NoLinux
Setup SDL                 SDL-2.26.2.7z                     SDL.bawt
Setup ffmpeg              ffmpeg-4.4.4.7z                   ffmpeg.bawt             NoLinux32-arm
Setup openjpeg            openjpeg-2.5.3.7z                 openjpeg.bawt

if { [UseVisualStudio "primary"] && [GetVisualStudioVersion] <= 2010 } {
    Setup jasper          jasper-2.0.14.7z                  jasper.bawt             NoLinux NoDarwin
} else {
    Setup jasper          jasper-2.0.25.7z                  jasper.bawt             NoLinux NoDarwin
}
Setup libressl            libressl-2.9.2.7z                 libressl.bawt

# OpenSceneGraph 3rd party libraries.
if { [IsGccCompilerNewer "13.0.0"] && ! [IsWindows]  } {
    Setup curl            curl-7.88.1.7z                     curl.bawt
} else {
    Setup curl            curl-7.70.0.7z                     curl.bawt
}

# OpenSceneGraph
Setup OpenSceneGraph      OpenSceneGraph-[GetOsgVersion].7z OpenSceneGraph.bawt
Setup OpenSceneGraphData  OpenSceneGraphData-3.4.0.7z       OpenSceneGraphData.bawt
