-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
62 lines (52 loc) · 1.48 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
/**
* Core Modules
*/
lazy val core = crossProject(JVMPlatform, JSPlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Pure)
.in(file("modules/core"))
.settings(Settings.common: _*)
.jvmSettings(libraryDependencies ++= Dependencies.core)
lazy val script = project
.in(file("modules/script"))
.dependsOn(core.jvm, gdx_graphics)
.settings(Settings.common: _*)
/**
* Gdx backend
*/
lazy val gdx_graphics = project
.in(file("modules/backends/gdx/gdx-graphics"))
.dependsOn(core.jvm)
.settings(Settings.common: _*)
.settings(libraryDependencies ++= Dependencies.gdx)
lazy val gdx_app_desktop = project
.in(file("modules/backends/gdx/gdx-app-desktop"))
.dependsOn(gdx_graphics)
.settings(Settings.common: _*)
.settings(libraryDependencies ++= Dependencies.gdxAppDesktop)
/**
* Audio backends
*/
lazy val portaudio = project
.in(file("modules/backends/audio/portaudio"))
.dependsOn(core.jvm)
.settings(Settings.common: _*)
lazy val jackaudio = project
.in(file("modules/backends/audio/jackaudio"))
.dependsOn(core.jvm)
.settings(Settings.common: _*)
/**
* Addon Modules
*/
lazy val trackpad = project
.in(file("modules/addons/apple-trackpad"))
.dependsOn(core.jvm)
.settings(Settings.common: _*)
/**
* Examples
*/
lazy val examples = project
.in(file("examples"))
.dependsOn(gdx_app_desktop, portaudio, jackaudio, script, trackpad)
.settings(Settings.app: _*)