Skip to content

Commit

Permalink
Cocoa config for getpath
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Jun 6, 2016
1 parent 107f766 commit a3f84df
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ bin/
docs/
lib/
*.lst
.DS_store
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ matrix:
os: osx
- d: dmd-2.069.2
os: osx
allow_failures:
- os: osx

script:
- dub build --compiler=${DC}
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ Get path of given type, verify it exists or create if it does not.

dub run :getpath -- --verify --create templates

Use Cocoa instead of Carbon on OSX:

dub run :getpath --config=cocoa --compiler=ldc2 -- --create music

## Use cases

Some code snippets showing how standardpaths library is supposed to be used.
Expand Down
15 changes: 14 additions & 1 deletion examples/getpath/dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,18 @@
"targetPath" : "bin",
"targetType" : "executable",
"targetName" : "getpath",
"dependencies" : {"standardpaths":"*"}
"dependencies" : {"standardpaths":"*"},

"configurations" : [
{
"name" : "default"
},
{
"name" : "cocoa",
"lflags-osx" : ["-framework", "Foundation"],
"subConfigurations" : {
"standardpaths" : "cocoa"
}
}
]
}

0 comments on commit a3f84df

Please sign in to comment.