2021-08-19 08:14:57 +08:00
if ( VCPKG_TARGET_IS_WINDOWS )
vcpkg_check_linkage ( ONLY_STATIC_LIBRARY )
endif ( )
vcpkg_from_github (
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
R E P O o p e n - t e l e m e t r y / o p e n t e l e m e t r y - c p p
2023-02-08 07:31:57 +08:00
R E F " v $ { V E R S I O N } "
2024-02-29 08:40:03 +08:00
S H A 5 1 2 9 7 6 3 5 b b a f 6 d d 5 6 7 c 2 0 1 4 5 1 d f a f 7 8 1 5 b 2 0 5 2 f e 5 0 d 9 b c c c 9 7 a a d e 8 6 c f a 4 a 9 2 6 5 1 3 7 4 d 1 6 7 2 9 6 a 5 4 5 3 0 3 1 b 2 6 8 1 d c 3 0 2 8 0 6 a 2 8 9 b c a 0 1 1 a 9 e 7 9 d d c 3 8 1 a 1 7 d 6 1 1 8 9 7 1 d 7
2021-08-19 08:14:57 +08:00
H E A D _ R E F m a i n
2022-10-15 08:52:31 +08:00
P A T C H E S
2023-04-11 03:50:22 +08:00
# Missing find_dependency for Abseil
a d d - m i s s i n g - f i n d - d e p e n d e n c y . p a t c h
2021-08-19 08:14:57 +08:00
)
vcpkg_check_features ( OUT_FEATURE_OPTIONS FEATURE_OPTIONS
F E A T U R E S
e t w W I T H _ E T W
z i p k i n W I T H _ Z I P K I N
p r o m e t h e u s W I T H _ P R O M E T H E U S
e l a s t i c s e a r c h W I T H _ E L A S T I C S E A R C H
2023-02-08 07:31:57 +08:00
o t l p - h t t p W I T H _ O T L P _ H T T P
2023-04-14 05:58:46 +08:00
o t l p - g r p c W I T H _ O T L P _ G R P C
2024-01-26 04:58:28 +08:00
g e n e v a W I T H _ G E N E V A
2021-08-19 08:14:57 +08:00
)
2021-11-06 04:00:50 +08:00
# opentelemetry-proto is a third party submodule and opentelemetry-cpp release did not pack it.
2024-02-01 08:01:42 +08:00
if ( WITH_OTLP_GRPC OR WITH_OTLP_HTTP )
[opentelemetry-cpp] upgrade to release v1.14.0 (#36816)
<!-- If your PR fixes issues, please note that here by adding "Fixes
#NNNNNN." for each fixed issue on separate lines. -->
<!-- If you are still working on the PR, open it as a Draft:
https://github.blog/2019-02-14-introducing-draft-pull-requests/. -->
<!-- If this PR updates an existing port, please uncomment and fill out
this checklist:
- [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.
END OF PORT UPDATE CHECKLIST (delete this line) -->
Upgrade to v1.14.0 release of OpenTelemetry-Cpp
https://github.com/open-telemetry/opentelemetry-cpp/releases/tag/v1.14.0.
The opentelemetry-cpp[geneva] feature was also updated to reflect the
change in v1.14.0
The port opentelemetry-fluentd depends on opentelemetry-cpp, and it is
broken on this upgrade, so it is deleted because it has been moved to
opentelemetry-cpp[geneva] in this PR.
<!-- If this PR adds a new port, please uncomment and fill out this
checklist:
- [ ] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [ ] The name of the port matches an existing name for this component
on https://repology.org/ if possible, and/or is strongly associated with
that component on search engines.
- [ ] Optional dependencies are resolved in exactly one way. For
example, if the component is built with CMake, all `find_package` calls
are REQUIRED, are satisfied by `vcpkg.json`'s declared dependencies, or
disabled with
[CMAKE_DISABLE_FIND_PACKAGE_Xxx](https://cmake.org/cmake/help/latest/variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName.html).
- [ ] The versioning scheme in `vcpkg.json` matches what upstream says.
- [ ] The license declaration in `vcpkg.json` matches what upstream
says.
- [ ] The installed as the "copyright" file matches what upstream says.
- [ ] The source code of the component installed comes from an
authoritative source.
- [ ] The generated "usage text" is accurate. See
[adding-usage](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/examples/adding-usage.md)
for context.
- [ ] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [ ] Only one version is in the new port's versions file.
- [ ] Only one version is added to each modified port's versions file.
END OF NEW PORT CHECKLIST (delete this line) -->
2024-02-22 03:39:59 +08:00
set ( OTEL_PROTO_VERSION "1.1.0" )
2021-11-06 04:00:50 +08:00
vcpkg_download_distfile ( ARCHIVE
U R L S " h t t p s : / / g i t h u b . c o m / o p e n - t e l e m e t r y / o p e n t e l e m e t r y - p r o t o / a r c h i v e / v $ { O T E L _ P R O T O _ V E R S I O N } . t a r . g z "
F I L E N A M E " o p e n t e l e m e t r y - p r o t o - $ { O T E L _ P R O T O _ V E R S I O N } . t a r . g z "
[opentelemetry-cpp] upgrade to release v1.14.0 (#36816)
<!-- If your PR fixes issues, please note that here by adding "Fixes
#NNNNNN." for each fixed issue on separate lines. -->
<!-- If you are still working on the PR, open it as a Draft:
https://github.blog/2019-02-14-introducing-draft-pull-requests/. -->
<!-- If this PR updates an existing port, please uncomment and fill out
this checklist:
- [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.
END OF PORT UPDATE CHECKLIST (delete this line) -->
Upgrade to v1.14.0 release of OpenTelemetry-Cpp
https://github.com/open-telemetry/opentelemetry-cpp/releases/tag/v1.14.0.
The opentelemetry-cpp[geneva] feature was also updated to reflect the
change in v1.14.0
The port opentelemetry-fluentd depends on opentelemetry-cpp, and it is
broken on this upgrade, so it is deleted because it has been moved to
opentelemetry-cpp[geneva] in this PR.
<!-- If this PR adds a new port, please uncomment and fill out this
checklist:
- [ ] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [ ] The name of the port matches an existing name for this component
on https://repology.org/ if possible, and/or is strongly associated with
that component on search engines.
- [ ] Optional dependencies are resolved in exactly one way. For
example, if the component is built with CMake, all `find_package` calls
are REQUIRED, are satisfied by `vcpkg.json`'s declared dependencies, or
disabled with
[CMAKE_DISABLE_FIND_PACKAGE_Xxx](https://cmake.org/cmake/help/latest/variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName.html).
- [ ] The versioning scheme in `vcpkg.json` matches what upstream says.
- [ ] The license declaration in `vcpkg.json` matches what upstream
says.
- [ ] The installed as the "copyright" file matches what upstream says.
- [ ] The source code of the component installed comes from an
authoritative source.
- [ ] The generated "usage text" is accurate. See
[adding-usage](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/examples/adding-usage.md)
for context.
- [ ] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [ ] Only one version is in the new port's versions file.
- [ ] Only one version is added to each modified port's versions file.
END OF NEW PORT CHECKLIST (delete this line) -->
2024-02-22 03:39:59 +08:00
S H A 5 1 2 c d 2 0 9 9 1 e f b 2 d 7 f 1 b c 8 6 5 0 f d 0 e 1 2 4 b e 7 0 7 9 2 2 b 0 7 1 7 e 4 2 9 b 6 2 1 2 3 9 0 c d 2 c 0 d 0 a f d b 4 0 3 c 9 a e c e 1 9 6 f 0 7 a e 8 1 e b e d 9 4 8 8 6 3 f 4 e c 7 5 c 0 8 f f b b 3 9 6 8 7 9 5 a 0 0 1 0 d 5 c b 3 4 d c 1 b
2021-11-06 04:00:50 +08:00
)
2022-10-15 08:52:31 +08:00
vcpkg_extract_source_archive ( src ARCHIVE "${ARCHIVE}" )
2022-09-27 02:35:51 +08:00
file ( REMOVE_RECURSE "${SOURCE_PATH}/third_party/opentelemetry-proto" )
2022-10-15 08:52:31 +08:00
file ( COPY "${src}/." DESTINATION "${SOURCE_PATH}/third_party/opentelemetry-proto" )
# Create empty .git directory to prevent opentelemetry from cloning it during build time
file ( MAKE_DIRECTORY "${SOURCE_PATH}/third_party/opentelemetry-proto/.git" )
2023-03-29 04:35:06 +08:00
list ( APPEND FEATURE_OPTIONS -DCMAKE_CXX_STANDARD=14 )
2024-01-06 05:57:04 +08:00
list ( APPEND FEATURE_OPTIONS "-DgRPC_CPP_PLUGIN_EXECUTABLE=${CURRENT_HOST_INSTALLED_DIR}/tools/grpc/grpc_cpp_plugin${VCPKG_HOST_EXECUTABLE_SUFFIX}" )
2021-11-06 04:00:50 +08:00
endif ( )
2024-01-26 04:58:28 +08:00
set ( OPENTELEMETRY_CPP_EXTERNAL_COMPONENTS "OFF" )
if ( WITH_GENEVA )
# Geneva exporters from opentelemetry-cpp-contrib are tightly coupled with opentelemetry-cpp repo, so they should be ported as a feature under opentelemetry-cpp.
vcpkg_from_github (
O U T _ S O U R C E _ P A T H C O N T R I B _ S O U R C E _ P A T H
R E P O o p e n - t e l e m e t r y / o p e n t e l e m e t r y - c p p - c o n t r i b
2024-02-29 08:40:03 +08:00
R E F 6 8 8 8 5 b e e 3 b 1 6 0 e e 7 a 0 3 2 8 7 2 c 8 f a 6 e c f 6 8 a 7 f 4 e d c
2024-01-26 04:58:28 +08:00
H E A D _ R E F m a i n
2024-02-29 08:40:03 +08:00
S H A 5 1 2 5 e 7 d e 7 8 2 0 e 4 7 3 2 7 4 4 8 f 5 f 2 c b f d 5 f 2 1 c 1 c 6 6 3 4 2 5 7 9 c 3 6 9 5 8 7 b a 2 4 0 1 4 9 7 c 5 5 b 7 e 8 e b b 1 a e c 1 e 5 e 0 e b 1 2 9 1 b 6 4 a 3 1 b d d 7 2 5 f b 6 5 5 4 4 3 6 b 7 b 9 5 c 0 d b e 7 7 7 c 6 6 9 f f 0 5 8 a b 6
2024-01-26 04:58:28 +08:00
)
[opentelemetry-cpp] upgrade to release v1.14.0 (#36816)
<!-- If your PR fixes issues, please note that here by adding "Fixes
#NNNNNN." for each fixed issue on separate lines. -->
<!-- If you are still working on the PR, open it as a Draft:
https://github.blog/2019-02-14-introducing-draft-pull-requests/. -->
<!-- If this PR updates an existing port, please uncomment and fill out
this checklist:
- [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.
END OF PORT UPDATE CHECKLIST (delete this line) -->
Upgrade to v1.14.0 release of OpenTelemetry-Cpp
https://github.com/open-telemetry/opentelemetry-cpp/releases/tag/v1.14.0.
The opentelemetry-cpp[geneva] feature was also updated to reflect the
change in v1.14.0
The port opentelemetry-fluentd depends on opentelemetry-cpp, and it is
broken on this upgrade, so it is deleted because it has been moved to
opentelemetry-cpp[geneva] in this PR.
<!-- If this PR adds a new port, please uncomment and fill out this
checklist:
- [ ] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [ ] The name of the port matches an existing name for this component
on https://repology.org/ if possible, and/or is strongly associated with
that component on search engines.
- [ ] Optional dependencies are resolved in exactly one way. For
example, if the component is built with CMake, all `find_package` calls
are REQUIRED, are satisfied by `vcpkg.json`'s declared dependencies, or
disabled with
[CMAKE_DISABLE_FIND_PACKAGE_Xxx](https://cmake.org/cmake/help/latest/variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName.html).
- [ ] The versioning scheme in `vcpkg.json` matches what upstream says.
- [ ] The license declaration in `vcpkg.json` matches what upstream
says.
- [ ] The installed as the "copyright" file matches what upstream says.
- [ ] The source code of the component installed comes from an
authoritative source.
- [ ] The generated "usage text" is accurate. See
[adding-usage](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/examples/adding-usage.md)
for context.
- [ ] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [ ] Only one version is in the new port's versions file.
- [ ] Only one version is added to each modified port's versions file.
END OF NEW PORT CHECKLIST (delete this line) -->
2024-02-22 03:39:59 +08:00
set ( OPENTELEMETRY_CPP_EXTERNAL_COMPONENTS "${CONTRIB_SOURCE_PATH}/exporters/geneva" )
if ( VCPKG_TARGET_IS_WINDOWS )
set ( OPENTELEMETRY_CPP_EXTERNAL_COMPONENTS "${OPENTELEMETRY_CPP_EXTERNAL_COMPONENTS}\;${CONTRIB_SOURCE_PATH}/exporters/geneva-trace" )
else ( )
set ( OPENTELEMETRY_CPP_EXTERNAL_COMPONENTS "${OPENTELEMETRY_CPP_EXTERNAL_COMPONENTS}\;${CONTRIB_SOURCE_PATH}/exporters/fluentd" )
endif ( )
2024-01-26 04:58:28 +08:00
endif ( )
2021-08-19 08:14:57 +08:00
vcpkg_cmake_configure (
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
O P T I O N S
- D B U I L D _ T E S T I N G = O F F
- D W I T H _ E X A M P L E S = O F F
2023-03-16 01:28:02 +08:00
- D O P E N T E L E M E T R Y _ I N S T A L L = O N
2023-04-11 03:50:22 +08:00
- D W I T H _ A B S E I L = O N
[opentelemetry-cpp] upgrade to release v1.14.0 (#36816)
<!-- If your PR fixes issues, please note that here by adding "Fixes
#NNNNNN." for each fixed issue on separate lines. -->
<!-- If you are still working on the PR, open it as a Draft:
https://github.blog/2019-02-14-introducing-draft-pull-requests/. -->
<!-- If this PR updates an existing port, please uncomment and fill out
this checklist:
- [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.
END OF PORT UPDATE CHECKLIST (delete this line) -->
Upgrade to v1.14.0 release of OpenTelemetry-Cpp
https://github.com/open-telemetry/opentelemetry-cpp/releases/tag/v1.14.0.
The opentelemetry-cpp[geneva] feature was also updated to reflect the
change in v1.14.0
The port opentelemetry-fluentd depends on opentelemetry-cpp, and it is
broken on this upgrade, so it is deleted because it has been moved to
opentelemetry-cpp[geneva] in this PR.
<!-- If this PR adds a new port, please uncomment and fill out this
checklist:
- [ ] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [ ] The name of the port matches an existing name for this component
on https://repology.org/ if possible, and/or is strongly associated with
that component on search engines.
- [ ] Optional dependencies are resolved in exactly one way. For
example, if the component is built with CMake, all `find_package` calls
are REQUIRED, are satisfied by `vcpkg.json`'s declared dependencies, or
disabled with
[CMAKE_DISABLE_FIND_PACKAGE_Xxx](https://cmake.org/cmake/help/latest/variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName.html).
- [ ] The versioning scheme in `vcpkg.json` matches what upstream says.
- [ ] The license declaration in `vcpkg.json` matches what upstream
says.
- [ ] The installed as the "copyright" file matches what upstream says.
- [ ] The source code of the component installed comes from an
authoritative source.
- [ ] The generated "usage text" is accurate. See
[adding-usage](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/examples/adding-usage.md)
for context.
- [ ] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [ ] Only one version is in the new port's versions file.
- [ ] Only one version is added to each modified port's versions file.
END OF NEW PORT CHECKLIST (delete this line) -->
2024-02-22 03:39:59 +08:00
- D O P E N T E L E M E T R Y _ E X T E R N A L _ C O M P O N E N T _ P A T H = $ { O P E N T E L E M E T R Y _ C P P _ E X T E R N A L _ C O M P O N E N T S }
2021-08-19 08:14:57 +08:00
$ { F E A T U R E _ O P T I O N S }
2023-04-14 05:58:46 +08:00
M A Y B E _ U N U S E D _ V A R I A B L E S
2024-01-26 04:58:28 +08:00
W I T H _ G E N E V A
2021-08-19 08:14:57 +08:00
)
vcpkg_cmake_install ( )
2024-01-06 05:57:04 +08:00
vcpkg_cmake_config_fixup ( CONFIG_PATH "lib/cmake/${PORT}" )
2021-08-19 08:14:57 +08:00
vcpkg_copy_pdbs ( )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" )
2023-04-14 05:58:46 +08:00
vcpkg_install_copyright ( FILE_LIST "${SOURCE_PATH}/LICENSE" )