Skip to content

Commit

Permalink
gradle: support changing the location of the assets / libraries (#505)
Browse files Browse the repository at this point in the history
This allows for out-of-tree builds (when combined with `--project-cache-dir` and `--project-cache-dir`).
  • Loading branch information
benoit-pierre authored Aug 7, 2024
1 parent c2e9ebc commit 981e9c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ android {

sourceSets {
main {
assets.srcDirs = [ '../assets' ]
jniLibs.srcDirs = [ '../libs' ]
assets.srcDirs = [ '../assets', assetsPath ]
jniLibs.srcDirs = [ libsPath ]
}
}

Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ projectName=luajit-launcher
versCode=1
versName=1.0
ndkCustomPath=.
assetsPath=../assets
libsPath=../libs

# Compilation features
android.defaults.buildfeatures.aidl=false
Expand Down

0 comments on commit 981e9c8

Please sign in to comment.