appframe.scons 477 B

1234567891011121314151617181920212223242526
  1. Import("env")
  2. env.Append(
  3. CPPPATH=[
  4. "#/lib/app-scened-template",
  5. "#/lib/callback-connector",
  6. ],
  7. )
  8. libenv = env.Clone(FW_LIB_NAME="appframe")
  9. libenv.ApplyLibFlags()
  10. sources = []
  11. recurse_dirs = [
  12. "app-scened-template",
  13. "callback-connector",
  14. ]
  15. for recurse_dir in recurse_dirs:
  16. sources += libenv.GlobRecursive("*.c*", recurse_dir)
  17. lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
  18. libenv.Install("${LIB_DIST_DIR}", lib)
  19. Return("lib")