build.atpkg 2.17 KB
Newer Older
Drew's avatar
Drew committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
;; Copyright (c) 2016 Anarchy Tools Contributors.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;;   http:;;www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.

Drew's avatar
Drew committed
15 16
(package
    :name "PackageFramework"
Drew's avatar
Drew committed
17
    :version "0.1"
Drew's avatar
Drew committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
    :external-packages [
    {
        :url "https://github.com/AnarchyTools/atfoundation.git"
        :branch "master"
    }]

    :tasks {
        :default {
            :tool "atllbuild"
            :sources ["src/**.swift"]
            :output-type "executable"
            :name "package_framework"
            :dependencies ["atfoundation.atfoundation"]
            :link-with ["atfoundation.a"]
            :compile-options ["-g"]
            :executable-name "package-framework"
        }

Drew's avatar
Drew committed
36 37 38 39 40 41 42 43 44 45 46
        :atbin {
            :tool "packageatbin"
            :name "package_framework"
            :atllbuild-task "default"
            :platforms ["all"]
        }

        :package {
            :tool "package-homebrew.attool"
            :name "package_framework"
            :github-project "AnarchyTools/package-framework"
Drew's avatar
Drew committed
47
            :dependencies ["atbin"]
Drew's avatar
Drew committed
48 49
        }

Drew's avatar
Drew committed
50 51
        :osxcheck {
            :tool "shell"
Drew's avatar
Drew committed
52
            :script "cd tests/osx && atbuild --toolchain xcode check"
Drew's avatar
Drew committed
53 54 55 56
            :dependencies ["default"]
        }
        :ioscheck {
            :tool "shell"
Drew's avatar
Drew committed
57
            :script "cd tests/ios && atbuild --toolchain xcode --platform ios check"
Drew's avatar
Drew committed
58
            :dependencies ["default"]
Drew's avatar
Drew committed
59
        }
Drew's avatar
Drew committed
60
        :check {
Drew's avatar
Drew committed
61
            :dependencies ["default" "osxcheck" "ioscheck"]
Drew's avatar
Drew committed
62 63
            :tool "nop"
        }
Drew's avatar
Drew committed
64 65 66 67 68 69 70

        ;;also run on hardware
        :check-with-device-ci {
            :tool "shell"
            :script "cd tests/ios && atbuild --toolchain xcode --platform ios device-ci"
            :dependencies ["check"]
        }
Drew's avatar
Drew committed
71 72
    }
)