DefineOptions.cmake 2.1 KB

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