mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-04-26 04:14:32 +00:00
Rename libpe-parser-library -> libpe-parse (#138)
Co-authored-by: William Woodruff <william@yossarian.net>
This commit is contained in:
parent
035679c10b
commit
a54ea62286
@ -1,3 +1,3 @@
|
|||||||
include VERSION
|
include VERSION
|
||||||
include pepy/README.md
|
include pepy/README.md
|
||||||
include pe-parser-library/include/parser-library/*.h
|
include pe-parser-library/include/pe-parse/*.h
|
||||||
|
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
|
|||||||
project(dump-pe)
|
project(dump-pe)
|
||||||
|
|
||||||
add_executable(${PROJECT_NAME} main.cpp)
|
add_executable(${PROJECT_NAME} main.cpp)
|
||||||
target_link_libraries(${PROJECT_NAME} PRIVATE pe-parser-library)
|
target_link_libraries(${PROJECT_NAME} PRIVATE pe-parse)
|
||||||
target_compile_options(${PROJECT_NAME} PRIVATE ${GLOBAL_CXXFLAGS})
|
target_compile_options(${PROJECT_NAME} PRIVATE ${GLOBAL_CXXFLAGS})
|
||||||
|
|
||||||
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION "bin")
|
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION "bin")
|
||||||
|
@ -27,7 +27,7 @@ THE SOFTWARE.
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
#include <parser-library/parse.h>
|
#include <pe-parse/parse.h>
|
||||||
|
|
||||||
using namespace peparse;
|
using namespace peparse;
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ endif ()
|
|||||||
find_package(pe-parse REQUIRED)
|
find_package(pe-parse REQUIRED)
|
||||||
|
|
||||||
add_executable(${PROJECT_NAME} main.cpp)
|
add_executable(${PROJECT_NAME} main.cpp)
|
||||||
target_link_libraries(${PROJECT_NAME} pe-parse::pe-parser-library)
|
target_link_libraries(${PROJECT_NAME} pe-parse::pe-parse)
|
||||||
target_compile_options(${PROJECT_NAME} PRIVATE ${PEADDRCONV_CXXFLAGS})
|
target_compile_options(${PROJECT_NAME} PRIVATE ${PEADDRCONV_CXXFLAGS})
|
||||||
|
|
||||||
install(TARGETS ${PROJECT_NAME} DESTINATION "bin")
|
install(TARGETS ${PROJECT_NAME} DESTINATION "bin")
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
|
||||||
project(pe-parser-library)
|
project(pe-parse)
|
||||||
|
|
||||||
message(STATUS "VERSION file: ${PROJECT_SOURCE_DIR}/../VERSION")
|
message(STATUS "VERSION file: ${PROJECT_SOURCE_DIR}/../VERSION")
|
||||||
|
|
||||||
@ -9,9 +9,9 @@ add_compile_definitions(PEPARSE_VERSION="${PEPARSE_VERSION}")
|
|||||||
|
|
||||||
# List all files explicitly; this will make IDEs happy (i.e. QtCreator, CLion, ...)
|
# List all files explicitly; this will make IDEs happy (i.e. QtCreator, CLion, ...)
|
||||||
list(APPEND PEPARSERLIB_SOURCEFILES
|
list(APPEND PEPARSERLIB_SOURCEFILES
|
||||||
include/parser-library/parse.h
|
include/pe-parse/parse.h
|
||||||
include/parser-library/nt-headers.h
|
include/pe-parse/nt-headers.h
|
||||||
include/parser-library/to_string.h
|
include/pe-parse/to_string.h
|
||||||
|
|
||||||
src/buffer.cpp
|
src/buffer.cpp
|
||||||
src/parse.cpp
|
src/parse.cpp
|
||||||
@ -64,4 +64,4 @@ install(
|
|||||||
NAMESPACE pe-parse::
|
NAMESPACE pe-parse::
|
||||||
EXPORT_LINK_INTERFACE_LIBRARIES
|
EXPORT_LINK_INTERFACE_LIBRARIES
|
||||||
)
|
)
|
||||||
install(DIRECTORY "include/parser-library" DESTINATION "include")
|
install(DIRECTORY "include/pe-parse" DESTINATION "include")
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
find_path(PEPARSE_INCLUDE_DIR "parser-library/parse.h")
|
find_path(PEPARSE_INCLUDE_DIR "pe-parse/parse.h")
|
||||||
find_library(PEPARSE_LIBRARIES NAMES "libpe-parser-library" "pe-parser-library")
|
find_library(PEPARSE_LIBRARIES NAMES "libpe-parse" "pe-parse")
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
find_package_handle_standard_args(pe-parse DEFAULT_MSG PEPARSE_INCLUDE_DIR PEPARSE_LIBRARIES)
|
find_package_handle_standard_args(pe-parse DEFAULT_MSG PEPARSE_INCLUDE_DIR PEPARSE_LIBRARIES)
|
||||||
|
@ -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 <pe-parse/parse.h>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
|
@ -29,9 +29,9 @@ THE SOFTWARE.
|
|||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <parser-library/nt-headers.h>
|
#include <pe-parse/nt-headers.h>
|
||||||
#include <parser-library/parse.h>
|
#include <pe-parse/parse.h>
|
||||||
#include <parser-library/to_string.h>
|
#include <pe-parse/to_string.h>
|
||||||
|
|
||||||
namespace peparse {
|
namespace peparse {
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ THE SOFTWARE.
|
|||||||
|
|
||||||
#include <codecvt>
|
#include <codecvt>
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include <parser-library/to_string.h>
|
#include <pe-parse/to_string.h>
|
||||||
|
|
||||||
namespace peparse {
|
namespace peparse {
|
||||||
// See
|
// See
|
||||||
|
@ -23,7 +23,7 @@ THE SOFTWARE.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#include <parser-library/to_string.h>
|
#include <pe-parse/to_string.h>
|
||||||
|
|
||||||
namespace peparse {
|
namespace peparse {
|
||||||
std::string from_utf16(const UCharString &u) {
|
std::string from_utf16(const UCharString &u) {
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
#include <parser-library/parse.h>
|
#include <pe-parse/parse.h>
|
||||||
#include <structmember.h>
|
#include <structmember.h>
|
||||||
|
|
||||||
using namespace peparse;
|
using namespace peparse;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user