[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 5 Nov 2010 17:12:31 +0000 (17:12 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 5 Nov 2010 17:12:31 +0000 (17:12 +0000)
- Improve win32k, lib{jpeg,png,tiff,xslt} and win32k.

svn path=/branches/cmake-bringup/; revision=49488

dll/3rdparty/libjpeg/CMakeLists.txt
dll/3rdparty/libpng/CMakeLists.txt
dll/3rdparty/libtiff/CMakeLists.txt
dll/3rdparty/libxslt/CMakeLists.txt
dll/3rdparty/mesa32/CMakeLists.txt
subsystems/win32/win32k/CMakeLists.txt

index c5fef2b..1c78830 100644 (file)
@@ -1,10 +1,15 @@
 
-add_definitions(-DWIN32 -D_WINDOWS -D_MBCS -DJPEG_DLL)
-add_definitions(-Dmain=mainptr)
-add_definitions(-D_DLL -D__USE_CRTIMP)
+add_definitions(
+    -DWIN32
+    -D_WINDOWS
+    -D_MBCS
+    -DJPEG_DLL
+    -Dmain=mainptr
+    -D_DLL -D__USE_CRTIMP)
 
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libjpeg)
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
+include_directories(
+    ${REACTOS_SOURCE_DIR}/include/reactos/libs/libjpeg
+    ${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
 
 add_library(libjpeg SHARED
     jaricom.c
index 8a94bc0..65e407b 100644 (file)
@@ -1,9 +1,14 @@
 
-add_definitions(-DWIN32 -DNDEBUG -D_WINDOWS -DPNG_BUILD_DLL)
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libpng)
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
+add_definitions(
+    -DWIN32
+    -DNDEBUG
+    -D_WINDOWS
+    -DPNG_BUILD_DLL
+    -D_DLL -D__USE_CRTIMP)
+
+include_directories(
+    ${REACTOS_SOURCE_DIR}/include/reactos/libs/libpng
+    ${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
 
 add_library(libpng SHARED
     png.c
index 6899435..4b1a86f 100644 (file)
@@ -4,12 +4,12 @@ add_definitions(
     -DNDEBUG
     -DBUILD_LIBTIFF_DLL
     -DDLL_EXPORT
-    -DUSE_WIN32_FILEIO)
+    -DUSE_WIN32_FILEIO
+    -D_DLL -D__USE_CRTIMP)
 
-add_definitions(-D_DLL -D__USE_CRTIMP)
-
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libtiff)
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
+include_directories(
+    ${REACTOS_SOURCE_DIR}/include/reactos/libs/libtiff
+    ${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
 
 add_library(libtiff SHARED
     mkg3states.c
index 68f2775..317b6bd 100644 (file)
@@ -8,9 +8,8 @@ add_definitions(
     -DHAVE_WIN32_THREADS
     -D_REENTRANT
     -D_WINSOCKAPI_
-    -DLIBXML_STATIC)
-
-add_definitions(-D_DLL -D__USE_CRTIMP)
+    -DLIBXML_STATIC
+    -D_DLL -D__USE_CRTIMP)
 
 add_library(libxslt SHARED
     attributes.c
index 61cf259..4ba97c7 100644 (file)
@@ -3,9 +3,8 @@ add_definitions(
     -DUSE_EXTERNAL_DXTN_LIB=1
     -DBUILD_GL32
     -DWIN32
-    -DUSE_3DNOW_ASM)
-
-add_definitions(-D_DLL -D__USE_CRTIMP)
+    -DUSE_3DNOW_ASM
+    -D_DLL -D__USE_CRTIMP)
 
 if(ARCH MATCHES i386)
 add_definitions(
@@ -16,17 +15,18 @@ else()
 add_definitions(-DGL_NO_STDCALL)
 endif(ARCH MATCHES i386)
 
-include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/include)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/main)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/glapi)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/math)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/tnl)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/shader)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/shader/grammar)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/shader/slang)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/shader/slang/OSDependent/Linux)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/shader/slang/OGLCompilersDLL)
+include_directories(
+    BEFORE include
+    src
+    src/main
+    src/glapi
+    src/math
+    src/tnl
+    src/shader
+    src/shader/grammar
+    src/shader/slang
+    src/shader/slang/OSDependent/Linux
+    src/shader/slang/OGLCompilersDLL)
 
 list(APPEND SOURCE
     src/drivers/common/driverfuncs.c
@@ -221,8 +221,7 @@ list(APPEND SOURCE
     src/vbo/vbo_split_inplace.c
     src/drivers/windows/icd/mesa.def)
 
-set_source_files_properties(src/drivers/windows/icd/mesa.def
-    PROPERTIES EXTERNAL_OBJECT TRUE)
+set_source_files_properties(src/drivers/windows/icd/mesa.def PROPERTIES EXTERNAL_OBJECT TRUE)
 
 if(ARCH MATCHES i386)
 list(APPEND SOURCE
@@ -258,13 +257,6 @@ add_library(mesa32 SHARED ${SOURCE})
 
 set_entrypoint(mesa32 0)
 
-if (NOT MSVC)
-# this hides all warnings, is this really wanted ?
-#add_definitions(-w)
-
-endif(NOT MSVC)
-
-
 add_importlibs(mesa32 gdi32 user32 msvcrt kernel32 ntdll)
 
 add_dependencies(mesa32 psdk buildno_header)
index 8b0f9e8..d755138 100644 (file)
@@ -7,8 +7,9 @@ include_directories(
     ${REACTOS_SOURCE_DIR}/include/reactos/subsys
     ${REACTOS_SOURCE_DIR}/include/reactos/drivers)
 
-add_definitions(-DLANGPACK)
-add_definitions(-D_WIN32K_)
+add_definitions(
+    -DLANGPACK
+    -D_WIN32K_)
 
 list(APPEND SOURCE
     dib/alphablend.c