Skip to content

Commit

Permalink
Various updates
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Jul 20, 2024
1 parent 4c67c5b commit fec7d01
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion api/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ if(APPLE)
endif()


if (UNIX)
if (UNIX OR MUSL)
if (LIEF_PYTHON_STATIC)
set_target_properties(pyLIEF PROPERTIES SUFFIX ".a")
else()
Expand Down
11 changes: 11 additions & 0 deletions api/rust/cargo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ license = "Apache-2.0"
description = "Official Rust bindings for LIEF."
readme = "README.md"
version = "0.15.0"
homepage = "https://lief.re"
keywords = ["ELF", "PE", "Mach-O", "reverse-engineering"]
repository = "https://github.com/lief-project/LIEF"
categories = [
"api-bindings",
"development-tools::debugging",
"development-tools::profiling",
"development-tools::build-utils",
"parser-implementations",
"parsing"
]

[workspace]
members = [
Expand Down
2 changes: 1 addition & 1 deletion doc/sphinx/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ Changelog
:Abstraction:

* `LIEF::EXE_FORMATS` is now scoped in `LIEF::Binary::FORMATS`
* ``LIEF::EXE_FORMATS`` is now scoped in ``LIEF::Binary::FORMATS``
* All the `Binary` classes now implement `classof`:

.. code-block:: cpp
Expand Down
14 changes: 8 additions & 6 deletions package/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,20 @@ set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
set(CPACK_PACKAGE_HOMEPAGE_URL "https://lief-project.github.io/")

set(CPACK_ARCH "${CMAKE_SYSTEM_PROCESSOR}")
if (UNIX)
if (UNIX OR MUSL)
if(DEFINED CMAKE_OSX_ARCHITECTURES AND NOT "${CMAKE_OSX_ARCHITECTURES}" STREQUAL "")
string(REPLACE ";" "-" CPACK_ARCH "${CMAKE_OSX_ARCHITECTURES}")
endif()
set(CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}-${CPACK_ARCH}")
if (IOS)
set(CPACK_SYSTEM_NAME "iOS-${CPACK_ARCH}")
else()
set(CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}-${CPACK_ARCH}")
endif()
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}")
endif()

if(UNIX AND NOT APPLE) # Linux
set(CPACK_GENERATOR "TGZ")
set(CPACK_SOURCE_GENERATOR "TGZ")
endif()
set(CPACK_GENERATOR "TGZ")
set(CPACK_SOURCE_GENERATOR "TGZ")

if(UNIX AND APPLE) # OSX / iOS
set(CPACK_GENERATOR "TGZ")
Expand Down

0 comments on commit fec7d01

Please sign in to comment.