-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
73 lines (67 loc) · 1.95 KB
/
Copy pathxmake.lua
File metadata and controls
73 lines (67 loc) · 1.95 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
set_xmakever("3.0.9")
set_policy("package.requires_lock", true)
if is_plat("windows") then
local project_root = os.projectdir()
add_cxflags(
"/Brepro",
"/experimental:deterministic",
'/d1trimfile:"' .. project_root .. '"',
'/pathmap:"' .. project_root .. '"=.',
{
tools = "cl",
force = true
})
add_shflags("/Brepro", "/PDBALTPATH:%_PDB%", {
force = true
})
end
local commonlibsf = path.join(os.projectdir(), "lib", "commonlibsf")
includes(commonlibsf)
local plugin_name = "TrackQuestFromMap"
local dll_name = "TrackQuestFromMarker"
local plugin_version = "0.3.2"
local plugin_author = "Quantumyilmaz"
set_project(plugin_name)
set_version(plugin_version)
set_license("GPL-3.0-or-later")
set_languages("c++23")
set_warnings("allextra")
add_rules("mode.debug", "mode.releasedbg", "mode.release")
add_rules("plugin.vsxmake.autoupdate")
target(dll_name)
add_rules("commonlibsf.plugin", {
author = plugin_author,
name = plugin_name,
options = {
sig_scanning = false,
address_library = true,
no_struct_use = false,
layout_dependent = true
}
})
set_pcxxheader("src/PCH.h")
add_defines("_SILENCE_CXX23_ALIGNED_STORAGE_DEPRECATION_WARNING")
add_files(
"src/plugin.cpp",
"src/GalaxyMap.cpp",
"src/GalaxyMapSelection.cpp",
"src/Hooks.cpp",
"src/QuestTracking.cpp",
"src/StarMapInput.cpp",
"src/StarMapSelection.cpp",
"src/SurfaceMap.cpp",
"src/SurfaceMapSelection.cpp"
)
add_headerfiles(
"src/PCH.h",
"src/GalaxyMap.h",
"src/GalaxyMapSelection.h",
"src/Hooks.h",
"src/QuestTracking.h",
"src/StarMapInput.h",
"src/StarMapSelection.h",
"src/StarMapSelectionUtil.h",
"src/SurfaceMap.h",
"src/SurfaceMapSelection.h"
)
add_includedirs("src")