-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathxmake.lua
More file actions
57 lines (45 loc) · 1.71 KB
/
Copy pathxmake.lua
File metadata and controls
57 lines (45 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
-- set minimum xmake version
set_xmakever("3.0.0")
includes("lib/commonlibsse-ng")
local build_version = os.getenv("SVS_BUILD_VERSION") or "1.4.9"
local build_version_string = os.getenv("SVS_BUILD_VERSION_STRING") or build_version
local major, minor, patch = build_version:match("^(%d+)%.(%d+)%.(%d+)$")
if not major then
error("SVS_BUILD_VERSION must be in major.minor.patch format, got " .. build_version)
end
set_project("SkyrimVanitySystem")
set_version(build_version)
set_license("GPL-3.0")
set_languages("c++23")
set_warnings("allextra")
set_policy("package.requires_lock", true)
add_rules("mode.release", "mode.debug", "mode.releasedbg")
add_rules("plugin.vsxmake.autoupdate")
add_requires("nlohmann_json v3.12.0")
add_requires("rapidcsv v8.92")
target("SkyrimVanitySystem")
set_version(build_version)
add_deps("commonlibsse-ng")
add_packages("nlohmann_json")
add_rules("commonlibsse-ng.plugin", {
name = "Skyrim Vanity System",
author = "PenguinToast",
description = "SKSE64 plugin using CommonLibSSE-NG and Dear ImGui"
})
add_defines("SVS_VERSION_MAJOR=" .. major)
add_defines("SVS_VERSION_MINOR=" .. minor)
add_defines("SVS_VERSION_PATCH=" .. patch)
add_defines('SVS_VERSION_STRING="' .. build_version_string .. '"')
add_files("src/**.cpp")
add_files(
"lib/imgui/imgui.cpp",
"lib/imgui/imgui_draw.cpp",
"lib/imgui/imgui_tables.cpp",
"lib/imgui/imgui_widgets.cpp",
"lib/imgui/backends/imgui_impl_dx11.cpp",
"lib/imgui/backends/imgui_impl_win32.cpp"
)
add_headerfiles("src/**.h")
add_includedirs("src", "lib/imgui", "lib/imgui/backends")
add_syslinks("d3d11", "dxgi")
set_pcxxheader("src/pch.h")