Browse Source

Merge pull request #494 from zrax/apple

OSX fixes
Adam Johnson 9 years ago
parent
commit
a82df73cc0
  1. 18
      CMakeLists.txt
  2. 2
      Sources/Plasma/FeatureLib/pfCamera/plCameraModifier.cpp
  3. 4
      Sources/Plasma/FeatureLib/pfGameMgr/Pch.h
  4. 9
      Sources/Plasma/FeatureLib/pfLocalizationMgr/CMakeLists.txt
  5. 5
      Sources/Plasma/NucleusLib/pnAsyncCoreExe/Pch.h
  6. 4
      Sources/Plasma/NucleusLib/pnNetCli/Pch.h
  7. 5
      Sources/Plasma/NucleusLib/pnNetProtocol/Pch.h
  8. 4
      Sources/Plasma/NucleusLib/pnUtils/Pch.h
  9. 2
      Sources/Plasma/PubUtilLib/plAgeDescription/plAgeDescription.cpp
  10. 5
      Sources/Plasma/PubUtilLib/plAvatar/plAvatarMgr.cpp
  11. 2
      Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.cpp
  12. 4
      Sources/Plasma/PubUtilLib/plNetClientComm/plNetClientComm.cpp
  13. 4
      Sources/Plasma/PubUtilLib/plNetGameLib/Pch.h
  14. 5
      Sources/Plasma/PubUtilLib/plSDL/plStateVariable.cpp
  15. 4
      Sources/Plasma/PubUtilLib/plVault/Pch.h
  16. 7
      Sources/Tools/plFontConverter/CMakeLists.txt
  17. 7
      Sources/Tools/plLocalizationEditor/CMakeLists.txt
  18. 3
      Sources/Tools/plResBrowser/CMakeLists.txt

18
CMakeLists.txt

@ -69,14 +69,16 @@ endif()
include(PrecompiledHeader) #Precompiled Header helper macros
# libCurl isn't smart enough to detect this for us, so we have to configure it ourselves
option(CURL_IS_STATIC "Using the static version of libcurl?" ON)
if(CURL_IS_STATIC)
add_definitions(-DCURL_STATICLIB)
endif(CURL_IS_STATIC)
# Same story for expat
option(EXPAT_IS_STATIC "Using the static version of libexpat" ON)
if(WIN32)
# libCurl isn't smart enough to detect this for us, so we have to configure it ourselves
option(CURL_IS_STATIC "Using the static version of libcurl?" ON)
if(CURL_IS_STATIC)
add_definitions(-DCURL_STATICLIB)
endif(CURL_IS_STATIC)
# Same story for expat
option(EXPAT_IS_STATIC "Using the static version of libexpat" ON)
endif(WIN32)
option(PLASMA_EXTERNAL_RELEASE "Is this release intended for the general public?" OFF)
if(PLASMA_EXTERNAL_RELEASE)

2
Sources/Plasma/FeatureLib/pfCamera/plCameraModifier.cpp

@ -65,6 +65,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plAvatar/plArmatureMod.h"
#include "plAvatar/plPhysicalControllerCore.h"
#include <cmath>
// new stuff
plCameraModifier1::plCameraModifier1() :

4
Sources/Plasma/FeatureLib/pfGameMgr/Pch.h

@ -70,4 +70,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pfGameMgr.h"
#include "Intern.h"
#ifdef HS_BUILD_FOR_OSX
#include <malloc/malloc.h>
#else
#include <malloc.h>
#endif

9
Sources/Plasma/FeatureLib/pfLocalizationMgr/CMakeLists.txt

