Граф коммитов

184 Коммитов

Автор SHA1 Сообщение Дата
Billy O'Neal 4a4bc9532a
Change post-build checks to be warnings rather than errors. (#245)
* Change post-build checks to be warnings rather than errors. Note that they are still treated as errors for purposes of including a port in our curated catalog.

Improve the diagnostics for the pkgconfig check. Example:

```
billyoneal@Billys-MacBook-Pro vcpkg % ../vcpkg-tool/build/vcpkg install gtest --no-binarycaching
Computing installation plan...
The following packages will be built and installed:
    gtest[core]:arm64-osx -> 1.11.0
Detecting compiler hash for triplet arm64-osx...
Starting package 1/1: gtest:arm64-osx
Building package gtest[core]:arm64-osx...
-- Using community triplet arm64-osx. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: /Users/billyoneal/vcpkg/triplets/community/arm64-osx.cmake
-- Downloading https://github.com/google/googletest/archive/release-1.11.0.tar.gz -> google-googletest-release-1.11.0.tar.gz...
-- Cleaning sources at /Users/billyoneal/vcpkg/buildtrees/gtest/src/ase-1.11.0-30e87b9484.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /Users/billyoneal/vcpkg/downloads/google-googletest-release-1.11.0.tar.gz
-- Applying patch fix-main-lib-path.patch
-- Using source at /Users/billyoneal/vcpkg/buildtrees/gtest/src/ase-1.11.0-30e87b9484.clean
-- Configuring arm64-osx-dbg
-- Configuring arm64-osx-rel
CMake Warning at scripts/cmake/vcpkg_configure_cmake.cmake:433 (message):
  The following variables are not used in CMakeLists.txt:

      BUILD_GTEST
      CMAKE_DEBUG_POSTFIX

  Please recheck them and remove the unnecessary options from the
  `vcpkg_configure_cmake` call.

  If these options should still be passed for whatever reason, please use the
  `MAYBE_UNUSED_VARIABLES` argument.
Call Stack (most recent call first):
  ports/gtest/portfile.cmake:17 (vcpkg_configure_cmake)
  scripts/ports.cmake:141 (include)

-- Building arm64-osx-dbg
-- Building arm64-osx-rel
-- Installing: /Users/billyoneal/vcpkg/packages/gtest_arm64-osx/src/gtest.cc
-- Installing: /Users/billyoneal/vcpkg/packages/gtest_arm64-osx/src/gtest_main.cc
-- Installing: /Users/billyoneal/vcpkg/packages/gtest_arm64-osx/src/gtest-all.cc
-- Installing: /Users/billyoneal/vcpkg/packages/gtest_arm64-osx/src/gtest-death-test.cc
-- Installing: /Users/billyoneal/vcpkg/packages/gtest_arm64-osx/src/gtest-filepath.cc
-- Installing: /Users/billyoneal/vcpkg/packages/gtest_arm64-osx/src/gtest-internal-inl.h
-- Installing: /Users/billyoneal/vcpkg/packages/gtest_arm64-osx/src/gtest-matchers.cc
-- Installing: /Users/billyoneal/vcpkg/packages/gtest_arm64-osx/src/gtest-port.cc
-- Installing: /Users/billyoneal/vcpkg/packages/gtest_arm64-osx/src/gtest-printers.cc
-- Installing: /Users/billyoneal/vcpkg/packages/gtest_arm64-osx/src/gtest-test-part.cc
-- Installing: /Users/billyoneal/vcpkg/packages/gtest_arm64-osx/src/gtest-typed-test.cc
-- Installing: /Users/billyoneal/vcpkg/packages/gtest_arm64-osx/share/gtest/copyright
-- Performing post-build validation
pkgconfig directories should be lib/pkgconfig or lib/debug/pkgconfig.
The following misplaced pkgconfig files were found:

    /Users/billyoneal/vcpkg/packages/gtest_arm64-osx/lib/manual-link/pkgconfig/gmock_main.pc
    /Users/billyoneal/vcpkg/packages/gtest_arm64-osx/lib/manual-link/pkgconfig/gtest_main.pc
    /Users/billyoneal/vcpkg/packages/gtest_arm64-osx/debug/lib/manual-link/pkgconfig/gmock_main.pc
    /Users/billyoneal/vcpkg/packages/gtest_arm64-osx/debug/lib/manual-link/pkgconfig/gtest_main.pc

You can move the pkgconfig files with commands similar to:

    file(MAKE_DIRECTORY  "${CURRENT_PACKAGES_DIR}/lib/pkgconfig" "${CURRENT_PACKAGES_DIR}/lib/debug/pkgconfig")
    file(RENAME "${CURRENT_PACKAGES_DIR}/lib/manual-link/pkgconfig/gmock_main.pc" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
    file(RENAME "${CURRENT_PACKAGES_DIR}/lib/manual-link/pkgconfig/gtest_main.pc" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
    file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/manual-link/pkgconfig/gmock_main.pc" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
    file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/manual-link/pkgconfig/gtest_main.pc" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
    vcpkg_fixup_pkgconfig()

Found 1 error(s). Please correct the portfile:
    /Users/billyoneal/vcpkg/ports/gtest/portfile.cmake
-- Performing post-build validation done
Installing package gtest[core]:arm64-osx...
Elapsed time for package gtest:arm64-osx: 7.916 s

Total elapsed time: 10.12 s

The package gtest provides CMake targets:

    find_package(GTest CONFIG REQUIRED)
    target_link_libraries(main PRIVATE GTest::gmock GTest::gtest GTest::gmock_main GTest::gtest_main)

billyoneal@Billys-MacBook-Pro vcpkg %
```

* Add filenames and REMOVE_RECURSE note.

* Add non x- switch to enforce post build checks, and use "problem" rather than "error".

* Improve warning text again.

* Actually make the hidden switch work :)

