Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / games / voxels / build.gradle.kts
build.gradle.kts36 lines · 1.1 KiBRaw
| 1 | plugins { |
| 2 | id("common-conventions-app") |
| 3 | id("common-conventions-preview-metadata") |
| 4 | // Preview-metadata for Layoutlib-renderable Compose ONLY (menus/inventory/ |
| 5 | // settings overlays in src/screenshotTest). The game screen is a Vulkan |
| 6 | // SurfaceView driven by the Rust engine below: Layoutlib can render the |
| 7 | // Compose chrome but never the world behind it, so no game render is |
| 8 | // previewed or faked — see MetadataPreviews.kt for the documented exception. |
| 9 | } |
| 10 | |
| 11 | launcherIcon { |
| 12 | symbol = "view_in_ar" |
| 13 | } |
| 14 | |
| 15 | android { |
| 16 | defaultConfig { |
| 17 | applicationId = "com.vayunmathur.games.voxels" |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | androidComponents { |
| 22 | onVariants { variant -> |
| 23 | variant.sources.jniLibs?.addStaticSourceDirectory( |
| 24 | layout.buildDirectory.dir("rustJniLibs").get().asFile.absolutePath |
| 25 | ) |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | // Full Rust + Vulkan engine (ash) with Matcha texture atlas (16 textures → 64x64) |
| 30 | rustNativeLib("voxels_engine", "voxels", shaders = listOf("*.vert", "*.frag")) |
| 31 | |
| 32 | dependencies { |
| 33 | implementation(project(":sdk:games")) |
| 34 | implementation(project(":library:network")) |
| 35 | implementation(project(":library:e2ee-p2p")) |
| 36 | } |