build.ck 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*++
  2. Copyright (c) 2015 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. Chalk Library
  9. Abstract:
  10. This library contains the Chalk interpreter, which provides a very
  11. basic programming language used to describe things like setup recipes
  12. and build configurations.
  13. Author:
  14. Evan Green 19-Nov-2015
  15. Environment:
  16. Any
  17. --*/
  18. from menv import staticLibrary;
  19. function build() {
  20. var buildLib;
  21. var entries;
  22. var lib;
  23. var sources;
  24. sources = [
  25. "cflow.c",
  26. "cif.c",
  27. "const.c",
  28. "exec.c",
  29. "expr.c",
  30. "lang.c",
  31. "obj.c",
  32. "util.c"
  33. ];
  34. lib = {
  35. "label": "chalk",
  36. "inputs": sources,
  37. };
  38. buildLib = {
  39. "label": "build_chalk",
  40. "output": "chalk",
  41. "inputs": sources,
  42. "build": true,
  43. "prefix": "build"
  44. };
  45. entries = staticLibrary(lib);
  46. entries += staticLibrary(buildLib);
  47. return entries;
  48. }