build.atpkg 2.07 KB
Newer Older
Drew's avatar
Drew committed
1 2 3 4 5 6 7 8 9
(package
 :name "Caroline"
    :tasks {
        :statictool {
            :tool "atllbuild"
            :output-type "executable"
            :name "caroline_static_tool"
            :sources ["caroline-static-tool/**.swift"]
            :publish-product true
10
            :link-options ["-static-stdlib"]
Drew's avatar
Drew committed
11 12 13 14 15 16 17 18 19 20 21 22
        }
        :debug {
            :dependencies ["statictool"]
            :tool "shell"
            :script ".atllbuild/products/caroline_static_tool --core caroline-static-tool-tests/fixtures/SampleTests/foo.swift"
        }
        :core {
            :tool "atllbuild"
            :output-type "static-library"
            :name "CarolineCore"
            :sources ["CarolineCore/**.swift"]
        }
Drew's avatar
Drew committed
23 24 25 26 27 28
        :core-dynamic {
            :tool "atllbuild"
            :output-type "dynamic-library"
            :name "CarolineCore"
            :sources ["CarolineCore/**.swift"]
            :publish-product true
Drew's avatar
Drew committed
29
            :framework true
Drew's avatar
Drew committed
30
        }
31 32 33 34 35 36
        :core-package {
            :tool "packageatbin"
            :name "CarolineCore"
            :atllbuild-task "core-dynamic"
            :platforms ["all"]
        }
Drew's avatar
Drew committed
37
        :core-framework {
38
            :tool "package-framework.attool"
Drew's avatar
Drew committed
39
            :name "CarolineCore"
40
            :info-plist "CarolineCore/Info.plist"
41
            :dependencies ["core-package"]
Drew's avatar
Drew committed
42
        }
Drew's avatar
Drew committed
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62

        :simpletest-gen {
            :tool "shell"
            :script "bin/caroline_static_tool --core tests/SimpleTest/foo.swift > tests/SimpleTest/main.swift"
            :dependencies ["statictool"]
        }
        :simpletest-build {
            :dependencies ["core" "simpletest-gen"]
            :tool "atllbuild"
            :output-type "executable"
            :name "SimpleTest"
            :sources ["tests/SimpleTest/**.swift"]
            :link-with ["CarolineCore.a"]
            :publish-product true
        }
        :simpletest {
            :dependencies ["simpletest-build"]
            :tool "shell"
            :script "bin/SimpleTest"
        }
Drew's avatar
Drew committed
63 64 65 66
        :check {
            :dependencies ["simpletest"]
            :tool "nop"
        }
Drew's avatar
Drew committed
67 68
     }
)