qmake support added

This commit is contained in:
Andrei Yankovich 2019-03-25 15:27:06 +03:00
parent 59c4c1c0de
commit e2aa74a854
6 changed files with 67 additions and 15 deletions

35
dump-pe/dump-pe.pro Normal file
View 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
View 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

View File

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

View File

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

View File

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

View File

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