Pre-build hunter dependencies

feature/quick-start-py
kaetemi 3 years ago
parent a73a86e2ad
commit 0b9c159307
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -0,0 +1,33 @@
# Dummy project to pre-build dependencies
cmake_minimum_required(VERSION 3.0)
SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake;${CMAKE_MODULE_PATH}")
INCLUDE("cmake/HunterGate.cmake")
HunterGate(
URL "https://github.com/cpp-pm/hunter/archive/v0.23.321.tar.gz"
SHA1 "5e53cbb0429037ea8e2592bfd92704b8ff3ab492"
FILEPATH "${CMAKE_CURRENT_LIST_DIR}/cmake/HunterConfig.cmake"
)
PROJECT(HunterDependencies)
SET(ON 1)
HUNTER_ADD_PACKAGE(ZLIB)
HUNTER_ADD_PACKAGE(libxml2)
HUNTER_ADD_PACKAGE(OpenSSL)
HUNTER_ADD_PACKAGE(luabind)
HUNTER_ADD_PACKAGE(CURL)
HUNTER_ADD_PACKAGE(freetype)
HUNTER_ADD_PACKAGE(Jpeg)
HUNTER_ADD_PACKAGE(giflib)
HUNTER_ADD_PACKAGE(PNG)
HUNTER_ADD_PACKAGE(libogg)
HUNTER_ADD_PACKAGE(vorbis)
HUNTER_ADD_PACKAGE(ffmpeg)
HUNTER_ADD_PACKAGE(OpenAL)
# end of file

@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y \
# RUN add-apt-repository ppa:ubuntu-toolchain-r/test
RUN apt-get update && apt-get install -y \
cmake build-essential \
cmake ninja-build build-essential \
gcc-8 g++-8 \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60 \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 60 \
@ -32,6 +32,18 @@ RUN apt-get update && apt-get install -y \
qtbase5-dev qttools5-dev qttools5-dev-tools \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p hunter_dependencies/cmake
COPY tool/quick_start/docker/hunter_dependencies/CMakeLists.txt hunter_dependencies/CMakeLists.txt
COPY CMakeModules/HunterGate.cmake hunter_dependencies/cmake/HunterGate.cmake
COPY CMakeModules/HunterConfig.cmake hunter_dependencies/cmake/HunterConfig.cmake
RUN mkdir -p hunter_dependencies/build \
&& cd hunter_dependencies/build \
&& cmake -DHUNTER_JOBS_NUMBER=$((`nproc` * 3 / 4)) .. \
&& cd ../.. \
&& rm -rf hunter_dependencies
RUN mkdir -p /mnt/nel
WORKDIR /mnt/nel

@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y \
# RUN add-apt-repository ppa:ubuntu-toolchain-r/test
RUN apt-get update && apt-get install -y \
cmake build-essential \
cmake ninja-build build-essential \
&& rm -rf /var/lib/apt/lists/*
# Ubuntu 16.04 LTS and Ubuntu 18.04 LTS:
@ -34,6 +34,18 @@ RUN apt-get update && apt-get install -y \
qtbase5-dev qttools5-dev qttools5-dev-tools \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p hunter_dependencies/cmake
COPY tool/quick_start/docker/hunter_dependencies/CMakeLists.txt hunter_dependencies/CMakeLists.txt
COPY CMakeModules/HunterGate.cmake hunter_dependencies/cmake/HunterGate.cmake
COPY CMakeModules/HunterConfig.cmake hunter_dependencies/cmake/HunterConfig.cmake
RUN mkdir -p hunter_dependencies/build \
&& cd hunter_dependencies/build \
&& cmake -DHUNTER_JOBS_NUMBER=$((`nproc` * 3 / 4)) .. \
&& cd ../.. \
&& rm -rf hunter_dependencies
RUN mkdir -p /mnt/nel
WORKDIR /mnt/nel
Loading…
Cancel
Save