Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions ports/easy-profiler/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO yse/easy_profiler
REF "v${VERSION}"
SHA512 101d84a903315456ac24d060da6269e02ac0030e966b801910543c39980042e92082b2430daaa9ab48ced90fb5fc0adf43dfab647615742d32950a1667c3630f
HEAD_REF develop
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DEASY_PROFILER_NO_GUI=ON
-DEASY_PROFILER_NO_SAMPLES=ON
)
Comment on lines +9 to +14
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DEASY_PROFILER_NO_GUI=ON
-DEASY_PROFILER_NO_SAMPLES=ON
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DEASY_PROFILER_NO_GUI=ON
-DEASY_PROFILER_NO_SAMPLES=ON
)

This, and similar everywhere else.


vcpkg_cmake_install()

vcpkg_copy_tools(
TOOL_NAMES "profiler_converter"
AUTO_CLEAN
)

vcpkg_cmake_config_fixup(
CONFIG_PATH "lib/cmake/easy_profiler"
PACKAGE_NAME easy_profiler
)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE "${CURRENT_PACKAGES_DIR}/LICENSE.APACHE")
file(REMOVE "${CURRENT_PACKAGES_DIR}/LICENSE.MIT")
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/LICENSE.APACHE")
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/LICENSE.MIT")

vcpkg_install_copyright(
FILE_LIST
"${SOURCE_PATH}/LICENSE"
"${SOURCE_PATH}/easy_profiler_core/LICENSE.MIT"
"${SOURCE_PATH}/easy_profiler_core/LICENSE.APACHE"
)
18 changes: 18 additions & 0 deletions ports/easy-profiler/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "easy-profiler",
"version": "2.1.0",
"description": "Lightweight profiler library for c++",
"homepage": "https://github.com/yse/easy_profiler",
"license": "MIT OR Apache-2.0",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
Comment on lines +1 to +18
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vcpkg format-manifest ports/easyprofiler/vcpkg.json

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say "we should make that a check" and then I remembered we actually did and that's why it's red 😅

4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2676,6 +2676,10 @@
"baseline": "9.97.1",
"port-version": 1
},
"easy-profiler": {
"baseline": "2.1.0",
"port-version": 0
},
"eathread": {
"baseline": "1.32.09",
"port-version": 5
Expand Down
9 changes: 9 additions & 0 deletions versions/e-/easy-profiler.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "6723deb535025f823e691a80a81d87bcc7ca6ce7",
"version": "2.1.0",
"port-version": 0
}
]
}