aboutsummaryrefslogtreecommitdiff
path: root/examples/multi-standalone-example/sub2/build/build.scala
diff options
context:
space:
mode:
authorJan Christopher Vogt <oss.nsp@cvogt.org>2017-02-13 10:39:40 -0500
committerGitHub <noreply@github.com>2017-02-13 10:39:40 -0500
commite0fb6ec75286c695b7e4c5ed9189714d40f9b672 (patch)
tree3cf36e22305cc1da608667cfef85afcf682cc21a /examples/multi-standalone-example/sub2/build/build.scala
parent0a295c21d3379117e661fdbf586ecb6222c3602b (diff)
parentd1cbc1efffd5c2a6511f1ccca43ccfb37a7f1af8 (diff)
downloadcbt-e0fb6ec75286c695b7e4c5ed9189714d40f9b672.tar.gz
cbt-e0fb6ec75286c695b7e4c5ed9189714d40f9b672.tar.bz2
cbt-e0fb6ec75286c695b7e4c5ed9189714d40f9b672.zip
Merge pull request #303 from cvogt/nested-builds
Add support for nested builds and use it to replace cross compilation command which was previously hard-coded
Diffstat (limited to 'examples/multi-standalone-example/sub2/build/build.scala')
-rw-r--r--examples/multi-standalone-example/sub2/build/build.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/multi-standalone-example/sub2/build/build.scala b/examples/multi-standalone-example/sub2/build/build.scala
new file mode 100644
index 0000000..2c39a54
--- /dev/null
+++ b/examples/multi-standalone-example/sub2/build/build.scala
@@ -0,0 +1,10 @@
+import cbt._
+
+class Build(val context: Context) extends SharedCbtBuild{
+ override def dependencies =
+ super.dependencies ++ // don't forget super.dependencies here
+ Seq(
+ // source dependency
+ DirectoryDependency( projectDirectory.getParentFile ++ "/common" )
+ )
+}