mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-04-26 20:34:31 +00:00
qmake support added
This commit is contained in:
parent
59c4c1c0de
commit
e2aa74a854
35
dump-pe/dump-pe.pro
Normal file
35
dump-pe/dump-pe.pro
Normal file
@ -0,0 +1,35 @@
|
||||
#
|
||||
# Copyright (C) 2018-2019 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.
|
||||
#
|
||||
|
||||
QT -= gui
|
||||
|
||||
TARGET = dump-pe
|
||||
TEMPLATE = lib
|
||||
|
||||
# The following define makes your compiler emit warnings if you use
|
||||
# any feature of Qt which has been marked as deprecated (the exact warnings
|
||||
# depend on your compiler). Please consult the documentation of the
|
||||
# deprecated API in order to know how to port your code away from it.
|
||||
DEFINES += QT_DEPRECATED_WARNINGS
|
||||
|
||||
# You can also make your code fail to compile if you use deprecated APIs.
|
||||
# In order to do so, uncomment the following line.
|
||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
|
||||
CONFIG(release, debug|release): {
|
||||
DESTDIR="$$PWD/build/release"
|
||||
} else {
|
||||
DESTDIR="$$PWD/build/debug"
|
||||
}
|
||||
|
||||
include($$PWD/../pe-parser-library/pe-parser-library.pri)
|
||||
|
||||
SOURCES += \
|
||||
main.cpp
|
||||
|
||||
|
21
pe-parse.pro
Executable file
21
pe-parse.pro
Executable file
@ -0,0 +1,21 @@
|
||||
#
|
||||
# Copyright (C) 2018-2019 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.
|
||||
#
|
||||
|
||||
TEMPLATE = subdirs
|
||||
CONFIG += ordered
|
||||
|
||||
SUBDIRS += \
|
||||
pe-parser-library \
|
||||
dump-pe
|
||||
|
||||
|
||||
|
||||
#CQtDeployer.depends=QuasarAppLib
|
||||
#CQtDeployer.depends=Deploy
|
||||
|
||||
#QuasarAppLib.file = $$PWD/QuasarAppLib/QuasarApp.pro
|
||||
#Pe.file = $$PWD/pe/pe-parser-library/pe-parser.pro
|
@ -5,7 +5,7 @@
|
||||
# of this license document, but changing it is not allowed.
|
||||
#
|
||||
|
||||
!isEmpty(PE_LIB):error("Deploy.pri already included")
|
||||
!isEmpty(PE_LIB):error("pe-parser-library.pri already included")
|
||||
PE_LIB = 1
|
||||
|
||||
#DEPENDS
|
||||
@ -15,9 +15,9 @@ CONFIG(release, debug|release): {
|
||||
PE_LIB_OUTPUT_DIR="$$PWD/build/debug"
|
||||
}
|
||||
|
||||
LIBS += -L$$PE_LIB_OUTPUT_DIR -lPE
|
||||
LIBS += -L$$PE_LIB_OUTPUT_DIR -lpe-parser-library
|
||||
|
||||
INCLUDEPATH += "$$PWD/include/parser-library"
|
||||
INCLUDEPATH += "$$PWD/include"
|
||||
|
||||
|
||||
|
@ -5,16 +5,9 @@
|
||||
# of this license document, but changing it is not allowed.
|
||||
#
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
#
|
||||
# Project created by QtCreator 2019-01-26T13:55:47
|
||||
#
|
||||
#-------------------------------------------------
|
||||
|
||||
QT -= gui
|
||||
|
||||
TARGET = PE
|
||||
TARGET = pe-parser-library
|
||||
TEMPLATE = lib
|
||||
|
||||
DEFINES += PEPARSER_LIBRARY
|
||||
@ -36,6 +29,9 @@ CONFIG(release, debug|release): {
|
||||
DESTDIR="$$PWD/build/debug"
|
||||
}
|
||||
|
||||
INCLUDEPATH += "$$PWD/include"
|
||||
|
||||
|
||||
HEADERS += \
|
||||
include/parser-library/nt-headers.h \
|
||||
include/parser-library/parse.h \
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
||||
#include <fstream>
|
||||
|
||||
// keep this header above "windows.h" because it contains many types
|
||||
#include <include/parser-library/parse.h>
|
||||
#include <parser-library/parse.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
|
@ -28,9 +28,9 @@ THE SOFTWARE.
|
||||
#include <vector>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <include/parser-library/nt-headers.h>
|
||||
#include <include/parser-library/parse.h>
|
||||
#include <include/parser-library/to_string.h>
|
||||
#include <parser-library/nt-headers.h>
|
||||
#include <parser-library/parse.h>
|
||||
#include <parser-library/to_string.h>
|
||||
|
||||
namespace peparse {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user