mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 07:16:43 +08:00
Merge branch 'master' of https://github.com/Microsoft/vcpkg
This commit is contained in:
commit
5fb5f65ccd
@ -109,7 +109,6 @@ if(VCPKG_CMAKE_SYSTEM_NAME MATCHES "WindowsStore")
|
||||
# --without-date_time
|
||||
# --without-exception
|
||||
# --without-serialization
|
||||
# --without-fiber
|
||||
# --without-context
|
||||
# --without-graph_parallel
|
||||
# --without-signals
|
||||
@ -130,6 +129,8 @@ if(VCPKG_CMAKE_SYSTEM_NAME MATCHES "WindowsStore")
|
||||
--without-program_options # libs\program_options\src\parsers.cpp(194): error C2065: 'environ': undeclared identifier
|
||||
|
||||
--without-test
|
||||
--without-fiber
|
||||
--without-stacktrace
|
||||
--without-filesystem # libs\filesystem\src\operations.cpp(178): error C2039: 'GetEnvironmentVariableW': is not a member of '`global namespace''
|
||||
--without-thread
|
||||
--without-iostreams
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: expat
|
||||
Version: 2.1.1-1
|
||||
Version: 2.2.4
|
||||
Description: XML parser library written in C
|
||||
|
@ -1,11 +1,10 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/expat-2.1.1)
|
||||
vcpkg_download_distfile(ARCHIVE_FILE
|
||||
URLS "http://downloads.sourceforge.net/project/expat/expat/2.1.1/expat-2.1.1.tar.bz2"
|
||||
FILENAME "expat-2.1.1.tar.bz2"
|
||||
SHA512 088e2ef3434f2affd4fc79fe46f0e9826b9b4c3931ddc780cd18892f1cd1e11365169c6807f45916a56bb6abcc627dcd17a23f970be0bf464f048f5be2713628
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO libexpat/libexpat
|
||||
REF R_2_2_4
|
||||
SHA512 64f9deb2f75be70450a60a408ab867d1df800022e29000a31a801d85421178b400ebbf817864d1592ce998ada1012fa25fd896e5f25c6b314851ae62d94b45dc
|
||||
HEAD_REF master)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
set(EXPAT_LINKAGE ON)
|
||||
@ -14,7 +13,8 @@ else()
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
SOURCE_PATH ${SOURCE_PATH}/expat
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DBUILD_examples=OFF
|
||||
-DBUILD_tests=OFF
|
||||
@ -25,7 +25,7 @@ vcpkg_configure_cmake(
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/expat RENAME copyright)
|
||||
file(INSTALL ${SOURCE_PATH}/expat/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/expat RENAME copyright)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: libraw
|
||||
Version: 0.18.2-2
|
||||
Build-Depends: lcms, libjpeg-turbo
|
||||
Version: 0.18.2-3
|
||||
Build-Depends: lcms, jasper
|
||||
Description: raw image decoder library
|
||||
|
@ -23,13 +23,21 @@ file(COPY ${LIBRAW_CMAKE_SOURCE_PATH}/cmake DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DINSTALL_CMAKE_MODULE_PATH=${CURRENT_PACKAGES_DIR}/share/libraw
|
||||
)
|
||||
|
||||
vcpkg_build_cmake()
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/include/libraw/libraw_types.h LIBRAW_H)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
string(REPLACE "#ifdef LIBRAW_NODLL" "#if 1" LIBRAW_H "${LIBRAW_H}")
|
||||
else()
|
||||
string(REPLACE "#ifdef LIBRAW_NODLL" "#if 0" LIBRAW_H "${LIBRAW_H}")
|
||||
endif()
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/include/libraw/libraw_types.h "${LIBRAW_H}")
|
||||
|
||||
# Rename thread-safe version to be "raw.lib". This is unfortunately needed
|
||||
# because otherwise libraries that build on top of libraw have to choose.
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/raw.lib ${CURRENT_PACKAGES_DIR}/debug/lib/raw.lib)
|
||||
|
@ -8,11 +8,14 @@ namespace vcpkg::Commands::Edit
|
||||
{
|
||||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths)
|
||||
{
|
||||
static const std::string OPTION_BUILDTREES = "--buildtrees";
|
||||
|
||||
auto& fs = paths.get_filesystem();
|
||||
|
||||
static const std::string example = Commands::Help::create_example_string("edit zlib");
|
||||
args.check_exact_arg_count(1, example);
|
||||
args.check_and_get_optional_command_arguments({});
|
||||
const std::unordered_set<std::string> options =
|
||||
args.check_and_get_optional_command_arguments({OPTION_BUILDTREES});
|
||||
const std::string port_name = args.command_arguments.at(0);
|
||||
|
||||
const fs::path portpath = paths.ports / port_name;
|
||||
@ -84,6 +87,14 @@ namespace vcpkg::Commands::Edit
|
||||
VCPKG_LINE_INFO, "Visual Studio Code was not found and the environment variable EDITOR is not set");
|
||||
}
|
||||
|
||||
if (options.find(OPTION_BUILDTREES) != options.cend())
|
||||
{
|
||||
const auto buildtrees_current_dir = paths.buildtrees / port_name;
|
||||
|
||||
std::wstring cmdLine = Strings::wformat(LR"("%s" "%s" -n)", env_EDITOR, buildtrees_current_dir.native());
|
||||
Checks::exit_with_code(VCPKG_LINE_INFO, System::cmd_execute(cmdLine));
|
||||
}
|
||||
|
||||
std::wstring cmdLine = Strings::wformat(
|
||||
LR"("%s" "%s" "%s" -n)", env_EDITOR, portpath.native(), (portpath / "portfile.cmake").native());
|
||||
Checks::exit_with_code(VCPKG_LINE_INFO, System::cmd_execute(cmdLine));
|
||||
|
Loading…
Reference in New Issue
Block a user