Author: akhaldi
Date: Tue Feb 11 21:29:23 2014
New Revision: 62121

URL: http://svn.reactos.org/svn/reactos?rev=62121&view=rev
Log:
[OPENGL]
* Prepare the CMake scripts for PCH.
CORE-7716

Modified:
    trunk/reactos/dll/opengl/mesa/main/CMakeLists.txt
    trunk/reactos/dll/opengl/mesa/math/CMakeLists.txt
    trunk/reactos/dll/opengl/mesa/swrast/CMakeLists.txt
    trunk/reactos/dll/opengl/mesa/tnl/CMakeLists.txt
    trunk/reactos/dll/opengl/mesa/vbo/CMakeLists.txt
    trunk/reactos/dll/opengl/opengl32/CMakeLists.txt

Modified: trunk/reactos/dll/opengl/mesa/main/CMakeLists.txt
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/opengl/mesa/main/CMakeLists.txt?rev=62121&r1=62120&r2=62121&view=diff
==============================================================================
--- trunk/reactos/dll/opengl/mesa/main/CMakeLists.txt   [iso-8859-1] (original)
+++ trunk/reactos/dll/opengl/mesa/main/CMakeLists.txt   [iso-8859-1] Tue Feb 11 
21:29:23 2014
@@ -72,9 +72,10 @@
     version.c
     viewport.c
     vtxfmt.c
-)
+    precomp.h)
 
 add_library(mesa_main STATIC ${SOURCE})
+add_pch(mesa_main precomp.h SOURCE)
 if(NOT MSVC)
     allow_warnings(mesa_main)
 endif()

Modified: trunk/reactos/dll/opengl/mesa/math/CMakeLists.txt
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/opengl/mesa/math/CMakeLists.txt?rev=62121&r1=62120&r2=62121&view=diff
==============================================================================
--- trunk/reactos/dll/opengl/mesa/math/CMakeLists.txt   [iso-8859-1] (original)
+++ trunk/reactos/dll/opengl/mesa/math/CMakeLists.txt   [iso-8859-1] Tue Feb 11 
21:29:23 2014
@@ -8,6 +8,7 @@
     m_translate.c
     m_vector.c
     m_xform.c
-)
+    precomp.h)
 
-add_library(mesa_math STATIC ${SOURCE})
+add_library(mesa_math STATIC ${SOURCE})
+add_pch(mesa_math precomp.h SOURCE)

Modified: trunk/reactos/dll/opengl/mesa/swrast/CMakeLists.txt
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/opengl/mesa/swrast/CMakeLists.txt?rev=62121&r1=62120&r2=62121&view=diff
==============================================================================
--- trunk/reactos/dll/opengl/mesa/swrast/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/opengl/mesa/swrast/CMakeLists.txt [iso-8859-1] Tue Feb 11 
21:29:23 2014
@@ -25,9 +25,10 @@
     s_texture.c
     s_triangle.c
     s_zoom.c
-)
+    precomp.h)
 
 add_library(mesa_swrast STATIC ${SOURCE})
+add_pch(mesa_swrast precomp.h SOURCE)
 if(NOT MSVC)
     allow_warnings(mesa_swrast)
 endif()

Modified: trunk/reactos/dll/opengl/mesa/tnl/CMakeLists.txt
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/opengl/mesa/tnl/CMakeLists.txt?rev=62121&r1=62120&r2=62121&view=diff
==============================================================================
--- trunk/reactos/dll/opengl/mesa/tnl/CMakeLists.txt    [iso-8859-1] (original)
+++ trunk/reactos/dll/opengl/mesa/tnl/CMakeLists.txt    [iso-8859-1] Tue Feb 11 
21:29:23 2014
@@ -15,6 +15,7 @@
     t_vertex.c
     t_vertex_generic.c
     t_vertex_sse.c
-)
+    precomp.h)
 
-add_library(mesa_tnl STATIC ${SOURCE})
+add_library(mesa_tnl STATIC ${SOURCE})
+add_pch(mesa_tnl precomp.h SOURCE)

Modified: trunk/reactos/dll/opengl/mesa/vbo/CMakeLists.txt
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/opengl/mesa/vbo/CMakeLists.txt?rev=62121&r1=62120&r2=62121&view=diff
==============================================================================
--- trunk/reactos/dll/opengl/mesa/vbo/CMakeLists.txt    [iso-8859-1] (original)
+++ trunk/reactos/dll/opengl/mesa/vbo/CMakeLists.txt    [iso-8859-1] Tue Feb 11 
21:29:23 2014
@@ -15,6 +15,7 @@
     vbo_save_api.c
     vbo_save_draw.c
     vbo_save_loopback.c
-)
+    precomp.h)
 
-add_library(mesa_vbo STATIC ${SOURCE})
+add_library(mesa_vbo STATIC ${SOURCE})
+add_pch(mesa_vbo precomp.h SOURCE)

Modified: trunk/reactos/dll/opengl/opengl32/CMakeLists.txt
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/opengl/opengl32/CMakeLists.txt?rev=62121&r1=62120&r2=62121&view=diff
==============================================================================
--- trunk/reactos/dll/opengl/opengl32/CMakeLists.txt    [iso-8859-1] (original)
+++ trunk/reactos/dll/opengl/opengl32/CMakeLists.txt    [iso-8859-1] Tue Feb 11 
21:29:23 2014
@@ -20,9 +20,8 @@
     swimpl.c
     wgl.c
     wgl_font.c
-    ${CMAKE_CURRENT_BINARY_DIR}/opengl32_stubs.c
-    ${CMAKE_CURRENT_BINARY_DIR}/opengl32.def
-)
+    opengl32.h
+    ${CMAKE_CURRENT_BINARY_DIR}/opengl32_stubs.c)
 
 set_source_files_properties(gcrt0.o libgmon.a PROPERTIES EXTERNAL_OBJECT TRUE)
 
@@ -33,7 +32,11 @@
     )
 endif()
 
-add_library(opengl32 SHARED ${SOURCE} ${opengl32_asm})
+add_library(opengl32 SHARED
+    ${SOURCE}
+    ${opengl32_asm}
+    ${CMAKE_CURRENT_BINARY_DIR}/opengl32.def)
+
 target_link_libraries(opengl32
     wine
     ${PSEH_LIB}
@@ -53,4 +56,5 @@
 set_module_type(opengl32 win32dll)
 
 add_importlibs(opengl32 gdi32 user32 advapi32 msvcrt kernel32 ntdll)
+add_pch(opengl32 opengl32.h SOURCE)
 add_cd_file(TARGET opengl32 DESTINATION reactos/system32 FOR all)


Reply via email to