Skip to content

Commit

Permalink
Initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
TcT2k committed Oct 2, 2015
0 parents commit 626e4d1
Show file tree
Hide file tree
Showing 16 changed files with 2,173 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
23 changes: 23 additions & 0 deletions .travis.yml
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 .
32 changes: 32 additions & 0 deletions App.cpp
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);
64 changes: 64 additions & 0 deletions CMakeLists.txt
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)
Loading

0 comments on commit 626e4d1

Please sign in to comment.