feature_config_examples.py 789 B

1234567891011121314151617181920212223242526
  1. import sys
  2. import os
  3. from building import *
  4. cwd = GetCurrentDir()
  5. sys.path.append(os.path.join(cwd, 'tools'))
  6. from build_usrapp import CONFIG_FEATURE_MAP
  7. def setup_all_example_features():
  8. CONFIG_FEATURE_MAP.update({
  9. 'RUST_LOG_COMPONENT': {
  10. 'feature': 'enable-log',
  11. 'dependencies': ['em_component_log'],
  12. 'description': 'Enable Rust logging component integration'
  13. },
  14. })
  15. print("All example feature mappings have been configured!")
  16. if __name__ == "__main__":
  17. setup_all_example_features()
  18. print(f"Total configurations: {len(CONFIG_FEATURE_MAP)}")
  19. print("Available configurations:")
  20. for config, info in CONFIG_FEATURE_MAP.items():
  21. print(f" {config}: {info['feature']} - {info['description']}")