Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Nov 30, 2024
1 parent de49dce commit 1e7b4be
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ else()
set(LIEF_VERSION_PATCH "0")
endif()

if (DEFINED ENV{LIEF_COMMIT})
set(LIEF_COMMIT_HASH "$ENV{LIEF_COMMIT}")
endif()

if (DEFINED ENV{LIEF_BRANCH})
set(LIEF_GIT_BRANCH "$ENV{LIEF_BRANCH}")
endif()

# LIEF Project
# ============
project(LIEF VERSION
Expand Down
1 change: 1 addition & 0 deletions api/python/backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def _get_env_string(self, string: str) -> str:
python_version=os.getenv("LIEF_TARGET_PYTHON_VERSION", ""),
python_version_alt=os.getenv("LIEF_TARGET_PYTHON_VERSION", "").replace('.', ''),
architecture=os.getenv("LIEF_TARGET_ARCHITECTURE", ""),
ci_project_dir=os.getenv("CI_PROJECT_DIR", ""),
)
return formatted

Expand Down
39 changes: 39 additions & 0 deletions scripts/docker/ci/linux/x86_64/py-wheel.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[lief.build]
type = "Release"
cache = true
ninja = true
parallel-jobs = 0
cxx-compiler = "clang++"
c-compiler = "clang"
lief-install-dir = "{ci_project_dir}/lief-static-install/"
extra-cmake-opt = [
"--toolchain /cmake/linux/linux-glibc28.cmake",
"-DPython_VERSION={python_version}",
"-DCMAKE_COLOR_DIAGNOSTICS=ON",
"-DCMAKE_CXX_COMPILER=clang++",
"-DCMAKE_C_COMPILER=clang",
"-DCMAKE_MODULE_PATH=/cmake/linux/",
]

[lief.formats]
elf = true
pe = true
macho = true
android = true
art = true
vdex = true
oat = true
dex = true

[lief.features]
json = true
frozen = true

[lief.logging]
enabled = true
debug = false

[lief.cross-compilation]
platform = "manylinux_2_28_x86_64"
pyversion = "cp{python_version_alt}"
abi = "cp{python_version_alt}"

0 comments on commit 1e7b4be

Please sign in to comment.