зеркало из https://github.com/microsoft/vcpkg.git
[ChakraCore] enable find_package (#28769)
* [chakracore] add cmake config * . * . * . * wip * fix review comments * .
This commit is contained in:
Родитель
74e940f647
Коммит
cf4f1fb3eb
|
@ -125,6 +125,11 @@ endif()
|
|||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(INSTALL
|
||||
"${CMAKE_CURRENT_LIST_DIR}/unofficial-chakracore-config.cmake"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}"
|
||||
)
|
||||
|
||||
file(INSTALL
|
||||
"${SOURCE_PATH}/LICENSE.txt"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/share/chakracore"
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
if(NOT TARGET unofficial::chakracore::chakracore)
|
||||
add_library(unofficial::chakracore::chakracore UNKNOWN IMPORTED)
|
||||
|
||||
find_path(ChakraCore_INCLUDE_DIR NAMES ChakraCore.h)
|
||||
|
||||
set_target_properties(unofficial::chakracore::chakracore PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${ChakraCore_INCLUDE_DIR}"
|
||||
)
|
||||
|
||||
find_library(ChakraCore_LIBRARY_RELEASE NAMES ChakraCore PATHS "${CMAKE_CURRENT_LIST_DIR}/../../lib" NO_DEFAULT_PATH REQUIRED)
|
||||
find_library(ChakraCore_LIBRARY_DEBUG NAMES ChakraCore PATHS "${CMAKE_CURRENT_LIST_DIR}/../../debug/lib" NO_DEFAULT_PATH REQUIRED)
|
||||
|
||||
set_target_properties(unofficial::chakracore::chakracore PROPERTIES
|
||||
IMPORTED_LOCATION_DEBUG "${ChakraCore_LIBRARY_DEBUG}"
|
||||
IMPORTED_LOCATION_RELEASE "${ChakraCore_LIBRARY_RELEASE}"
|
||||
IMPORTED_CONFIGURATIONS "Release;Debug"
|
||||
)
|
||||
endif()
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "chakracore",
|
||||
"version-date": "2022-11-09",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "Core part of the Chakra Javascript engine",
|
||||
"homepage": "https://github.com/Microsoft/ChakraCore",
|
||||
"license": "MIT",
|
||||
|
|
|
@ -1406,7 +1406,7 @@
|
|||
},
|
||||
"chakracore": {
|
||||
"baseline": "2022-11-09",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"charls": {
|
||||
"baseline": "2.4.1",
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "637e8045c68adfe4a6164f368027093dffb79ab6",
|
||||
"version-date": "2022-11-09",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "5683685d0b153859c9547c04beafa4543b58bc26",
|
||||
"version-date": "2022-11-09",
|
||||
|
|
Загрузка…
Ссылка в новой задаче