This repository was archived by the owner on May 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathxmake.lua
More file actions
50 lines (43 loc) · 1.3 KB
/
xmake.lua
File metadata and controls
50 lines (43 loc) · 1.3 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
-- project
set_project("dfint-hook")
set_languages("cxxlatest")
-- allowed
set_allowedarchs("windows|x64")
set_allowedmodes("debug", "release")
-- default
set_defaultarchs("windows|x64")
set_defaultmode("release")
-- rules
add_rules("plugin.vsxmake.autoupdate")
add_rules("mode.release")
-- deps
--3rd party local libs
add_linkdirs("deps/lib")
add_includedirs("deps/include")
--3rd party remote libs
add_requires("spdlog")
add_requires("vcpkg::detours")
add_requires("toml++")
option("hook_version")
set_default("not-defined")
target("dfint_hook")
set_default(true)
set_kind("shared")
set_basename("dfint_hook")
-- set_targetdir("E:\\Games\\DF 50.09 steam\\dfint_data") -- build to DF dir, handy for testing
set_pcxxheader("src/hook/pch.h")
add_files("src/hook/*.cpp")
add_packages("spdlog", "vcpkg::detours", "toml++")
add_defines("HOOK_VERSION=\"$(hook_version)\"")
target("dfint_launcher")
set_default(true)
set_kind("binary")
set_basename("dfint_launcher")
-- set_targetdir("E:\\Games\\Dwarf Fortress Steam 50.05\\") -- build to DF dir, handy for testing
add_files("src/launcher/*.cpp")
add_packages("vcpkg::detours")
target("dfint_peparser")
set_default(false)
set_kind("binary")
set_basename("dfint_peparser")
add_files("src/pe_parser/*.cpp")