|
|
@@ -1,12 +1,8 @@
|
|
|
SET(polycore_SRCS
|
|
|
- ../Build/Linux/PolycodeView.cpp
|
|
|
Source/OSBasics.cpp
|
|
|
-# Source/PolyAGLCore.cpp
|
|
|
Source/PolyBezierCurve.cpp
|
|
|
Source/PolyBone.cpp
|
|
|
Source/PolyCamera.cpp
|
|
|
-# Source/PolyCocoaCore.cpp
|
|
|
-# Source/PolycodeView.mm
|
|
|
Source/PolyColor.cpp
|
|
|
Source/PolyConfig.cpp
|
|
|
Source/PolyCore.cpp
|
|
|
@@ -23,8 +19,6 @@ SET(polycore_SRCS
|
|
|
Source/PolyFontManager.cpp
|
|
|
# Source/PolyGenericScene.cpp
|
|
|
Source/PolyGLCubemap.cpp
|
|
|
-# Source/PolyGLES1Renderer.cpp
|
|
|
-# Source/PolyGLES1Texture.cpp
|
|
|
Source/PolyGLRenderer.cpp
|
|
|
Source/PolyGLSLProgram.cpp
|
|
|
Source/PolyGLSLShader.cpp
|
|
|
@@ -33,7 +27,6 @@ SET(polycore_SRCS
|
|
|
Source/PolyGLVertexBuffer.cpp
|
|
|
Source/PolyImage.cpp
|
|
|
Source/PolyInputEvent.cpp
|
|
|
-# Source/PolyiPhoneCore.cpp
|
|
|
Source/PolyLabel.cpp
|
|
|
Source/PolyLogger.cpp
|
|
|
Source/PolyMaterial.cpp
|
|
|
@@ -74,7 +67,6 @@ SET(polycore_SRCS
|
|
|
Source/PolyScreenShape.cpp
|
|
|
Source/PolyScreenSound.cpp
|
|
|
Source/PolyScreenSprite.cpp
|
|
|
- Source/PolySDLCore.cpp
|
|
|
Source/PolyShader.cpp
|
|
|
Source/PolySkeleton.cpp
|
|
|
Source/PolySound.cpp
|
|
|
@@ -88,7 +80,6 @@ SET(polycore_SRCS
|
|
|
Source/PolyVector2.cpp
|
|
|
Source/PolyVector3.cpp
|
|
|
Source/PolyVertex.cpp
|
|
|
-# Source/PolyWinCore.cpp
|
|
|
Source/tinystr.cpp
|
|
|
Source/tinyxml.cpp
|
|
|
Source/tinyxmlerror.cpp
|
|
|
@@ -96,16 +87,12 @@ SET(polycore_SRCS
|
|
|
)
|
|
|
|
|
|
SET(polycore_HDRS
|
|
|
- ../Build/Linux/PolycodeView.h
|
|
|
Include/OSBasics.h
|
|
|
-# Include/PolyAGLCore.h
|
|
|
Include/PolyBasics.h
|
|
|
Include/PolyBezierCurve.h
|
|
|
Include/PolyBone.h
|
|
|
Include/PolyCamera.h
|
|
|
-# Include/PolyCocoaCore.h
|
|
|
Include/Polycode.h
|
|
|
-# Include/PolycodeView.h
|
|
|
Include/PolyColor.h
|
|
|
Include/PolyConfig.h
|
|
|
Include/PolyCore.h
|
|
|
@@ -122,8 +109,6 @@ SET(polycore_HDRS
|
|
|
Include/PolyFontManager.h
|
|
|
Include/PolyGenericScene.h
|
|
|
Include/PolyGLCubemap.h
|
|
|
-# Include/PolyGLES1Renderer.h
|
|
|
-# Include/PolyGLES1Texture.h
|
|
|
Include/PolyGlobals.h
|
|
|
Include/PolyGLRenderer.h
|
|
|
Include/PolyGLSLProgram.h
|
|
|
@@ -134,8 +119,6 @@ SET(polycore_HDRS
|
|
|
Include/PolyImage.h
|
|
|
Include/PolyInputEvent.h
|
|
|
Include/PolyInputKeys.h
|
|
|
-# Include/PolyiPhoneCore.h
|
|
|
-# Include/Poly_iPhone.h
|
|
|
Include/PolyLabel.h
|
|
|
Include/PolyLogger.h
|
|
|
Include/PolyMaterial.h
|
|
|
@@ -176,7 +159,6 @@ SET(polycore_HDRS
|
|
|
Include/PolyScreenShape.h
|
|
|
Include/PolyScreenSound.h
|
|
|
Include/PolyScreenSprite.h
|
|
|
- Include/PolySDLCore.h
|
|
|
Include/PolyShader.h
|
|
|
Include/PolySkeleton.h
|
|
|
Include/PolySound.h
|
|
|
@@ -191,11 +173,38 @@ SET(polycore_HDRS
|
|
|
Include/PolyVector2.h
|
|
|
Include/PolyVector3.h
|
|
|
Include/PolyVertex.h
|
|
|
-# Include/PolyWinCore.h
|
|
|
Include/tinystr.h
|
|
|
Include/tinyxml.h
|
|
|
)
|
|
|
|
|
|
-#ADD_LIBRARY(PolyCore SHARED ${polycore_SRCS} ${polycore_HDRS})
|
|
|
-ADD_LIBRARY(PolyCoreStatic ${polycore_SRCS} ${polycore_HDRS})
|
|
|
+# TODO: iPhone
|
|
|
+# Include/PolyiPhoneCore.h
|
|
|
+# Include/Poly_iPhone.h
|
|
|
+# Source/PolyiPhoneCore.cpp
|
|
|
+
|
|
|
+# TODO: PolyGLES1
|
|
|
+# Include/PolyGLES1Renderer.h
|
|
|
+# Include/PolyGLES1Texture.h
|
|
|
+# Source/PolyGLES1Renderer.cpp
|
|
|
+# Source/PolyGLES1Texture.cpp
|
|
|
+
|
|
|
+# platform specific
|
|
|
+IF(MSVC)
|
|
|
+SET(polycore_SRCS ${polycore_SRCS} ../Build/MSVC/Polycore/PolycodeView.cpp Source/PolyWinCore.cpp)
|
|
|
+SET(polycore_HDRS ${polycore_HDRS} ../Build/MSVC/Polycore/PolycodeView.h Include/PolyWinCore.h)
|
|
|
+ELSEIF(APPLE)
|
|
|
+SET(polycore_SRCS ${polycore_SRCS} Source/PolyAGLCore.cpp Source/PolyCocoaCore.cpp Source/PolycodeView.mm)
|
|
|
+SET(polycore_HDRS ${polycore_HDRS} Include/PolyAGLCore.h Include/PolyCocoaCore.h Include/PolycodeView.h)
|
|
|
+ELSE(MSVC)
|
|
|
+SET(polycore_SRCS ${polycore_SRCS} ../Build/Linux/PolycodeView.cpp Source/PolySDLCore.cpp)
|
|
|
+SET(polycore_HDRS ${polycore_HDRS} ../Build/Linux/PolycodeView.h Include/PolySDLCore.h)
|
|
|
+ENDIF(MSVC)
|
|
|
+
|
|
|
+IF(POLYCODE_BUILD_SHARED)
|
|
|
+ ADD_LIBRARY(PolyCore SHARED ${polycore_SRCS} ${polycore_HDRS})
|
|
|
+ENDIF(POLYCODE_BUILD_SHARED)
|
|
|
+
|
|
|
+IF(POLYCODE_BUILD_STATIC)
|
|
|
+ ADD_LIBRARY(PolyCore_static ${polycore_SRCS} ${polycore_HDRS})
|
|
|
+ENDIF(POLYCODE_BUILD_STATIC)
|
|
|
|