-
-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Android] Allow project to specify Axmol engine root path (#2361)
* Use System.properties.AX_ROOT to store engine path Allow Android builds to specify Axmol engine path * If axmol folder exists in the root of the project folder, then use that for the engine path
- Loading branch information
Showing
2 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
import java.nio.file.Paths | ||
|
||
def folder = new File("${settingsDir}/../axmol") | ||
if (folder.exists()) { | ||
System.setProperty("AX_ROOT", folder.path) | ||
} else { | ||
System.setProperty("AX_ROOT", "${System.env.AX_ROOT}") | ||
} | ||
|
||
include ':libaxmol' | ||
project(':libaxmol').projectDir = new File(Paths.get("${System.env.AX_ROOT}/core/platform/android/libaxmol").toUri()) | ||
project(':libaxmol').projectDir = new File(Paths.get("${System.properties.AX_ROOT}/core/platform/android/libaxmol").toUri()) | ||
include ':Dummy' | ||
project(':Dummy').projectDir = new File(settingsDir, 'app') | ||
rootProject.name = "Dummy" |