added qmake wraper

This commit is contained in:
Andrei Yankovich 2021-02-28 12:41:02 +03:00
parent 097b35511e
commit de005f2744
3 changed files with 36 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
Build/

17
LIEF.pri Normal file
View File

@ -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

18
includeLIEF.pri Normal file
View File

@ -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"