diff --git a/ports/easy-profiler/portfile.cmake b/ports/easy-profiler/portfile.cmake new file mode 100644 index 00000000000000..f26d712a828a53 --- /dev/null +++ b/ports/easy-profiler/portfile.cmake @@ -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 +) + +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" +) diff --git a/ports/easy-profiler/vcpkg.json b/ports/easy-profiler/vcpkg.json new file mode 100644 index 00000000000000..b1f350993d8082 --- /dev/null +++ b/ports/easy-profiler/vcpkg.json @@ -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 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 9449822978fecc..e8c549cc8ba759 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/e-/easy-profiler.json b/versions/e-/easy-profiler.json new file mode 100644 index 00000000000000..eb799bba51de76 --- /dev/null +++ b/versions/e-/easy-profiler.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "6723deb535025f823e691a80a81d87bcc7ca6ce7", + "version": "2.1.0", + "port-version": 0 + } + ] +}