Conditional compilation of library can be done using following steps:
1. Define the uses flag as below:
env.AddUsesFlags('USES_XXXX')
2. Use the uses flag to conditionally compile a library as follows:
if ' USES_XXXX ' in env:
env.AddLibrary (list of build tags, lib name, sources)
Example:
if 'USES_BSACDEC' in env:
env.AddLibrary(['HAP_AVS_ADSP'], BsacDecoderLib, sources)
Secondly, there is also an option '–f' available with build.py. Can use this option to add the required uses flag.
Eg:
python build.py –f CUSTOM_FLAG
The build compilation has to be under this flag as follows in the respective scons file:
if ' CUSTOM_FLAG' in env:
env.AddLibrary (list of build tags, lib name, sources)
It appears that you've highlighted a topic related to forums and frequently asked questions (FAQs) about the conditional compilation of a library using "Uses" flags. If you have specific questions or if there's more information you'd like to discuss regarding this topic, please provide additional details, and I'll do my best to assist you. https://ehsaas8171bisp.com/