Assigned
Status Update
Comments
da...@gmail.com <da...@gmail.com> #2
While trying to plug a custom build system using the steps listed in the following page (
-
Not directly matching one of the params listed ("-p:Platform=Foo", "-p:Configuration=Bar") exactly results in an error.
- For example:
- [
] Ninja-generating script must accept a parameter the defines the target Configuration name. Currently accepted examples are: -p:Configuration=Debug, -p:NinjaProject=Teapots, and /DCMAKE_BUILD_TYPE=MinSizeRel Please refer to bugbug 213607318 for more information.https://issuetracker.google.com/213607318
- [
- Because of this using your own generator is painful since I need now support directly options form ninja or cmake (however using CMake's mentioned options also seems to not be accepted)
- For example:
-
The generated command file is NOT a valid batch script, calling it directly fails with the following error:
"{ninja.configure}" ^ "{ninja.path}" ^ configure ^ "-p:Configuration=release" ^ "-p:Platform=arm64-v8a" from <path>\build\android_gradle\simple =release"" was unexpected at this time.
The configuration is the following:
experimentalProperties["ninja.abiFilters"] = listOf("arm64-v8a")
experimentalProperties["ninja.path"] = "arbitrary_file"
experimentalProperties["ninja.configure"] = "command"
experimentalProperties["ninja.arguments"] = listOf(
"\${ndk.moduleMakeFile}",
"configure",
"-p:Configuration=\${ndk.variantName}",
"-p:Platform=\${ndk.abi}"
Any help resolving the issues either by workarounds or ideas would help a lot! Thanks in advance!
mi...@gmail.com <mi...@gmail.com> #3
100 %
Description
If you are creating a new Android Gradle Plugin Ninja build script, this is the place to discuss and log small issues.
For larger issues, please open Android Studio and click Help/Submit Feedback. Be sure to reference 'Custom C/C++ Build Systems' to help direct the bug.
Alternatively, you can create a bug with this link , but it will have less diagnostic information.