Skip to content

Commit

Permalink
Started to remove the old cmake scripts. This means that Ubuntu 16.04…
Browse files Browse the repository at this point in the history
… and older are no longer supported. Ubuntu 16.04 reached end of support a few months ago.

Windows build seems to work. Standalone build needs to be worked on. Standalone builds will also get dropped 32 bit support, so it should be ok.
  • Loading branch information
sago007 committed Jun 7, 2021
1 parent 3cae600 commit 00a2e90
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 331 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 2.8.7)
project (blockattack)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${blockattack_SOURCE_DIR}/source/misc/cmake")
set(BIN_DIR ${blockattack_SOURCE_DIR}/Game)

SET(CPACK_PACKAGE_VERSION "2.7.0-SNAPSHOT")
Expand Down Expand Up @@ -63,7 +62,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-implicit-fallthrough")

#Setup SDL2
find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIR})
include_directories(${SDL2_INCLUDE_DIRS})

#Setup things that use pkg-config
find_package(PkgConfig REQUIRED)
Expand Down Expand Up @@ -91,7 +90,7 @@ include_directories("source/code/Libs/include/cereal/external") #Contains rapid

#building/compiling/linking
add_executable(blockattack ${GUI_TYPE} ${SOURCES} ${RES_FILES})
target_link_libraries( blockattack ${SDL2_LIBRARY})
target_link_libraries( blockattack ${SDL2_LIBRARIES})
target_link_libraries( blockattack physfs)
target_link_libraries( blockattack ${SDL2MIXER_LIBRARIES} ${SDL2IMAGE_LIBRARIES} ${SDL2TTF_LIBRARIES})
target_link_libraries( blockattack ${Boost_LIBRARIES} )
Expand Down
46 changes: 0 additions & 46 deletions source/misc/cmake/FindSDL2.cmake

This file was deleted.

267 changes: 0 additions & 267 deletions source/misc/cmake/LibFindMacros.cmake

This file was deleted.

14 changes: 0 additions & 14 deletions source/misc/docker/Dockerfile.Ubuntu16.04build

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:14.04
FROM ubuntu:18.04

RUN apt-get update && apt-get install -yy build-essential libphysfs-dev libboost-dev cmake libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libboost-program-options-dev libutfcpp-dev zip gettext

Expand Down
3 changes: 3 additions & 0 deletions source/misc/standalone/build_standalone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ cp /staging/blockattack-game/man/blockattack.man /output/docs/ && \
cp /staging/blockattack-game/README.md /output/docs/README_ORG.md && \
chown -R 1000 /output"

exit 0
# Following is from the old 32-bit build

scp source/misc/standalone/compile_requirements.sh blockattack_build:/
scp source/misc/standalone/install_requirements.sh blockattack_build:/
ssh blockattack_build /install_requirements.sh
Expand Down

0 comments on commit 00a2e90

Please sign in to comment.