Replace malloc and friends.
[wincetools.git] / loader / CMakeLists.txt
index 6e5f359..ad8a240 100644 (file)
@@ -3,8 +3,11 @@ cmake_minimum_required(VERSION 2.6.0)
 \r
 include_directories(${CMAKE_CURRENT_SOURCE_DIR})\r
 \r
+add_definitions(-DUSE_LOCKS=1 -DUSE_DL_PREFIX=1 -DDEFAULT_GRANULARITY=2097152 -DDEFAULT_MMAP_THRESHOLD=2097152)\r
+\r
 add_executable(himemce himemce.c\r
   wine.h my_winternl.h compat.c\r
+  dlmalloc.h dlmalloc.c\r
   kernel32_kernel_private.h kernel32_process.c kernel32_module.c\r
   ntdll_error.c ntdll_loader.c ntdll_virtual.c\r
   server_protocol.h server_mapping.c)\r
@@ -24,6 +27,7 @@ add_executable(himemce-pre himemce-pre.c
   himemce-map.h himemce-map.c\r
   himemce-map-provider.c\r
   wine.h my_winternl.h compat.c\r
+  dlmalloc.h dlmalloc.c\r
   kernel32_kernel_private.h kernel32_process.c kernel32_module.c\r
   ntdll_error.c ntdll_loader.c ntdll_virtual.c\r
   server_protocol.h server_mapping.c)\r