openframeworks / openframeworks/openFrameworks
How to exclude source files in Android Studio?
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Hi, I would like to exclude source files in Android Studio without having to delete the files.
I tried to do it in build.gradle but I couldn't figure out how to do it.
Here's what I did.
jni {
source {
srcDirs= appSrcDirs(ofRoot())
includes = srcIncludes(ofRoot())
excludes = srcExcludes(ofRoot())
excludes.add(ofRoot()+"addons/ofxLua/src/bindings/desktop/ofBindings.cpp")
}
But it doesn't work.
I googled and tried everything I could but no luck.
I would appreciate any advice. Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the build.gradle jni source configuration shown in the issue and trace how srcDirs, includes, and excludes are consumed for Android builds. Check the relevant Android Studio and Gradle documentation or project build files to establish the supported exclusion mechanism; done means the procedure and its limitations are clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, cpp
- Domain
- build-system, mobile-dev
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100