Skip to content

Commit

Permalink
Merge pull request jgilje#6 from zvezdochiot/master
Browse files Browse the repository at this point in the history
0.20180608
  • Loading branch information
jgilje authored Jun 9, 2018
2 parents 11749f1 + 22ca7ec commit 22d3115
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 16 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ cd src
ccmake .
cmake .
make
sudo make install
```

## Usage
Expand Down
4 changes: 4 additions & 0 deletions doc/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Farbrausch V2M player
SDL Port by github.com/jgilje

0.20180608

INSTALL Version

0.20180108

Fix time play in V2MPlayer::Tick()
Expand Down
2 changes: 1 addition & 1 deletion doc/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.20180108
0.20180608
35 changes: 20 additions & 15 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
cmake_minimum_required(VERSION 2.8)

PROJECT(v2mplayer)
project(v2mplayer)

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNDEBUG -Os -flto -Wall -fno-asynchronous-unwind-tables -fno-stack-protector -ffunction-sections -fdata-sections -Wl,--gc-sections")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNDEBUG -DRONAN -Os -flto -Wall -fno-asynchronous-unwind-tables -fno-stack-protector -ffunction-sections -fdata-sections -Wl,--gc-sections")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNDEBUG -Os -flto -Wall -fno-asynchronous-unwind-tables -fno-stack-protector -ffunction-sections -fdata-sections -Wl,--gc-sections")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNDEBUG -DRONAN -Os -flto -Wall -fno-asynchronous-unwind-tables -fno-stack-protector -ffunction-sections -fdata-sections -Wl,--gc-sections")

SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake)
SET(MAJOR_VERSION 0)
SET(DATE_VERSION 20180108)
SET(V2M_VERSION ${MAJOR_VERSION}.${DATE_VERSION})
FIND_PACKAGE(SDL2 REQUIRED)
INCLUDE_DIRECTORIES(${SDL2_INCLUDE_DIR})
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake)
set(MAJOR_VERSION 0)
set(DATE_VERSION 20180608)
set(V2M_VERSION ${MAJOR_VERSION}.${DATE_VERSION})
find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIR})

ADD_LIBRARY(v2m
add_library(v2m
SHARED
ronan.cpp
v2mplayer.cpp
v2mconv.cpp
synth_core.cpp
sounddef.cpp
)
SET_TARGET_PROPERTIES(v2m PROPERTIES VERSION ${V2M_VERSION} SOVERSION ${MAJOR_VERSION})
set_target_properties(v2m PROPERTIES VERSION ${V2M_VERSION} SOVERSION ${MAJOR_VERSION})

ADD_EXECUTABLE(v2mplayer
add_executable(v2mplayer
tinyplayer.cpp
)

TARGET_LINK_LIBRARIES(v2mplayer
target_link_libraries(v2mplayer
${SDL2_LIBRARY}
v2m
)

install(TARGETS v2m DESTINATION lib)
install(TARGETS v2mplayer DESTINATION bin)
install(FILES ../man/man1/v2mplayer.1 DESTINATION share/man/man1)
install(FILES libv2.h phonemtab.h sounddef.h synth.h types.h v2mconv.h v2mplayer.h DESTINATION include/v2m)
install(FILES ../LICENSE ../README.md ../doc/AUTHORS ../doc/CHANGELOG ../doc/VERSION DESTINATION share/doc/v2mplayer)

0 comments on commit 22d3115

Please sign in to comment.