Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lacasseio/sample-compile-flags-per-source-file
Demonstrate how to specify compile flags per-source files.
https://github.com/lacasseio/sample-compile-flags-per-source-file
Last synced: about 1 month ago
JSON representation
Demonstrate how to specify compile flags per-source files.
- Host: GitHub
- URL: https://github.com/lacasseio/sample-compile-flags-per-source-file
- Owner: lacasseio
- Created: 2023-12-20T11:32:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-29T19:59:20.000Z (4 months ago)
- Last Synced: 2024-10-12T11:32:49.203Z (2 months ago)
- Language: Java
- Size: 88.9 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The repository demonstrate how to specify compiler flags for individual files (or group of files).
Gradle core native compile task doesn't allow specifying compile flags for each individual files.
The solution is to "clone" the compile flag and split the files that we want to specify compile flags to each compile tasks.The `compileFlags` extensions allow specifying compile flags per `File` spec.
We can add more helper method to match any common use cases.See `app/build.gradle`.