|
|
@@ -10,32 +10,52 @@ INCLUDE_DIRECTORIES(
|
|
|
SET(CMAKE_DEBUG_POSTFIX "_d")
|
|
|
|
|
|
IF(MSVC)
|
|
|
- SET(polycodeplayer_SRCS
|
|
|
- ../Build/MSVC/PolycodePlayer/player_icon.ico
|
|
|
- ../Build/MSVC/PolycodePlayer/main.cpp
|
|
|
- ../Build/MSVC/PolycodePlayer/PolycodePlayerView.cpp
|
|
|
+
|
|
|
+SET(polycodeplayer_SRCS
|
|
|
Source/PolycodePlayer.cpp
|
|
|
Source/PolycodeWindowsPlayer.cpp
|
|
|
+ Platform/Windows/main.cpp
|
|
|
)
|
|
|
- SET(polycodeplayer_HDRS
|
|
|
- ../Build/MSVC/PolycodePlayer/resource.h
|
|
|
- ../Build/MSVC/PolycodePlayer/PolycodePlayerView.h
|
|
|
- Include/PolycodePlayer.h
|
|
|
+
|
|
|
+ SET(polycodeplayer_HDRS
|
|
|
+ Include/PolycodePlayer.h
|
|
|
Include/PolycodeWindowsPlayer.h
|
|
|
)
|
|
|
+
|
|
|
+ SET(polycodeplayerstandalone_SRCS
|
|
|
+ Source/PolycodePlayer.cpp
|
|
|
+ Source/PolycodeWindowsPlayer.cpp
|
|
|
+ Platform/Windows/Standalone/main.cpp
|
|
|
+ )
|
|
|
+ SET(polycodeplayerstandalone_HDRS
|
|
|
+ Include/PolycodePlayer.h
|
|
|
+ Include/PolycodeWindowsPlayer.h
|
|
|
+ )
|
|
|
+
|
|
|
+ INCLUDE_DIRECTORIES(Include)
|
|
|
+
|
|
|
+ ADD_EXECUTABLE(PolycodePlayer ${polycodeplayer_SRCS} ${polycodeplayer_HDRS})
|
|
|
+ ADD_EXECUTABLE(StandalonePlayer ${polycodeplayerstandalone_SRCS} ${polycodeplayerstandalone_HDRS})
|
|
|
|
|
|
- INCLUDE_DIRECTORIES(../Build/MSVC/PolycodePlayer Include)
|
|
|
-
|
|
|
- # IF(POLYCODE_BUILD_SHARED)
|
|
|
- # ADD_EXECUTABLE(PolycodePlayer_dynamic WIN32 ${polycodeplayer_SRCS} ${polycodeplayer_HDRS})
|
|
|
- # TARGET_LINK_LIBRARIES(PolycodePlayer Polycore_dynamic PolycodeLua ${LUA_LIBRARY})
|
|
|
- # ENDIF(POLYCODE_BUILD_SHARED)
|
|
|
|
|
|
- # IF(POLYCODE_BUILD_STATIC)
|
|
|
- ADD_EXECUTABLE(PolycodePlayer WIN32 ${polycodeplayer_SRCS} ${polycodeplayer_HDRS})
|
|
|
TARGET_LINK_LIBRARIES(PolycodePlayer
|
|
|
+ PolycodeLua
|
|
|
Polycore
|
|
|
+ ${LUA_LIBRARY}
|
|
|
+ ${OPENGL_LIBRARIES}
|
|
|
+ ${OPENAL_LIBRARY}
|
|
|
+ ${PNG_LIBRARIES}
|
|
|
+ ${FREETYPE_LIBRARIES}
|
|
|
+ ${PHYSFS_LIBRARY}
|
|
|
+ ${OGG_LIBRARY}
|
|
|
+ ${VORBIS_LIBRARY}
|
|
|
+ ${VORBISFILE_LIBRARY}
|
|
|
+ ${SDL_LIBRARY}
|
|
|
+ )
|
|
|
+
|
|
|
+ TARGET_LINK_LIBRARIES(StandalonePlayer
|
|
|
PolycodeLua
|
|
|
+ Polycore
|
|
|
${LUA_LIBRARY}
|
|
|
${OPENGL_LIBRARIES}
|
|
|
${OPENAL_LIBRARY}
|
|
|
@@ -45,10 +65,9 @@ IF(MSVC)
|
|
|
${OGG_LIBRARY}
|
|
|
${VORBIS_LIBRARY}
|
|
|
${VORBISFILE_LIBRARY}
|
|
|
+ ${SDL_LIBRARY}
|
|
|
)
|
|
|
|
|
|
- # ENDIF(POLYCODE_BUILD_STATIC)
|
|
|
-
|
|
|
ELSEIF(APPLE)
|
|
|
SET(polycodeplayer_SRCS
|
|
|
Source/PolycodePlayer.cpp
|
|
|
@@ -245,13 +264,6 @@ ELSE(MSVC)
|
|
|
|
|
|
ENDIF(MSVC)
|
|
|
|
|
|
-IF(POLYCODE_INSTALL_PLAYER)
|
|
|
-# IF(POLYCODE_BUILD_SHARED)
|
|
|
-# # install player
|
|
|
-# INSTALL(TARGETS PolycodePlayer_dynamic
|
|
|
-# DESTINATION ${POLYCODE_RELEASE_DIR}/Player)
|
|
|
-# ENDIF()
|
|
|
-# IF(POLYCODE_BUILD_STATIC)
|
|
|
INSTALL(TARGETS PolycodePlayer
|
|
|
DESTINATION Player)
|
|
|
|
|
|
@@ -271,5 +283,4 @@ ELSE(MSVC)
|
|
|
INSTALL(FILES "${Polycode_SOURCE_DIR}/Bindings/Contents/LUA/API/api.pak" DESTINATION Player)
|
|
|
ENDIF(MSVC)
|
|
|
|
|
|
-# ENDIF()
|
|
|
ENDIF(POLYCODE_INSTALL_PLAYER)
|