Skip to content

Commit

Permalink
peloader: add package
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Sep 25, 2024
1 parent 944d0f0 commit 48146e3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions packages/p/peloader/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package("peloader")
set_kind("binary")
set_homepage("https://github.com/Hagrid29/PELoader")
set_description("PE loader with various shellcode injection techniques")

add_urls("https://github.com/Hagrid29/PELoader.git")

add_versions("2022.10.17", "bb0fdb546abc670fa5a600fe6f35e988d38ff9fe")

add_deps("libpeconv")

on_install("windows", "mingw", "msys", function (package)
io.writefile("xmake.lua", [[
add_rules("mode.debug", "mode.release")
add_requires("libpeconv")
target("PELoader")
set_kind("binary")
add_files("PELoader/PELoader/*.cpp")
add_headerfiles("PELoader/PELoader/*.h")
add_packages("libpeconv")
]])
import("package.tools.xmake").install(package)
end)

on_test(function (package)
os.vrun("PELoader")
end)

0 comments on commit 48146e3

Please sign in to comment.