-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 626e4d1
Showing
16 changed files
with
2,173 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# This is the control file for Travis continuous integration system. | ||
# Create build | ||
language: cpp | ||
|
||
compiler: clang | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
on_success: change | ||
on_failure: change | ||
|
||
before_install: | ||
- sudo apt-get install -y libwxbase3.0-dev libwxgtk3.0-dev | ||
|
||
script: | ||
- cmake . | ||
- cmake --build . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
** RLReplayManager | ||
** | ||
** Copyright (C) 2015 Tobias Taschner <[email protected]> | ||
** | ||
** Licensed under GPL v3 or later | ||
*/ | ||
|
||
#include <wx/wx.h> | ||
|
||
#include "ManagerFrame.h" | ||
|
||
class ReplayManagerApp : public wxApp | ||
{ | ||
public: | ||
virtual bool OnInit() | ||
{ | ||
wxImage::AddHandler(new wxPNGHandler()); | ||
wxImage::AddHandler(new wxJPEGHandler()); | ||
wxImage::AddHandler(new wxGIFHandler()); | ||
|
||
SetAppName("RLReplayManager"); | ||
SetAppDisplayName("RLReplayManager"); | ||
|
||
ManagerFrame* frame = new ManagerFrame(NULL); | ||
frame->Show(); | ||
|
||
return true; | ||
} | ||
}; | ||
|
||
wxIMPLEMENT_APP(ReplayManagerApp); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
project(RLReplayManager) | ||
|
||
SET(CPACK_PACKAGE_VERSION_MAJOR "0") | ||
SET(CPACK_PACKAGE_VERSION_MINOR "1") | ||
SET(CPACK_PACKAGE_VERSION_PATCH "0") | ||
|
||
find_package(wxWidgets 3.0 COMPONENTS core base adv REQUIRED) | ||
|
||
include( ${wxWidgets_USE_FILE} ) | ||
|
||
if(MSVC) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") | ||
endif() | ||
|
||
set(SRCS ${SRCS} | ||
App.cpp | ||
ManagerFrame.cpp | ||
ManagerFrame.h | ||
RLReplayManager.fbp | ||
RLRMFrames.cpp | ||
RLRMFrames.h | ||
Replay.h | ||
Replay.cpp | ||
) | ||
|
||
if(WIN32) | ||
configure_file(VersionInfo.rc.in | ||
${${PROJECT_NAME}_BINARY_DIR}/VersionInfo.rc) | ||
set(SRCS ${SRCS} | ||
${${PROJECT_NAME}_BINARY_DIR}/VersionInfo.rc | ||
) | ||
endif() | ||
|
||
# Prepare version information | ||
configure_file(VersionInfo.h.in | ||
${${PROJECT_NAME}_BINARY_DIR}/VersionInfo.h) | ||
|
||
include_directories(${${PROJECT_NAME}_BINARY_DIR}) | ||
|
||
add_executable(RLReplayManager WIN32 MACOSX_BUNDLE ${SRCS}) | ||
target_link_libraries(RLReplayManager ${wxWidgets_LIBRARIES}) | ||
|
||
if (NOT MSVC) | ||
set(CMAKE_CXX_FLAGS "-Wall -std=c++11") | ||
endif() | ||
|
||
set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION ".") | ||
if (APPLE) | ||
install(TARGETS RLReplayManager BUNDLE DESTINATION ${CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION}) | ||
set(CPACK_SYSTEM_NAME Mac) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES | ||
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/RLReplayManager.plist.in | ||
) | ||
else() | ||
install(TARGETS RLReplayManager RUNTIME DESTINATION ${CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION}) | ||
endif() | ||
include(InstallRequiredSystemLibraries) | ||
|
||
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") | ||
#SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md") | ||
SET(CPACK_GENERATOR "ZIP") | ||
include(CPack) |
Oops, something went wrong.