build.ck 858 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*++
  2. Copyright (c) 2014 Minoca Corp. All Rights Reserved
  3. Module Name:
  4. UEFI Runtime Library
  5. Abstract:
  6. This file is responsible for building the core UEFI Runtime support,
  7. which is compiled into most platform runtime images.
  8. Author:
  9. Evan Green 18-Mar-2014
  10. Environment:
  11. Firmware
  12. --*/
  13. function build() {
  14. sources = [
  15. "//uefi/core:crc32.o",
  16. "//uefi/core:div.o",
  17. "init.c",
  18. "time.c",
  19. "//uefi/core:util.o",
  20. "var.c"
  21. ];
  22. includes = [
  23. "$//uefi/include",
  24. "$//uefi/core"
  25. ];
  26. sources_config = {
  27. "CFLAGS": ["-fshort-wchar"],
  28. };
  29. lib = {
  30. "label": "rtlib",
  31. "inputs": sources,
  32. "sources_config": sources_config,
  33. "includes": includes
  34. };
  35. entries = static_library(lib);
  36. return entries;
  37. }
  38. return build();