Replace malloc and friends.
[wincetools.git] / loader / CMakeLists.txt
index f907918..ad8a240 100644 (file)
@@ -1,17 +1,45 @@
-project(himemce)
-cmake_minimum_required(VERSION 2.6.0)
-
-#add_executable(kloader loader.h compat.c kloader.c
-#  my_winternl.h 
-#  kernel32_kernel_private.h kernel32_module.c kernel32_process.c
-#  ntdll_error.c ntdll_loader.c ntdll_virtual.c
-#  server_protocol.h server_mapping.c)
-
-add_executable(himemce himemce.c)
-
-add_executable(himemce-real himemce-real.cpp)
-SET_TARGET_PROPERTIES(himemce-real PROPERTIES LINK_FLAGS " /FIXED:NO")
-
-include_directories(${CMAKE_CURRENT_SOURCE_DIR})
-install(TARGETS himemce DESTINATION bin)
-install(TARGETS himemce-real DESTINATION bin)
+project(himemce)\r
+cmake_minimum_required(VERSION 2.6.0)\r
+\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
+install(TARGETS himemce DESTINATION bin)\r
+\r
+add_executable(himemce-real himemce-real.cpp)\r
+SET_TARGET_PROPERTIES(himemce-real PROPERTIES LINK_FLAGS " /FIXED:NO")\r
+# FIXME: For now...\r
+#SET_TARGET_PROPERTIES(himemce-real PROPERTIES LINK_FLAGS " /FILEALIGN:4096")\r
+install(TARGETS himemce-real DESTINATION bin)\r
+\r
+add_executable(himemce-tool himemce-tool.c\r
+  himemce-map.h himemce-map.c)\r
+install(TARGETS himemce-tool DESTINATION bin)\r
+\r
+add_executable(himemce-pre himemce-pre.c\r
+  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
+install(TARGETS himemce-pre DESTINATION bin)\r
+\r
+\r
+# Copyright 2010 g10 Code GmbH\r
+#\r
+# This file is free software; as a special exception the author gives\r
+# unlimited permission to copy and/or distribute it, with or without\r
+# modifications, as long as this notice is preserved.\r
+#\r
+# This file is distributed in the hope that it will be useful, but\r
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the\r
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r