* Attempt to fix broken git by updating Azure Pipelines macos agents
2021-11-02 23:56:48 -07:00
Kai Pastor 3647db15d5
Always unset CLICOLOR_FORCE (#241)
* Add test for env:CLICOLOR_FORCE

* Always unset CLICOLOR_FORCE
2021-11-01 22:23:29 -07:00
Billy O'Neal b4bff9afac
Explicitly use the cmake that comes with Visual Studio in order to fix build break triggered by a downgrade of cmake. (#238) 2021-10-26 14:01:52 -07:00
nicole mazzuca 5b939c9c74
[localization 1/n] First minor changes, mostly additive (#218)
* [localization 1/n] First minor changes, mostly additive

Additionally, convert vcpkg.cpp over to using messages.h

* oops, forgot to initialize the context

also, build on msvc & gcc 6

* add cgmanifest and NOTICE

* Add support for signing with fmt

* switch to MAXDWORD

* add localization file

* turn `find_package(fmt)` into a Findfmt script

* check sha

* Raise default locale initialization above filesystem access

* Avoid O(N^2) on happy path

* Address CR comment on formatter<vcpkg::StringLiteral>

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-10-26 09:58:33 -07:00
Billy O'Neal 842ab704f9
Produce binaries for all supported platforms. (#220) 2021-10-18 23:08:04 -07:00
Billy O'Neal 0113d64d3f
Finish POSIX-native filesystem backend. (#213)
* Fix format-cxxcode on the Codespaces Ubuntu images.

* Implement the subset of copy we actually use, and delete checking of VCPKG_USE_STD_FILESYSTEM from the sources.

* Remove detection for C++ standard library and std::filesystem library.

* Add symlinks comment requested by Nicole.
2021-10-11 14:06:46 -07:00
Billy O'Neal 0cd367310c
Add arm64 signed official builds. (#209)
* Add arm64 signed official builds.

* CR fixes requested by Nicole.
2021-10-05 18:51:10 -07:00
nicole mazzuca 660db288ec
[vcpkg] Fix native platform expression (#147)
* fix 'native' platform identifier

* add tests

* fix bugs in end-to-end tests

* fix tests

* more test fixes

* merge with upstream

* format

* fix bug
2021-09-29 14:45:29 -07:00
Billy O'Neal af083071ca
Treat nonexistent directories as if they are empty. (#191)
Resolves https://github.com/microsoft/vcpkg/issues/19552 and adds a test.
2021-09-10 15:37:22 -07:00
Billy O'Neal 3550bb0e86
[ci] Add --x-skipped-cascade-count in support of asserting about cascade count requested in https://github.com/microsoft/vcpkg/pull/20074#issuecomment-916565430 (#188) 2021-09-10 13:50:46 -07:00
Billy O'Neal 959401099b
Use the VSEngSS-MicroBuild2019-1ES pool for signed builds. (#186) 2021-09-08 16:46:38 -07:00
Kevin Lalumiere 5e55749af9
Add triplet option VCPKG_DISABLE_COMPILER_TRACKING (#110)
* Add NO_COMPILER_TRACKING triplet option

* Use 'disable_compiler_tracking'

* Handle per-port compiler tracking

* Add test for compiler tracking

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-08-19 15:54:07 -07:00
Billy O'Neal 85ab112d5e
Repackage macos to make less manual work when creating a github release. (#157) 2021-08-12 18:29:34 -07:00
Robert Schumacher 5058aed7bc
Fix versioning features of transitive manifests (#151)
* Fix versioning features of transitive manifests

* Format manifests
2021-08-11 10:38:41 -07:00
Billy O'Neal 8405016906
Add testing with gcc-6 and fix build breaks. (#150) 2021-08-09 15:49:46 -07:00
Billy O'Neal 8799c7f34e
Delete tests of vcpkg_minimum_required, obsoleted by https://github.com/microsoft/vcpkg/pull/19257 (#144) 2021-08-02 14:43:32 -07:00
Billy O'Neal 5575acecc0
Fix build failure on GCC 7. (#122)
* Fix build failure on GCC 7.

Fixes https://github.com/microsoft/vcpkg/issues/19022

* Fix job name.
2021-07-21 11:26:16 -07:00
Billy O'Neal 1b4f920162
Change signing pool from VSEng-MicroBuildVS2019 to VSEngSS-MicroBuild2019 (#121) 2021-07-19 15:27:51 -07:00
Robert Schumacher 4eba3d3e00
Teach vcpkg fetch to handle msi files (#117)
* Teach vcpkg fetch to handle msi files

* Fix linux build

* Add e2e test for vcpkg fetch
2021-07-15 14:40:06 -07:00
Billy O'Neal 7702b0c076
Fix Robert clean-after-build PR feedback (#73) 2021-06-11 19:59:46 -07:00
Billy O'Neal d448a0e932
Add --clean-non-downloads-after-build switch to be used by CI to reduce our disk consumption there. (#66)
* Add --clean-non-downloads-after-build switch to be used by CI to reduce our disk consumption there.

* Change --clean-non-downloads-after-build to separate switches for each of the 3.

* Delete Util::MoveOnlyBase and Util::ResourceBase.
2021-05-05 03:37:53 -07:00
Robert Schumacher 1bc8779684
Enable manifests, versions, and registries by default (#70)
* Remove stray debug output

* Allow versioning without builtin-baseline

...only if the default registry is replaced

* Enable registries, manifests, versions by default

* Block update and upgrade in manifest mode

* Require baseline for builtin registries

* Improve status reporting for user

Co-authored-by: Robert Schumacher <ras0219@outlook.com>
2021-05-04 16:09:30 -07:00
Robert Schumacher ee93e8f487
Implement pseudo-lockfiles (#69)
* Initial implementation of pseudo-lockfiles

* Migrate e2e test collateral

* Add git registry parsing unit tests

* Increase lockfile value validation (40 hex)

* Fix MSVC Analyze

* Introduce vcpkg-lock.json e2e testing

Add redirection for the registries cache directory via X_VCPKG_REGISTRIES_CACHE

* Fix unit tests

* Handle JSON escaping in lock file test

* Rename VTPResult to VersionsTreePathResult

* Format all version-files collateral

Co-authored-by: Robert Schumacher <ras0219@outlook.com>
2021-05-04 12:36:05 -07:00
autoantwort bb3d81328c
[vcpkg] x-add-version now also checks if the manifest file is properly formatted (#43)
* [vcpkg] x-add-version now also checks if the manifest file is properly formatted

* [vcpkg] x-add-version: add option to skip the formatting check

* [e2e tests] do not check formatting in x-add-version
2021-04-12 16:14:30 -07:00
nicole mazzuca bcd8c5e151
add clang-format version to format-cxxcode (#41) 2021-04-02 15:54:14 -07:00
nicole mazzuca eeb1a46ad5
don't build tls12-download unless it's needed (#33)
* don't build tls12-download unless it's needed

Nobody needs to build it except us, so there's no need to.
Additionally, on mingw, tls12-download fails to build due,
so this also fixes our build on mingw.

* robert CRs, try fix tls12-downloader on mingw

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* fix build issues

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2021-03-22 14:00:18 -07:00
ras0219 de18b82596
[vcpkg] Support self-referencing manifest files (#15) 2021-02-24 14:26:21 -08:00
ras0219 ecba66882f
Update catalog repo SHA (#9) 2021-02-11 13:43:30 -08:00
ras0219 29f09f80a1
[vcpkg] Support host dependencies (#5)
* [vcpkg] Implement host dependencies

* [vcpkg] Fix e2e tests environment manipulation on PS-Core

* [vcpkg] Cut e2e atomic change requirement
2021-02-10 23:56:29 -08:00
nicole mazzuca 768d8f95c9
[vcpkg] Port #14944 to vcpkg-tool 2021-02-03 16:54:57 -08:00
Billy Robert O'Neal III 7881dfc9e2 Add azure-pipelines and e2e tests to vcpkg-tool. 2021-02-03 11:42:38 -08:00
Billy Robert O'Neal III ac41933e92 Produce signed tls12-download.exe. 2021-02-03 11:42:38 -08:00
Billy Robert O'Neal III 84fad6b84f Embed git SHA in signed releases. 2021-02-03 11:42:38 -08:00
Billy Robert O'Neal III 19620a5bc3 Add scaffolding files and signed builds from the main vcpkg repo. 2021-02-03 11:42:38 -08:00