DefineOptions.cmake 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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_FIXED_LISTS "Build with predefined lists of fixed-sized blocks" ON)
  5. option(WITH_KNOBS "Build with knobs support" OFF)
  6. option(WITH_ADAPTIVITY "Build with adaptivity" OFF)
  7. option(WITH_STATIC_LIB "Build a static library" OFF)
  8. option(WITH_SHARED_LIB "Build a shared library" OFF)
  9. option(WITH_DOC "Build with documentation" OFF)
  10. set(NUM_HEAPS 1)
  11. set(WITH_COALESCING "never" "Build with coalescing support")
  12. set(WITH_SPLITTING "never" "Build with splitting support")
  13. set(BLOCKS_ORGANIZATION "sll" "Blocks organized in singly linked lists")
  14. option(WITH_OWNERSHIP "Build with ownership information in blocks" OFF)
  15. option(P2012 "Build for P2012 runtime" OFF)
  16. option(LINUXTEST "Build a case for Linux" ON)
  17. if (P2012)
  18. set(HAVE_LOCKS OFF)
  19. set(WITH_MEMORY_SPACE_AWARENESS ON)
  20. set(WITH_STATIC_LIB ON)
  21. set(NUM_HEAPS 1)
  22. set(LINUXTEST OFF)
  23. set(WITH_FIXED_LISTS OFF)
  24. set(WITH_COALESCING "never")
  25. set(WITH_SPLITTING "never")
  26. set(BLOCKS_ORGANIZATION "sll")
  27. endif (P2012)
  28. if (LINUXTEST)
  29. set(HAVE_LOCKS ON)
  30. set(WITH_EXAMPLES ON)
  31. set(WITH_COALESCING "variable")
  32. set(MAX_COALESCE_SIZE 60000)
  33. set(WITH_SPLITTING "variable")
  34. set(MIN_SPLITTING_SIZE 300)
  35. set(WITH_SHARED_LIB ON)
  36. set(WITH_DOC ON)
  37. set(BLOCKS_ORGANIZATION "dll")
  38. endif (LINUXTEST)
  39. if(BLOCKS_ORGANIZATION STREQUAL "dll")
  40. set(BLOCKS_IN_DLL ON)
  41. else(BLOCKS_ORGANIZATION STREQUAL "dll")
  42. set(BLOCKS_IN_SLL ON)
  43. endif(BLOCKS_ORGANIZATION STREQUAL "dll")
  44. if(WITH_COALESCING STREQUAL "fixed")
  45. set(WITH_OWNERSHIP ON)
  46. set(COALESCING_FIXED ON)
  47. elseif(WITH_COALESCING STREQUAL "variable")
  48. set(WITH_KNOBS ON)
  49. set(WITH_OWNERSHIP ON)
  50. set(COALESCING_VARIABLE ON)
  51. endif(WITH_COALESCING STREQUAL "fixed")
  52. if(WITH_SPLITTING STREQUAL "fixed")
  53. set(SPLITTING_FIXED ON)
  54. elseif(WITH_SPLITTING STREQUAL "variable")
  55. set(WITH_KNOBS ON)
  56. set(SPLITTING_VARIABLE ON)
  57. endif(WITH_SPLITTING STREQUAL "fixed")