build.ck 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*++
  2. Copyright (c) 2012 Minoca Corp.
  3. This file is licensed under the terms of the GNU General Public License
  4. version 3. Alternative licensing terms are available. Contact
  5. info@minocacorp.com for details. See the LICENSE file at the root of this
  6. project for complete licensing information.
  7. Module Name:
  8. C Library Test
  9. Abstract:
  10. This program tests the independent portions of the C library.
  11. Author:
  12. Evan Green 9-Jul-2013
  13. Environment:
  14. Test
  15. --*/
  16. from menv import application;
  17. function build() {
  18. var buildApp;
  19. var buildLibs;
  20. var config;
  21. var entries;
  22. var includes;
  23. var sources;
  24. sources = [
  25. "bsrchtst.c",
  26. "getoptst.c",
  27. "mathtst.c",
  28. "mathftst.c",
  29. "qsorttst.c",
  30. "regextst.c",
  31. "testc.c"
  32. ];
  33. buildLibs = [
  34. "apps/libc/dynamic:build_libc",
  35. ];
  36. includes = [
  37. "$S/apps/libc/include"
  38. ];
  39. config = {
  40. "CFLAGS": ["-ffreestanding"]
  41. };
  42. buildApp = {
  43. "label": "build_testc",
  44. "output": "testc",
  45. "inputs": sources + buildLibs,
  46. "includes": includes,
  47. "build": true,
  48. "prefix": "build",
  49. "sources_config": config
  50. };
  51. entries = application(buildApp);
  52. return entries;
  53. }