build.ck 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. Crypt Library
  9. Abstract:
  10. This module contains the crypt library, which contains the C library
  11. functions like crypt, encrypt, fcrypt, and setkey.
  12. Author:
  13. Evan Green 6-Mar-2015
  14. Environment:
  15. User
  16. --*/
  17. from menv import sharedLibrary;
  18. function build() {
  19. var dynlibs;
  20. var entries;
  21. var linkConfig;
  22. var so;
  23. var sources;
  24. sources = [
  25. "crypt.c"
  26. ];
  27. dynlibs = [
  28. "apps/libc/dynamic:libc"
  29. ];
  30. linkConfig = {
  31. "LDFLAGS": ["-nostdlib"]
  32. };
  33. so = {
  34. "label": "libcrypt",
  35. "inputs": sources + dynlibs,
  36. "config": linkConfig,
  37. "major_version": "1"
  38. };
  39. entries = sharedLibrary(so);
  40. return entries;
  41. }