use winreg from conda-forge

This commit is contained in:
Wolf Vollprecht 2021-12-01 23:03:38 +01:00
parent 5669184233
commit 1d447979bf
9 changed files with 20 additions and 1834 deletions

View File

@ -317,7 +317,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [windows-2016] os: [windows-latest]
python-version: ["3.7"] python-version: ["3.7"]
steps: steps:
@ -403,7 +403,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [windows-2016] os: [windows-latest]
python-version: ["3.7"] python-version: ["3.7"]
steps: steps:
@ -445,7 +445,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [windows-2016] os: [windows-latest]
python-version: ["3.7"] python-version: ["3.7"]
steps: steps:
@ -495,7 +495,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [windows-2016] os: [windows-latest]
python-version: ["3.7"] python-version: ["3.7"]
steps: steps:
@ -540,7 +540,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [windows-2016] os: [windows-latest]
python-version: ["3.7"] python-version: ["3.7"]
steps: steps:
@ -583,7 +583,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [windows-2016] os: [windows-latest]
python-version: ["3.7"] python-version: ["3.7"]
steps: steps:

View File

@ -118,10 +118,6 @@ set(LIBMAMBA_SOURCES
${LIBMAMBA_SOURCE_DIR}/api/update.cpp ${LIBMAMBA_SOURCE_DIR}/api/update.cpp
) )
set(LIBMAMBA_THIRD_PARTIES
${LIBMAMBA_SOURCE_DIR}/thirdparty/WinReg.hpp
)
set(LIBMAMBA_HEADERS set(LIBMAMBA_HEADERS
${LIBMAMBA_INCLUDE_DIR}/mamba/version.hpp ${LIBMAMBA_INCLUDE_DIR}/mamba/version.hpp
# Core API (low-level) # Core API (low-level)
@ -191,7 +187,7 @@ macro(libmamba_create_target target_name linkage deps_linkage output_name)
# Output # Output
# ====== # ======
add_library(${target_name} ${linkage_upper} ${LIBMAMBA_SOURCES} ${LIBMAMBA_HEADERS} ${LIBMAMBA_THIRD_PARTIES}) add_library(${target_name} ${linkage_upper} ${LIBMAMBA_SOURCES} ${LIBMAMBA_HEADERS})
if (${deps_linkage_upper} STREQUAL "STATIC") if (${deps_linkage_upper} STREQUAL "STATIC")
message(" -> Statically linking against libmamba (static) dependencies") message(" -> Statically linking against libmamba (static) dependencies")
@ -349,10 +345,15 @@ macro(libmamba_create_target target_name linkage deps_linkage output_name)
$<INSTALL_INTERFACE:include> $<INSTALL_INTERFACE:include>
) )
# TODO: package WinReg header if (WIN32)
find_path(WINREG_INCLUDE_DIR NAMES WinReg.hpp)
endif()
target_include_directories( target_include_directories(
${target_name} ${target_name}
PRIVATE ${LIBMAMBA_SOURCE_DIR} PRIVATE
${LIBMAMBA_SOURCE_DIR}
${WINREG_INCLUDE_DIR}
) )
if (UNIX) if (UNIX)

View File

@ -19,3 +19,4 @@ dependencies:
- termcolor-cpp - termcolor-cpp
- cli11 - cli11
- spdlog - spdlog
- sel(win): winreg

View File

@ -19,7 +19,7 @@
#include <reproc++/run.hpp> #include <reproc++/run.hpp>
#ifdef _WIN32 #ifdef _WIN32
#include "thirdparty/WinReg.hpp" #include "WinReg.hpp"
#endif #endif
namespace mamba namespace mamba

View File

@ -24,7 +24,7 @@
#include <windows.h> #include <windows.h>
#include <intrin.h> #include <intrin.h>
#include <tlhelp32.h> #include <tlhelp32.h>
#include "thirdparty/WinReg.hpp" #include "WinReg.hpp"
#endif #endif

File diff suppressed because it is too large Load Diff

View File

@ -21,3 +21,4 @@ dependencies:
- spdlog - spdlog
- pybind11 - pybind11
- pytest - pytest
- sel(win): winreg

View File

@ -22,3 +22,4 @@ dependencies:
- pybind11 - pybind11
- pytest - pytest
- conda - conda
- sel(win): winreg

View File

@ -22,3 +22,4 @@ dependencies:
- pytest-lazy-fixture - pytest-lazy-fixture
- pyyaml - pyyaml
- spdlog - spdlog
- sel(win): winreg