123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- option(HAVE_LOCKS "Build with POSIX locking mechanisms" ON)
- option(WITH_EXAMPLES "Build with examples" OFF)
- option(WITH_MEMORY_SPACE_AWARENESS "Build with memory space awareness" OFF)
- option(WITH_KNOBS "Build with knobs support" OFF)
- option(WITH_STATIC_LIB "Build a static library" OFF)
- option(WITH_SHARED_LIB "Build a shared library" OFF)
- option(WITH_DOC "Build with documentation" OFF)
- set(NUM_HEAPS 1)
- set(WITH_COALESCING "never" "Build with coalescing support")
- set(WITH_SPLITTING "never" "Build with splitting support")
- set(BLOCKS_ORGANIZATION "sll" "Blocks organized in singly linked lists")
- option(WITH_OWNERSHIP "Build with ownership information in blocks" OFF)
- option(P2012 "Build for P2012 runtime" OFF)
- option(LINUXTEST "Build a case for Linux" ON)
- if (P2012)
- set(HAVE_LOCKS OFF)
- set(WITH_MEMORY_SPACE_AWARENESS ON)
- set(WITH_STATIC_LIB ON)
- set(NUM_HEAPS 0)
- set(LINUXTEST OFF)
- endif (P2012)
- if (LINUXTEST)
- set(HAVE_LOCKS ON)
- set(WITH_EXAMPLES ON)
- set(WITH_COALESCING "variable")
- set(MAX_COALESCE_SIZE 60000)
- set(WITH_SPLITTING "variable")
- set(MIN_SPLITTING_SIZE 300)
- set(WITH_SHARED_LIB ON)
- set(WITH_DOC ON)
- set(BLOCKS_ORGANIZATION "dll")
- endif (LINUXTEST)
- if(BLOCKS_ORGANIZATION STREQUAL "dll")
- set(BLOCKS_IN_DLL ON)
- else(BLOCKS_ORGANIZATION STREQUAL "dll")
- set(BLOCKS_IN_SLL ON)
- endif(BLOCKS_ORGANIZATION STREQUAL "dll")
- if(WITH_COALESCING STREQUAL "fixed")
- set(WITH_OWNERSHIP ON)
- set(COALESCING_FIXED ON)
- elseif(WITH_COALESCING STREQUAL "variable")
- set(WITH_OWNERSHIP ON)
- set(WITH_KNOBS ON)
- set(COALESCING_VARIABLE ON)
- endif(WITH_COALESCING STREQUAL "fixed")
- if(WITH_SPLITTING STREQUAL "fixed")
- set(SPLITTING_FIXED ON)
- elseif(WITH_SPLITTING STREQUAL "variable")
- set(WITH_KNOBS ON)
- set(SPLITTING_VARIABLE ON)
- endif(WITH_SPLITTING STREQUAL "fixed")
|