• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision520fcf7de71361fac63e1ff47e7e392d7de51c90 (tree)
Time2016-02-17 03:25:54
Authorarkeon
Commiterarkeon

Log Message

Corrections on cmake scripts for static build on windows

Change Summary

Incremental Difference

diff -r 679e65ce667a -r 520fcf7de713 CMake/CMakeLists.txt
--- a/CMake/CMakeLists.txt Tue Feb 16 18:56:01 2016 +0200
+++ b/CMake/CMakeLists.txt Tue Feb 16 19:25:54 2016 +0100
@@ -43,6 +43,7 @@
4343 set(STATIC_INST_FILES
4444 Packages/FindCg.cmake
4545 Packages/FindDirectX.cmake
46+ Packages/FindDirectX11.cmake
4647 Packages/FindFreeImage.cmake
4748 Packages/FindFreetype.cmake
4849 Packages/FindOpenGLES.cmake
@@ -50,6 +51,8 @@
5051 Packages/FindZLIB.cmake
5152 Packages/FindZZip.cmake
5253 Packages/FindSoftimage.cmake
54+ Packages/FindGLSLOptimizer.cmake
55+ Packages/FindHLSL2GLSL.cmake
5356 )
5457 if (WIN32)
5558 set(INST_FILES ${INST_FILES}
diff -r 679e65ce667a -r 520fcf7de713 CMake/Dependencies.cmake
--- a/CMake/Dependencies.cmake Tue Feb 16 18:56:01 2016 +0200
+++ b/CMake/Dependencies.cmake Tue Feb 16 19:25:54 2016 +0100
@@ -173,10 +173,12 @@
173173 set(Boost_COMPILER -gcc)
174174 endif()
175175
176-set(Boost_ADDITIONAL_VERSIONS "1.57" "1.57.0" "1.56" "1.56.0" "1.55" "1.55.0" "1.54" "1.54.0" "1.53" "1.53.0" "1.52" "1.52.0" "1.51" "1.51.0" "1.50" "1.50.0" "1.49" "1.49.0" "1.48" "1.48.0" "1.47" "1.47.0" "1.46" "1.46.0" "1.45" "1.45.0" "1.44" "1.44.0" "1.42" "1.42.0" "1.41.0" "1.41" "1.40.0" "1.40")
177-# Components that need linking (NB does not include header-only components like bind)
178-set(OGRE_BOOST_COMPONENTS thread date_time)
179-find_package(Boost COMPONENTS ${OGRE_BOOST_COMPONENTS} QUIET)
176+if (NOT Boost_FOUND)
177+ set(Boost_ADDITIONAL_VERSIONS "1.57" "1.57.0" "1.56" "1.56.0" "1.55" "1.55.0" "1.54" "1.54.0" "1.53" "1.53.0" "1.52" "1.52.0" "1.51" "1.51.0" "1.50" "1.50.0" "1.49" "1.49.0" "1.48" "1.48.0" "1.47" "1.47.0" "1.46" "1.46.0" "1.45" "1.45.0" "1.44" "1.44.0" "1.42" "1.42.0" "1.41.0" "1.41" "1.40.0" "1.40")
178+ # Components that need linking (NB does not include header-only components like bind)
179+ set(OGRE_BOOST_COMPONENTS thread date_time)
180+ find_package(Boost COMPONENTS ${OGRE_BOOST_COMPONENTS} QUIET)
181+endif()
180182 if (NOT Boost_FOUND)
181183 # Try again with the other type of libs
182184 if(Boost_USE_STATIC_LIBS)
diff -r 679e65ce667a -r 520fcf7de713 CMake/Packages/FindOGRE.cmake
--- a/CMake/Packages/FindOGRE.cmake Tue Feb 16 18:56:01 2016 +0200
+++ b/CMake/Packages/FindOGRE.cmake Tue Feb 16 19:25:54 2016 +0100
@@ -31,7 +31,7 @@
3131 # RenderSystem_GL, RenderSystem_GL3Plus,
3232 # RenderSystem_GLES, RenderSystem_GLES2,
3333 # RenderSystem_Direct3D9, RenderSystem_Direct3D11
34-# Paging, Terrain, Volume, Overlay
34+# Paging, Terrain, Volume, Overlay, MeshLodGenerator, HLMS
3535 #
3636 # For each of these components, the following variables are defined:
3737 #
@@ -148,7 +148,7 @@
148148 endif ()
149149
150150 # redo search if any of the environmental hints changed
151-set(OGRE_COMPONENTS Paging Terrain Volume Overlay
151+set(OGRE_COMPONENTS Paging Terrain Volume Overlay MeshLodGenerator HLMS
152152 Plugin_BSPSceneManager Plugin_CgProgramManager Plugin_OctreeSceneManager
153153 Plugin_OctreeZone Plugin_PCZSceneManager Plugin_ParticleFX
154154 RenderSystem_Direct3D11 RenderSystem_Direct3D9 RenderSystem_GL RenderSystem_GL3Plus RenderSystem_GLES RenderSystem_GLES2)
@@ -264,6 +264,7 @@
264264 set(OGRE_DEPS_FOUND TRUE)
265265 find_package(Cg QUIET)
266266 find_package(DirectX QUIET)
267+ find_package(DirectX11 QUIET)
267268 find_package(FreeImage QUIET)
268269 find_package(Freetype QUIET)
269270 find_package(OpenGL QUIET)
@@ -422,6 +423,10 @@
422423 ogre_find_component(Volume OgreVolumePrerequisites.h)
423424 # look for Overlay component
424425 ogre_find_component(Overlay OgreOverlaySystem.h)
426+# look for MeshLodGenerator component
427+ogre_find_component(MeshLodGenerator OgreMeshLodGenerator.h)
428+# look for HLMS component
429+ogre_find_component(HLMS OgreHlmsManager.h)
425430
426431 #########################################################
427432 # Find Ogre plugins
@@ -521,7 +526,7 @@
521526
522527 if (OGRE_STATIC)
523528 # check if dependencies for plugins are met
524- if (NOT DirectX_FOUND)
529+ if (NOT DirectX9_FOUND)
525530 set(OGRE_RenderSystem_Direct3D9_FOUND FALSE)
526531 endif ()
527532 if (NOT DirectX_D3D11_FOUND)
@@ -544,7 +549,7 @@
544549 endif ()
545550
546551 set(OGRE_RenderSystem_Direct3D9_LIBRARIES ${OGRE_RenderSystem_Direct3D9_LIBRARIES}
547- ${DirectX_LIBRARIES}
552+ ${DirectX9_LIBRARIES}
548553 )
549554
550555 set(OGRE_RenderSystem_Direct3D11_LIBRARIES ${OGRE_RenderSystem_Direct3D11_LIBRARIES}
diff -r 679e65ce667a -r 520fcf7de713 Samples/CMakeLists.txt
--- a/Samples/CMakeLists.txt Tue Feb 16 18:56:01 2016 +0200
+++ b/Samples/CMakeLists.txt Tue Feb 16 19:25:54 2016 +0100
@@ -117,7 +117,6 @@
117117 set(RESOURCE_FILES
118118 ${OGRE_SOURCE_DIR}/OgreMain/src/WIN32/resource.h
119119 ${OGRE_SOURCE_DIR}/OgreMain/src/WIN32/OgreWin32Resources.rc
120- ${OGRE_SOURCE_DIR}/OgreMain/src/WIN32/winres.h
121120 )
122121 source_group(Resources FILES ${RESOURCE_FILES})
123122 endif ()
diff -r 679e65ce667a -r 520fcf7de713 Tests/CMakeLists.txt
--- a/Tests/CMakeLists.txt Tue Feb 16 18:56:01 2016 +0200
+++ b/Tests/CMakeLists.txt Tue Feb 16 19:25:54 2016 +0100
@@ -79,7 +79,6 @@
7979 set(RESOURCE_FILES
8080 ${OGRE_SOURCE_DIR}/OgreMain/src/WIN32/resource.h
8181 ${OGRE_SOURCE_DIR}/OgreMain/src/WIN32/OgreWin32Resources.rc
82- ${OGRE_SOURCE_DIR}/OgreMain/src/WIN32/winres.h
8382 )
8483 source_group(Resources FILES ${RESOURCE_FILES})
8584 endif ()