build.atpkg 722 Bytes
Newer Older
Drew's avatar
Drew committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
(package
 :name "xcs"

     :tasks {
        :build-lib {
            :tool "atllbuild"
            :source ["src/**.swift"]
            :outputType "static-library"
            :name "Foo"
            :compileOptions ["-enable-testing"]
        }
        :build-tests {
            :tool "atllbuild"
            :source ["test/**.swift"]
            :outputType "executable"
            :name "footests"
            :dependencies ["build-lib"]
            :xctestify true
19
            :xctestStrict true
Drew's avatar
Drew committed
20 21 22 23 24
            :linkWithProduct["Foo.a"]
        }
        :run-tests {
            :tool "xctestrun"
            :testExecutable ".atllbuild/products/footests"
Drew's avatar
Drew committed
25
            :dependencies ["build-tests"]
Drew's avatar
Drew committed
26 27 28
        }
     }
)