Skip to content

Commit

Permalink
[libtracepoint/libtracepoint-control] disable building tools (#39025)
Browse files Browse the repository at this point in the history
libtracepoint should disable building tools/samples/examples. Some of
this was already disabled but the settings need to be updated. Noticed
because libtracepoint tool build fails if building in an environment
that does not default to C++17 or later.

- [X] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [x] SHA512s are updated for each updated download.
- [x] The "supports" clause reflects platforms that may be fixed by this
new version.
- [x] Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.
- [x] Any patches that are no longer applied are deleted from the port's
directory.
- [X] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [X] Only one version is added to each modified port's versions file.
  • Loading branch information
idigdoug authored Jun 6, 2024
1 parent 7c638ca commit 557b1bb
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 3 deletions.
6 changes: 5 additions & 1 deletion ports/libtracepoint-control/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ vcpkg_from_github(
HEAD_REF main)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/libtracepoint-control-cpp")
SOURCE_PATH "${SOURCE_PATH}/libtracepoint-control-cpp"
OPTIONS
-DBUILD_SAMPLES=OFF
-DBUILD_TESTS=OFF
-DBUILD_TOOLS=OFF)

vcpkg_cmake_install()
vcpkg_copy_pdbs()
Expand Down
1 change: 1 addition & 0 deletions ports/libtracepoint-control/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "libtracepoint-control",
"version": "1.3.3",
"port-version": 1,
"description": "C++ classes for collecting Linux Tracepoints",
"homepage": "https://github.com/microsoft/LinuxTracepoints/",
"license": "MIT",
Expand Down
1 change: 1 addition & 0 deletions ports/libtracepoint/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/libtracepoint"
OPTIONS
-DBUILD_SAMPLES=OFF
-DBUILD_TOOLS=OFF
-DBUILD_TESTS=OFF)

vcpkg_cmake_install()
Expand Down
1 change: 1 addition & 0 deletions ports/libtracepoint/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "libtracepoint",
"version": "1.3.3",
"port-version": 1,
"description": "C/C++ interface for generating Linux Tracepoints",
"homepage": "https://github.com/microsoft/LinuxTracepoints/",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5082,11 +5082,11 @@
},
"libtracepoint": {
"baseline": "1.3.3",
"port-version": 0
"port-version": 1
},
"libtracepoint-control": {
"baseline": "1.3.3",
"port-version": 0
"port-version": 1
},
"libtracepoint-decode": {
"baseline": "1.3.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libtracepoint-control.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b43d20ba774f4d86540350bd84f420e1bcaa386b",
"version": "1.3.3",
"port-version": 1
},
{
"git-tree": "a7ecad1d1d9fe9cebd7c2fa230a505d2de1b9087",
"version": "1.3.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libtracepoint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "4f06adb290d6c05a65c1c62c8e37edc43f33eeac",
"version": "1.3.3",
"port-version": 1
},
{
"git-tree": "48afed6e8645bb1e96e453d14f730f984b41ba6c",
"version": "1.3.3",
Expand Down

0 comments on commit 557b1bb

Please sign in to comment.