mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:09:00 +08:00
[anax] fix osx-arm64 build (#23405)
This commit is contained in:
parent
bfc00415da
commit
b25bcfcc2c
15
ports/anax/osx-arm.patch
Normal file
15
ports/anax/osx-arm.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index d427767..80965bc 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -154,10 +154,6 @@ set_target_properties(${ANAX_LIBRARY_NAME} PROPERTIES
|
||||
SOVERSION ${ANAX_VERSION_MAJOR}
|
||||
)
|
||||
|
||||
-if(APPLE)
|
||||
- set_target_properties(${ANAX_LIBRARY_NAME} PROPERTIES OSX_ARCHITECTURES "i386;x86_64;")
|
||||
-endif()
|
||||
-
|
||||
# Library files
|
||||
install(
|
||||
TARGETS ${ANAX_LIBRARY_NAME}
|
@ -8,20 +8,19 @@ vcpkg_from_github(
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
Add-bin-output.patch
|
||||
osx-arm.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/anax)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/anax/LICENSE ${CURRENT_PACKAGES_DIR}/share/anax/copyright)
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
@ -1,7 +1,14 @@
|
||||
{
|
||||
"name": "anax",
|
||||
"version-string": "2.1.0",
|
||||
"port-version": 7,
|
||||
"version": "2.1.0",
|
||||
"port-version": 8,
|
||||
"description": "An open source C++ entity system.",
|
||||
"homepage": "https://github.com/miguelmartin75/anax"
|
||||
"homepage": "https://github.com/miguelmartin75/anax",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "db4b3bfeef52da822588d5bb85a4b3bf9affa80f",
|
||||
"version": "2.1.0",
|
||||
"port-version": 8
|
||||
},
|
||||
{
|
||||
"git-tree": "347d15eb157a2bad09742ec97dfc417674936982",
|
||||
"version-string": "2.1.0",
|
||||
|
@ -78,7 +78,7 @@
|
||||
},
|
||||
"anax": {
|
||||
"baseline": "2.1.0",
|
||||
"port-version": 7
|
||||
"port-version": 8
|
||||
},
|
||||
"angelscript": {
|
||||
"baseline": "2.35.1",
|
||||
|
Loading…
Reference in New Issue
Block a user