mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 01:15:33 +00:00
Merge with athile's WIP windows build
This commit is contained in:
commit
d911653846
7 changed files with 48 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
build
|
build
|
||||||
*~
|
*~
|
||||||
Doxygen
|
Doxygen
|
||||||
|
prebuilt
|
|
@ -8,6 +8,35 @@ option(USE_MPG123 "use mpg123 + libsndfile for sound" ON)
|
||||||
# We probably support older versions than this.
|
# We probably support older versions than this.
|
||||||
cmake_minimum_required(VERSION 2.6)
|
cmake_minimum_required(VERSION 2.6)
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Pre-built binaries being used?
|
||||||
|
#
|
||||||
|
IF(EXISTS "${CMAKE_SOURCE_DIR}/prebuilt/vc100-mt-gd/ogre_1_7_1")
|
||||||
|
set(PREBUILT_DIR "${CMAKE_SOURCE_DIR}/prebuilt/vc100-mt-gd")
|
||||||
|
message (STATUS "OpenMW pre-built binaries found at ${PREBUILT_DIR}.")
|
||||||
|
|
||||||
|
SET(ENV{OGRE_HOME} "${PREBUILT_DIR}/ogre_1_7_1")
|
||||||
|
|
||||||
|
SET(ENV{BOOST_ROOT} "${PREBUILT_DIR}/boost_1_42_0")
|
||||||
|
set(Boost_USE_STATIC_LIBS ON)
|
||||||
|
set(Boost_USE_MULTITHREADED ON)
|
||||||
|
set(ENV{BOOST_INCLUDEDIR} "${BOOST_ROOT}/include")
|
||||||
|
set(ENV{BOOST_LIBRARYDIR} "${BOOST_ROOT}/lib")
|
||||||
|
|
||||||
|
set(ENV{FREETYPE_DIR} "${PREBUILT_DIR}/freetype-2.3.5-1")
|
||||||
|
|
||||||
|
set(USE_MPG123 OFF)
|
||||||
|
set(USE_AUDIERE ON)
|
||||||
|
set(AUDIERE_INCLUDE_DIR "${PREBUILT_DIR}/audiere-1.9.4/include")
|
||||||
|
set(AUDIERE_LIBRARY "${PREBUILT_DIR}/audiere-1.9.4/lib/audiere.lib")
|
||||||
|
|
||||||
|
set(ENV{OPENALDIR} "${PREBUILT_DIR}/OpenAL 1.1 SDK")
|
||||||
|
|
||||||
|
ELSE()
|
||||||
|
message (STATUS "OpenMW pre-built binaries not found. Using standard locations.")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
# Add path for CMake scripts
|
# Add path for CMake scripts
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/)
|
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/)
|
||||||
|
|
||||||
|
@ -166,6 +195,9 @@ if (WIN32)
|
||||||
else (WIN32)
|
else (WIN32)
|
||||||
set(PLATFORM_INCLUDE_DIR "")
|
set(PLATFORM_INCLUDE_DIR "")
|
||||||
endif (WIN32)
|
endif (WIN32)
|
||||||
|
if (MSVC10)
|
||||||
|
set(PLATFORM_INCLUDE_DIR "")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
|
@ -180,10 +212,10 @@ include_directories("."
|
||||||
${CMAKE_HOME_DIRECTORY}/extern/caelum/include
|
${CMAKE_HOME_DIRECTORY}/extern/caelum/include
|
||||||
${CMAKE_HOME_DIRECTORY}/extern/mygui_3.0.1/MyGUIEngine/include
|
${CMAKE_HOME_DIRECTORY}/extern/mygui_3.0.1/MyGUIEngine/include
|
||||||
${CMAKE_HOME_DIRECTORY}/extern/mygui_3.0.1/OgrePlatform/include
|
${CMAKE_HOME_DIRECTORY}/extern/mygui_3.0.1/OgrePlatform/include
|
||||||
|
${OPENAL_INCLUDE_DIR}
|
||||||
${LIBDIR}
|
${LIBDIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
link_directories(${Boost_LIBRARY_DIRS} ${OGRE_LIB_DIR})
|
link_directories(${Boost_LIBRARY_DIRS} ${OGRE_LIB_DIR})
|
||||||
|
|
||||||
add_subdirectory( extern/caelum )
|
add_subdirectory( extern/caelum )
|
||||||
|
|
|
@ -205,7 +205,7 @@ target_link_libraries(openmw
|
||||||
${SOUND_INPUT_LIBRARY}
|
${SOUND_INPUT_LIBRARY}
|
||||||
caelum
|
caelum
|
||||||
MyGUIEngine
|
MyGUIEngine
|
||||||
MyGUI.OgrePlatform
|
MyGUIOgrePlatform
|
||||||
)
|
)
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
|
|
|
@ -15,8 +15,8 @@ WindowManager::WindowManager(MyGUI::Gui *_gui, MWWorld::Environment& environment
|
||||||
{
|
{
|
||||||
// Get size info from the Gui object
|
// Get size info from the Gui object
|
||||||
assert(gui);
|
assert(gui);
|
||||||
int w = gui->getViewWidth();
|
int w = gui->getViewSize().width;
|
||||||
int h = gui->getViewHeight();
|
int h = gui->getViewSize().height;
|
||||||
|
|
||||||
hud = new HUD(w,h);
|
hud = new HUD(w,h);
|
||||||
menu = new MainMenu(w,h);
|
menu = new MainMenu(w,h);
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace MWWorld
|
||||||
: mCellName (cellName), mPosition (position)
|
: mCellName (cellName), mPosition (position)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void ActionTeleportPlayer::ActionTeleportPlayer::execute (Environment& environment)
|
void ActionTeleportPlayer::execute (Environment& environment)
|
||||||
{
|
{
|
||||||
environment.mWorld->changeCell (mCellName, mPosition);
|
environment.mWorld->changeCell (mCellName, mPosition);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,6 @@ include_directories(
|
||||||
${OGRE_INCLUDE_DIR}
|
${OGRE_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
include(MyGUI.OgrePlatform.list)
|
include(MyGUI.OgrePlatform.list)
|
||||||
add_library(MyGUI.OgrePlatform ${HEADER_FILES} ${SOURCE_FILES})
|
add_library(MyGUIOgrePlatform ${HEADER_FILES} ${SOURCE_FILES})
|
||||||
target_link_libraries(MyGUI.OgrePlatform ${OGRE_LIBRARIES})
|
target_link_libraries(MyGUIOgrePlatform ${OGRE_LIBRARIES})
|
||||||
link_directories(${OGRE_LIB_DIR})
|
link_directories(${OGRE_LIB_DIR})
|
||||||
|
|
|
@ -2,6 +2,12 @@
|
||||||
#ifndef _STDINT_WRAPPER_H
|
#ifndef _STDINT_WRAPPER_H
|
||||||
#define _STDINT_WRAPPER_H
|
#define _STDINT_WRAPPER_H
|
||||||
|
|
||||||
|
#if (_MSC_VER >= 1600)
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
#include <boost/cstdint.hpp>
|
#include <boost/cstdint.hpp>
|
||||||
|
|
||||||
// Pull the boost names into the global namespace for convenience
|
// Pull the boost names into the global namespace for convenience
|
||||||
|
@ -11,3 +17,5 @@ using boost::int64_t;
|
||||||
using boost::uint64_t;
|
using boost::uint64_t;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue