[akali] Update string replace method to embed AKALI_STATIC (#24741)

* [teemo] Update to v2.7

* [teemo] Format manifest

* [teemo] Update to v2.7

* [akali] Update to v1.43

* [akali] Update to v1.43

* [akali] Update to v1.43

* overwrite version

* add license

* overwrite version

* [akali] Update string replace method.

* [akali] run x-add-version command.

Co-authored-by: FrankXie <v-frankxie@microsoft.com>
Co-authored-by: admin <admin@windows.com>
This commit is contained in:
winsoft666 2022-05-18 08:03:10 +08:00 committed by GitHub
parent 0eb37f499e
commit 8de52b066f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 5 deletions

View File

@ -25,13 +25,11 @@ elseif(EXISTS "${CURRENT_PACKAGES_DIR}/share/akali")
vcpkg_cmake_config_fixup(CONFIG_PATH share/akali) vcpkg_cmake_config_fixup(CONFIG_PATH share/akali)
endif() endif()
file(READ "${CURRENT_PACKAGES_DIR}/include/akali/akali_export.h" "${AKALI_EXPORT_H}")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
string(REPLACE "#ifdef AKALI_STATIC" "#if 1" AKALI_EXPORT_H "${AKALI_EXPORT_H}") vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/akali/akali_export.h" "#ifdef AKALI_STATIC" "#if 1")
else() else()
string(REPLACE "#ifdef AKALI_STATIC" "#if 0" AKALI_EXPORT_H "${AKALI_EXPORT_H}") vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/akali/akali_export.h" "#ifdef AKALI_STATIC" "#if 0")
endif() endif()
file(WRITE "${CURRENT_PACKAGES_DIR}/include/akali/akali_export.h" "${AKALI_EXPORT_H}")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

View File

@ -1,6 +1,7 @@
{ {
"name": "akali", "name": "akali",
"version": "1.43", "version": "1.43",
"port-version": 1,
"description": "C++ Common Library.", "description": "C++ Common Library.",
"homepage": "https://github.com/winsoft666/akali", "homepage": "https://github.com/winsoft666/akali",
"license": "MIT", "license": "MIT",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "a0090858a22905c2856b8796f852d1a403081be7",
"version": "1.43",
"port-version": 1
},
{ {
"git-tree": "5e97f0348cd1def4c594fda413436a01609923ec", "git-tree": "5e97f0348cd1def4c594fda413436a01609923ec",
"version": "1.43", "version": "1.43",

View File

@ -38,7 +38,7 @@
}, },
"akali": { "akali": {
"baseline": "1.43", "baseline": "1.43",
"port-version": 0 "port-version": 1
}, },
"alac": { "alac": {
"baseline": "2017-11-03-c38887c5", "baseline": "2017-11-03-c38887c5",