build.ck 770 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*++
  2. Copyright (c) 2013 Minoca Corp. All Rights Reserved
  3. Module Name:
  4. System Profiler
  5. Abstract:
  6. This library contains the System Profiler, which lends insight into the
  7. real-time resource usage of the system.
  8. Author:
  9. Chris Stevens 1-Jul-2013
  10. Environment:
  11. Kernel
  12. --*/
  13. function build() {
  14. base_sources = [
  15. "info.c",
  16. "profiler.c"
  17. ];
  18. if ((arch == "armv7") || (arch == "armv6")) {
  19. arch_sources = [
  20. "armv7/archprof.c"
  21. ];
  22. } else if (arch == "x86") {
  23. arch_sources = [
  24. "x86/archprof.c"
  25. ];
  26. }
  27. lib = {
  28. "label": "sp",
  29. "inputs": base_sources + arch_sources,
  30. };
  31. entries = static_library(lib);
  32. return entries;
  33. }
  34. return build();