-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake.lua
45 lines (39 loc) · 1.06 KB
/
premake.lua
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
workspace "jc3-console-thing"
configurations { "Debug", "Release" }
location "out"
systemversion "latest"
language "C++"
targetdir "out/%{cfg.buildcfg}"
objdir "out"
cppdialect "c++17"
characterset "MBCS"
architecture "x64"
disablewarnings { "26451", "26491", "26495", "28020" }
defines { "WIN32", "WIN32_LEAN_AND_MEAN", "_CRT_SECURE_NO_WARNINGS", "_CRT_NONSTDC_NO_DEPRECATE" }
filter "configurations:Debug"
defines { "DEBUG", "_DEBUG", "_ITERATOR_DEBUG_LEVEL=0" }
symbols "On"
filter "configurations:Release"
optimize "On"
project "xinput9_1_0"
kind "SharedLib"
linkoptions { "/DEF:\"../src/xinput9_1_0.def\"" }
dependson { "fw1" }
links { "out/%{cfg.buildcfg}/fw1" }
files {
"src/**.h",
"src/**.cpp",
"src/xinput9_1_0.def",
"deps/libudis86/*.c",
"deps/libudis86/*.h",
}
includedirs {
"src",
"deps/libudis86",
"deps/fw1"
}
defines { "NOMINMAX" }
disablewarnings { "4005", "4244", "4267", "4996", "6031", "6262" }
project "fw1"
kind "StaticLib"
files { "deps/fw1/*.h", "deps/fw1/*.cpp" }