-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get almost all dependencies from anaconda rather than apt-get. I think this will make it easier to build an anaconda package.
- Loading branch information
Showing
19 changed files
with
166 additions
and
146 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 |
---|---|---|
@@ -1,15 +1,4 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get update -y && \ | ||
apt-get install -y capnproto cmake curl g++ gettext git libc6-dev libcapnp-dev libcurl4-gnutls-dev libfreetype6-dev libgl1-mesa-dev libgmp-dev libjpeg-dev libjsoncpp-dev libluajit-5.1-dev libogg-dev libopenal-dev libpng-dev libsdl2-dev libsqlite3-dev libvorbis-dev libxi-dev libzmq3-dev libzstd-dev mold ninja-build zlib1g-dev | ||
|
||
ENV CONDA_DIR /opt/conda | ||
ENV PATH "${CONDA_DIR}/bin:${PATH}" | ||
RUN echo ". /opt/conda/etc/profile.d/conda.sh" >> ${HOME}/.bashrc \ | ||
&& echo ". /opt/conda/etc/profile.d/conda.sh" >> /etc/profile \ | ||
&& echo "conda activate base" >> ${HOME}/.bashrc \ | ||
&& echo "conda activate base" >> /etc/profile | ||
|
||
RUN curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" && \ | ||
bash Miniforge3-$(uname)-$(uname -m).sh -b -p ${CONDA_DIR} && \ | ||
rm Miniforge3-$(uname)-$(uname -m).sh | ||
apt-get install -y g++ git libgl1-mesa-dev mold |
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -14,5 +14,6 @@ | |
}, | ||
"[jsonc]": { | ||
"editor.formatOnSave": true | ||
} | ||
}, | ||
"cmake.cmakePath": "/opt/conda/envs/minetest/bin/cmake" | ||
} |
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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
mark_as_advanced(ZMQ_LIBRARY ZMQ_INCLUDE_DIR) | ||
|
||
find_path(ZMQ_INCLUDE_DIR NAMES zmq.h) | ||
message(STATUS ${ZMQ_INCLUDE_DIR}) | ||
|
||
find_library(ZMQ_LIBRARY NAMES zmq) | ||
message(STATUS ${ZMQ_LIBRARY}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Zmq DEFAULT_MSG ZMQ_LIBRARY ZMQ_INCLUDE_DIR) |
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 |
---|---|---|
@@ -1,41 +1,7 @@ | ||
option(ENABLE_SYSTEM_ZMQPP "Use ZMQPP from system" TRUE) | ||
mark_as_advanced(ZMQPP_LIBRARY ZMQPP_INCLUDE_DIR) | ||
set(USE_SYSTEM_ZMQPP FALSE) | ||
|
||
message(${CMAKE_SOURCE_DIR}) | ||
find_library(ZMQPP_LIBRARY NAMES zmqpp REQUIRED) | ||
find_path(ZMQPP_INCLUDE_DIR NAMES zmqpp.hpp PATH_SUFFIXES zmqpp REQUIRED) | ||
|
||
|
||
if(ENABLE_SYSTEM_ZMQPP) | ||
find_library(ZMQPP_LIBRARY NAMES zmqpp) | ||
find_path(ZMQPP_INCLUDE_DIR NAMES zmqpp.hpp PATH_SUFFIXES zmqpp) | ||
|
||
if(ZMQPP_LIBRARY AND ZMQPP_INCLUDE_DIR) | ||
message (STATUS "Using ZMQPP provided by system.") | ||
set(USE_SYSTEM_ZMQPP TRUE) | ||
else() | ||
message (STATUS "Detecting ZMQPP from system failed.") | ||
endif() | ||
|
||
endif() | ||
|
||
if(NOT USE_SYSTEM_ZMQPP) | ||
message(STATUS "Using ZMQPP submodule") | ||
find_path(ZMQPP_INCLUDE_DIR NAMES zmqpp/zmqpp.hpp | ||
PATHS | ||
${CMAKE_SOURCE_DIR}/lib/zmqpp/src/ | ||
PATH_SUFFIXES zmqpp) | ||
|
||
find_library(ZMQPP_LIBRARY NAMES zmqpp | ||
PATHS ${CMAKE_SOURCE_DIR}/lib/zmqpp/build) | ||
|
||
message(${ZMQPP_INCLUDE_DIR}) | ||
message(${ZMQPP_LIBRARY}) | ||
|
||
if(ZMQPP_LIBRARY AND ZMQPP_INCLUDE_DIR) | ||
message(STATUS "Using ZMQPP provided by the submodule.") | ||
else() | ||
message(FATAL_ERROR "ZMQPP submodule detection failed, please navigate to lib/zmqpp, initialize the submodule with \"git submodule update --init\", and then use \"make\" to build zmqpp") | ||
endif() | ||
endif() | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Zmqpp DEFAULT_MSG ZMQPP_LIBRARY ZMQPP_INCLUDE_DIR) |
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
Oops, something went wrong.