# Builds Tcl/Tk packages which depend on 3rd party libraries,
# like SWIG, CMake, openssl or image libraries.

Include "Tools.bawt"
Include "BasicLibs.bawt"
Include "Tcl_Basic.bawt"
Include "Tcl_Python.bawt"

# Setup LibName           ZipFile                        BuildFile              BuildOptions
#Setup   mawt              mawt-0.5.0                  mawt.bawt              NoLinux32-arm Version=0.5.0
Setup   mawt              mawt-0.5.0.7z                  mawt.bawt              NoLinux32-arm
Setup   FTGL              FTGL-2.1.3.7z                  FTGL.bawt              NoDarwin
Setup   tcl3dExtended     tcl3d-1.0.1.7z                 tcl3dExtended.bawt     NoDarwin
Setup   OglInfo           tcl3d-1.0.1.7z                 OglInfo.bawt           NoDarwin

Setup   tkdnd             tkdnd-2.9.5.7z                 tkdnd.bawt
Setup   tkribbon          tkribbon-1.2.7z                tkribbon.bawt

if { [GetTlsVersion] == 1 } {
    Setup   tcltls        tcltls-1.7.23.7z               tcltls.bawt
} else {
    Setup   tcltls        tcltls-2.0b1.7z                tcltls2.bawt
}
Setup   Trf               Trf-2.1.4.7z                   Trf.bawt               NoDarwin NoTcl9

Setup   imgjp2            imgjp2-0.1.1.7z                imgjp2.bawt
Setup   tzint             tzint-1.1.1.7z                 tzint.bawt             NoUniversal

Setup   libgd             libgd-2.3.2.7z                 libgd.bawt
Setup   tclgd             tclgd-1.4.1.7z                 tclgd.bawt             NoUniversal

Setup   tcluvc            tcluvc-0.1.7z                  tcluvc.bawt

Setup   cfitsio           cfitsio-4.1.0.7z               cfitsio.bawt
Setup   fitsTcl           fitsTcl-2.5.1.7z               fitsTcl.bawt
Setup   pawt              pawt-1.2.0.7z                  pawt.bawt

Setup   libffi            libffi-3.4.8.7z                libffi.bawt            NoUniversal
Setup   cffi              cffi-2.0.3.7z                  cffi.bawt              NoUniversal
Setup   Ffidl             Ffidl-0.9.1.7z                 Ffidl.bawt             NoUniversal

# MuPDF (and therefore dependent libraries tclMuPdf and MuPDFWidget)
# are not available with VisualStudio < 2019.
if { ( [UseVisualStudio "primary"] && [GetVisualStudioVersion] < 2019 ) || \
       ! [IsGccCompilerNewer "4.9.2"] } {
    Setup   mupdf         mupdf-1.18.2.7z                mupdf.bawt
    Setup   tclMuPdf      tclMuPdf-2.1.1.7z              tclMuPdf.bawt
} else {
    Setup   mupdf         mupdf-1.26.0.7z                mupdf.bawt
    Setup   tclMuPdf      tclMuPdf-2.5.1.7z              tclMuPdf.bawt
}
Setup   MuPDFWidget       MuPDFWidget-2.4.7z             MuPDFWidget.bawt

Setup   hdc               hdc-0.2.0.1.7z                 hdc.bawt
Setup   gdi               gdi-0.9.9.15.7z                gdi.bawt
Setup   printer           printer-0.9.6.16.7z            printer.bawt

# Tcl programs wrapped as starpacks.
Setup   BawtLogViewer     BawtLogViewer-[GetVersion].7z  BawtLogViewer.bawt
Setup   poApps            poApps-3.2.0.7z                poApps.bawt
Setup   poClipboardViewer poApps-3.2.0.7z                poClipboardViewer.bawt
