Skip to content

Commit

Permalink
Micromamba server (mamba-org#2185)
Browse files Browse the repository at this point in the history
Implemented a micromamba server
  • Loading branch information
wolfv authored Mar 8, 2023
1 parent 4da80b9 commit 7866468
Show file tree
Hide file tree
Showing 6 changed files with 625 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ jobs:
mkdir build
cd build
cmake .. -DBUILD_MICROMAMBA=ON \
-DBUILD_MICROMAMBA_SERVER=ON \
-DBUILD_LIBMAMBA=ON \
-DBUILD_SHARED=ON \
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
Expand Down
8 changes: 8 additions & 0 deletions micromamba/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ project(micromamba)

# Build options
# =============
option(BUILD_MICROMAMBA_SERVER "Build the micromamba server" OFF)

if (BUILD_STATIC AND NOT BUILD_SHARED)
set(MICROMAMBA_LINKAGE "STATIC" CACHE STRING "micromamba linkage against libraries")
Expand Down Expand Up @@ -52,6 +53,13 @@ set(MICROMAMBA_HEADERS
${CMAKE_CURRENT_SOURCE_DIR}/src/version.hpp
)

if(UNIX AND BUILD_MICROMAMBA_SERVER)
list(APPEND MICROMAMBA_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/src/server.cpp
)
add_definitions(-DMICROMAMBA_SERVER)
endif()

add_executable(micromamba ${MICROMAMBA_SRCS} ${MICROMAMBA_HEADERS})

mamba_target_add_compile_warnings(micromamba WARNING_AS_ERROR ${MAMBA_WARNING_AS_ERROR})
Expand Down
Loading

0 comments on commit 7866468

Please sign in to comment.