@ -3,9 +3,12 @@ include_directories(../../PubUtilLib)
include_directories(${EXPAT_INCLUDE_DIR})
add_definitions(-DWIN32)
if(EXPAT_IS_STATIC)
add_definitions(-DXML_STATIC)
if(WIN32)
add_definitions(-DWIN32)
if(EXPAT_IS_STATIC)
add_definitions(-DXML_STATIC)
endif()
endif()
set(pfLocalizationMgr_SOURCES

5
Sources/Plasma/NucleusLib/pnAsyncCoreExe/Pch.h

@ -61,4 +61,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "Private/Unix/pnAceUx.h"
#include <process.h>
#ifdef HS_BUILD_FOR_OSX
#include <malloc/malloc.h>
#else
#include <malloc.h>
#endif

4
Sources/Plasma/NucleusLib/pnNetCli/Pch.h

@ -59,4 +59,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnNetCli.h"
#include "Intern.h"
#ifdef HS_BUILD_FOR_OSX
#include <malloc/malloc.h>
#else
#include <malloc.h>
#endif

5
Sources/Plasma/NucleusLib/pnNetProtocol/Pch.h

@ -64,5 +64,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "Private/pnNpAllIncludes.h"
#include "Intern.h"
#ifdef HS_BUILD_FOR_OSX
#include <malloc/malloc.h>
#else
#include <malloc.h>
#endif

4
Sources/Plasma/NucleusLib/pnUtils/Pch.h

@ -51,7 +51,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnUtCoreLib.h" // must be first in list
#include "pnUtPragma.h"
#ifdef HS_BUILD_FOR_OSX
#include <malloc/malloc.h>
#else
#include <malloc.h>
#endif
#ifdef HS_BUILD_FOR_WIN32
#pragma warning(push, 3)

2
Sources/Plasma/PubUtilLib/plAgeDescription/plAgeDescription.cpp

@ -46,8 +46,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plFile/plInitFileReader.h"
#include "plFile/plEncryptedStream.h"
#include "hsStringTokenizer.h"
#include <functional>
#include <algorithm>
#include <cmath>
const uint32_t plAgePage::kInvalidSeqSuffix = (uint32_t)-1;

5
Sources/Plasma/PubUtilLib/plAvatar/plAvatarMgr.cpp

@ -41,8 +41,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#pragma warning(disable: 4503 4786)
#include <algorithm>
#include "plAvatarMgr.h"
// local
@ -87,6 +85,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnMessage/plTimeMsg.h"
#include "plStatusLog/plStatusLog.h"
#include <algorithm>
#include <cmath>
// The static single instance, allocated on demand by GetInstance()
plAvatarMgr *plAvatarMgr::fInstance = nil;

2
Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.cpp

@ -111,7 +111,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include <algorithm>
#include <sstream>
#include <cmath>
////////////////////////////////////////////////////////////////////

4
Sources/Plasma/PubUtilLib/plNetClientComm/plNetClientComm.cpp

@ -66,7 +66,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "hsResMgr.h"
#ifdef HS_BUILD_FOR_OSX
#include <malloc/malloc.h>
#else
#include <malloc.h>
#endif
extern bool gDataServerLocal;

4
Sources/Plasma/PubUtilLib/plNetGameLib/Pch.h

@ -69,4 +69,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "Private/plNglAllIncludes.h"
#include "Intern.h"
#ifdef HS_BUILD_FOR_OSX
#include <malloc/malloc.h>
#else
#include <malloc.h>
#endif

5
Sources/Plasma/PubUtilLib/plSDL/plStateVariable.cpp

@ -39,8 +39,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021
*==LICENSE==*/
#include <cfloat>
#include <type_traits>
#include "hsStream.h"
#include "hsTimer.h"
#include "plSDL.h"
@ -61,6 +59,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plResMgr/plResManager.h"
#include "plUnifiedTime/plClientUnifiedTime.h"
#include <type_traits>
#include <cfloat>
#include <cmath>
/*****************************************************************************
*

4
Sources/Plasma/PubUtilLib/plVault/Pch.h

@ -93,4 +93,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "Intern.h"
#ifdef HS_BUILD_FOR_OSX
#include <malloc/malloc.h>
#else
#include <malloc.h>
#endif

7
Sources/Tools/plFontConverter/CMakeLists.txt

@ -40,9 +40,10 @@ qt5_wrap_ui(plFontConverter_UIC ${plFontConverter_UIC_SOURCES})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable(plFontConverter WIN32 ${plFontConverter_HEADERS}
${plFontConverter_SOURCES} ${plFontConverter_RCC}
${plFontConverter_UIC} ${plFontConverter_MOC})
add_executable(plFontConverter WIN32 MACOSX_BUNDLE
${plFontConverter_HEADERS} ${plFontConverter_SOURCES}
${plFontConverter_RCC} ${plFontConverter_UIC}
${plFontConverter_MOC})
target_link_libraries(plFontConverter CoreLib)
target_link_libraries(plFontConverter pnKeyedObject)

7
Sources/Tools/plLocalizationEditor/CMakeLists.txt

@ -42,9 +42,10 @@ qt5_wrap_ui(plLocalizationEditor_UIC ${plLocalizationEditor_UIC_SOURCES})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable(plLocalizationEditor WIN32 ${plLocalizationEditor_HEADERS}
${plLocalizationEditor_SOURCES} ${plLocalizationEditor_RCC}
${plLocalizationEditor_UIC} ${plLocalizationEditor_MOC})
add_executable(plLocalizationEditor WIN32 MACOSX_BUNDLE
${plLocalizationEditor_HEADERS} ${plLocalizationEditor_SOURCES}
${plLocalizationEditor_RCC} ${plLocalizationEditor_UIC}
${plLocalizationEditor_MOC})
target_link_libraries(plLocalizationEditor CoreLib)
target_link_libraries(plLocalizationEditor pnSceneObject)

3
Sources/Tools/plResBrowser/CMakeLists.txt

@ -44,7 +44,8 @@ qt5_wrap_ui(plResBrowser_UIC ${plResBrowser_UIC_SOURCES})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable(plResBrowser WIN32 ${plResBrowser_SOURCES} ${plResBrowser_HEADERS}
add_executable(plResBrowser WIN32 MACOSX_BUNDLE
${plResBrowser_SOURCES} ${plResBrowser_HEADERS}
${plResBrowser_RCC} ${plResBrowser_UIC} ${plResBrowser_MOC})
target_link_libraries(plResBrowser CoreLib)

Loading…
Cancel
Save