mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 02:11:58 +08:00
[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:
parent
0eb37f499e
commit
8de52b066f
@ -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")
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user