diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..527b85c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +Build/ diff --git a/LIEF.pri b/LIEF.pri new file mode 100644 index 0000000..40bf116 --- /dev/null +++ b/LIEF.pri @@ -0,0 +1,17 @@ +# +# Copyright (C) 2021-2021 QuasarApp. +# Distributed under the lgplv3 software license, see the accompanying +# Everyone is permitted to copy and distribute verbatim copies +# of this license document, but changing it is not allowed. +# + +CMD=cmake -DLIEF_PYTHON_API=off -DLIEF_EXAMPLES=off -DLIEF_LOGGING=off -DLIEF_LOGGING_DEBUG=off -DLIEF_ENABLE_JSON=off -DLIEF_OAT=off -DLIEF_DEX=off -DLIEF_VDEX=off -DLIEF_ART=off -DBUILD_SHARED_LIBS=on -DCMAKE_BUILD_TYPE=Release $$PWD -BBuild +message(lief cmake command = $$CMD) +system($$CMD) + +all.depends += lief + +lief.commands=cmake --build $$PWD/Build --target LIB_LIEF --config Release --parallel 4 + +QMAKE_EXTRA_TARGETS += \ + lief diff --git a/includeLIEF.pri b/includeLIEF.pri new file mode 100644 index 0000000..64e2bd8 --- /dev/null +++ b/includeLIEF.pri @@ -0,0 +1,18 @@ +# +# Copyright (C) 2021-2021 QuasarApp. +# Distributed under the lgplv3 software license, see the accompanying +# Everyone is permitted to copy and distribute verbatim copies +# of this license document, but changing it is not allowed. +# + +!isEmpty(LIEF_LIB):error("includeLIEF.pri already included") +LIEF_LIB = 1 + +#DEPENDS +LIEF_LIB_OUTPUT_DIR="$$PWD/Build" + + +LIBS += -L$$DEPLOY_LIB_OUTPUT_DIR -llief + + +INCLUDEPATH += "$$PWD/include"