Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.06 KB

Cakefile.md

File metadata and controls

51 lines (34 loc) · 1.06 KB

The Cakefile

Your Cakefile defines your dependencies, and some other properties of your generated project.

The import

You need the import:

import Cakefile

Dependencies

dependencies = [
    .github("mxcl/Path.swift" ~> 0.9),
    .git("https://mygit.place/repo" == 2.4)
]

If you need more specific version specifications, this is possible:

let branch = "fix-remote-target-dependency"
var xcodeproj = GitHubPackageSpecification(user: "mxcl", repo: "xcodeproj", constraint: .ref(.branch(branch)))

dependencies.append(xcodeproj)

let foo = PackageSpecification(url: "https://mygit.place/repo", constraint: .ref(.branch("foo")))

dependencies.append(foo)

Options

We provide some options that change the project generation properties:

options.baseModuleName = "Bakeware"

The baseModuleName is the name of the root module in your model.

options.suppressDependencyWarnings = true

This will suppress all warnings in your dependencies, it defaults to true since you have no easy control over them.