DefineOptions.cmake 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. option(HAVE_LOCKS "Build with POSIX locking mechanisms" ON)
  2. option(WITH_EXAMPLES "Build with examples" OFF)
  3. option(WITH_MEMORY_SPACE_AWARENESS "Build with memory space awareness" OFF)
  4. option(WITH_KNOBS "Build with knobs support" OFF)
  5. option(WITH_STATIC_LIB "Build a static library" OFF)
  6. option(WITH_SHARED_LIB "Build a shared library" OFF)
  7. option(WITH_DOC "Build with documentation" OFF)
  8. set(NUM_HEAPS 1)
  9. set(WITH_COALESCING "never" "Build with coalescing support")
  10. set(WITH_SPLITTING "never" "Build with splitting support")
  11. set(BLOCKS_ORGANIZATION "sll" "Blocks organized in singly linked lists")
  12. option(WITH_OWNERSHIP "Build with ownership information in blocks" OFF)
  13. option(P2012 "Build for P2012 runtime" OFF)
  14. option(LINUXTEST "Build a case for Linux" ON)
  15. if (P2012)
  16. set(HAVE_LOCKS OFF)
  17. set(WITH_MEMORY_SPACE_AWARENESS ON)
  18. set(WITH_STATIC_LIB ON)
  19. set(NUM_HEAPS 0)
  20. set(LINUXTEST OFF)
  21. endif (P2012)
  22. if (LINUXTEST)
  23. set(HAVE_LOCKS ON)
  24. set(WITH_EXAMPLES ON)
  25. set(WITH_COALESCING "variable")
  26. set(MAX_COALESCE_SIZE 60000)
  27. set(WITH_SPLITTING "variable")
  28. set(MIN_SPLITTING_SIZE 300)
  29. set(WITH_SHARED_LIB ON)
  30. set(WITH_DOC ON)
  31. set(BLOCKS_ORGANIZATION "dll")
  32. endif (LINUXTEST)
  33. if(BLOCKS_ORGANIZATION STREQUAL "dll")
  34. set(BLOCKS_IN_DLL ON)
  35. else(BLOCKS_ORGANIZATION STREQUAL "dll")
  36. set(BLOCKS_IN_SLL ON)
  37. endif(BLOCKS_ORGANIZATION STREQUAL "dll")
  38. if(WITH_COALESCING STREQUAL "fixed")
  39. set(WITH_OWNERSHIP ON)
  40. set(COALESCING_FIXED ON)
  41. elseif(WITH_COALESCING STREQUAL "variable")
  42. set(WITH_OWNERSHIP ON)
  43. set(WITH_KNOBS ON)
  44. set(COALESCING_VARIABLE ON)
  45. endif(WITH_COALESCING STREQUAL "fixed")
  46. if(WITH_SPLITTING STREQUAL "fixed")
  47. set(SPLITTING_FIXED ON)
  48. elseif(WITH_SPLITTING STREQUAL "variable")
  49. set(WITH_KNOBS ON)
  50. set(SPLITTING_VARIABLE ON)
  51. endif(WITH_SPLITTING STREQUAL "fixed")