build.atpkg 2.05 KB
Newer Older
Drew's avatar
Drew committed
1 2
(package
  :name "FISA"
Drew's avatar
Drew committed
3
  :version "2.0"
Drew's avatar
Drew committed
4 5 6 7

  :external-packages [
    {
      :url "https://code.sealedabstract.com/drewcrawford/Caroline.git"
Drew's avatar
Drew committed
8
      :version [">=1.2"]
Drew's avatar
Drew committed
9
      :if-including ["test"]
Drew's avatar
Drew committed
10 11 12 13 14 15 16
    }
    {
      :url "https://code.sealedabstract.com/drewcrawford/pianissimo.git"
      :version [">= 0.1"]
    }
    {
      :url "https://code.sealedabstract.com/drewcrawford/NaOH.git"
Drew's avatar
Drew committed
17
      :version [">=1.5"]
Drew's avatar
Drew committed
18
    }
Drew's avatar
Drew committed
19 20
    {
      :url "https://code.sealedabstract.com/drewcrawford/CLIKit.git"
Drew's avatar
Drew committed
21
      :version [">=2.0"]
Drew's avatar
Drew committed
22
    }
Drew's avatar
Drew committed
23 24 25 26 27 28 29 30 31 32 33
  ]

  :tasks {
    :kit {
      :tool "atllbuild"
      :sources ["FISAKit/**.swift"]
      :name "FISAKit"
      :output-type "static-library"
      :publish-product true
      :dependencies ["pianissimo.default" "NaOH.default"]
      :link-with-product ["pianissimo.a" "NaOH.a"]
Drew's avatar
Drew committed
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
      :use-overlays ["NaOH.link"]
    }

    :gen-tests {
        :tool "shell"
        :script "caroline-static-tool --core ${collect_sources:kit-tests} > FISAKitTests/main.swift"
    }

    :kit-tests {
      :tool "atllbuild"
      :sources ["FISAKitTests/**.swift"]
      :name "FISAKitTests"
      :output-type "executable"
      :publish-product true
      :dependencies ["pianissimo.default" "NaOH.default" "Caroline.core" "kit" "gen-tests"]
      :link-with-product ["pianissimo.a" "NaOH.a" "FISAKit.a" "CarolineCore.a"]
      :use-overlays ["NaOH.link"]
Drew's avatar
Drew committed
51 52 53 54 55 56 57 58 59 60 61
    }

    :default {
      :tool "atllbuild"
      :sources ["FISA/**.swift"]
      :name "fisa"
      :output-type "executable"
      :publish-product true
      :dependencies ["kit" "CLIKit.default"]
      :link-with-product ["FISAKit.a" "CLIKit.a" "NaOH.a" "pianissimo.a"]
      :use-overlays ["NaOH.link"]
Drew's avatar
Drew committed
62 63
    }

Drew's avatar
Drew committed
64 65 66 67 68 69 70 71 72 73 74 75 76 77
    :tool-atbin {
      :tool "packageatbin"
      :name "fisa"
      :platforms ["all"]
      :atllbuild-task "default"
    }

    :tool-homebrew {
      :tool "package-homebrew.attool"
      :name "fisa"
      :url "FIXME"
      :dependencies ["tool-atbin"]
    }

Drew's avatar
Drew committed
78 79 80 81 82 83
    :check {
      :tool "shell"
      :script "bin/FISAKitTests && bin/fisa version"
      :dependencies ["default" "kit-tests"]
    }

Drew's avatar
Drew committed
84 85
  }
)