mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-05-08 09:39:34 +00:00
added support for qmake
This commit is contained in:
parent
724247d321
commit
59c4c1c0de
6
.gitignore
vendored
6
.gitignore
vendored
@ -12,3 +12,9 @@ CMakeSettings.json
|
|||||||
.vscode
|
.vscode
|
||||||
examples_build
|
examples_build
|
||||||
|
|
||||||
|
|
||||||
|
*.stash
|
||||||
|
|
||||||
|
*.o
|
||||||
|
|
||||||
|
*.user
|
||||||
|
23
pe-parser-library/pe-parser.pri
Normal file
23
pe-parser-library/pe-parser.pri
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
!isEmpty(PE_LIB):error("Deploy.pri already included")
|
||||||
|
PE_LIB = 1
|
||||||
|
|
||||||
|
#DEPENDS
|
||||||
|
CONFIG(release, debug|release): {
|
||||||
|
PE_LIB_OUTPUT_DIR="$$PWD/build/release"
|
||||||
|
} else {
|
||||||
|
PE_LIB_OUTPUT_DIR="$$PWD/build/debug"
|
||||||
|
}
|
||||||
|
|
||||||
|
LIBS += -L$$PE_LIB_OUTPUT_DIR -lPE
|
||||||
|
|
||||||
|
INCLUDEPATH += "$$PWD/include/parser-library"
|
||||||
|
|
||||||
|
|
||||||
|
|
46
pe-parser-library/pe-parser.pro
Normal file
46
pe-parser-library/pe-parser.pro
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------
|
||||||
|
#
|
||||||
|
# Project created by QtCreator 2019-01-26T13:55:47
|
||||||
|
#
|
||||||
|
#-------------------------------------------------
|
||||||
|
|
||||||
|
QT -= gui
|
||||||
|
|
||||||
|
TARGET = PE
|
||||||
|
TEMPLATE = lib
|
||||||
|
|
||||||
|
DEFINES += PEPARSER_LIBRARY
|
||||||
|
|
||||||
|
# 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"
|
||||||
|
}
|
||||||
|
|
||||||
|
HEADERS += \
|
||||||
|
include/parser-library/nt-headers.h \
|
||||||
|
include/parser-library/parse.h \
|
||||||
|
include/parser-library/to_string.h
|
||||||
|
|
||||||
|
SOURCES += \
|
||||||
|
src/buffer.cpp \
|
||||||
|
src/parse.cpp
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
// keep this header above "windows.h" because it contains many types
|
// keep this header above "windows.h" because it contains many types
|
||||||
#include <parser-library/parse.h>
|
#include <include/parser-library/parse.h>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
|
@ -28,9 +28,9 @@ THE SOFTWARE.
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
#include <parser-library/nt-headers.h>
|
#include <include/parser-library/nt-headers.h>
|
||||||
#include <parser-library/parse.h>
|
#include <include/parser-library/parse.h>
|
||||||
#include <parser-library/to_string.h>
|
#include <include/parser-library/to_string.h>
|
||||||
|
|
||||||
namespace peparse {
|
namespace peparse {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user