-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake5.lua
49 lines (42 loc) · 1.24 KB
/
premake5.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
46
47
48
49
-- Premake 5 LUA Script
-- This is your default premake + conan script
-- Modifiy it by your needs
-- Include conan gennerate script
include("conanbuildinfo.premake.lua")
-- Project workspace
workspace "JavaTest"
-- Import conan gennerate config
conan_basic_setup()
-- Project
project "JavaHost"
-- Basic setup
kind "ConsoleApp"
language "C++"
cppdialect "C++20"
targetdir "bin/%{cfg.buildcfg}"
objdir "bin/%{cfg.buildcfg}/obj/"
location "src/JavaHost"
debugdir "%{wks.location}/app"
-- Source files
files { "%{prj.location}/**.h", "%{prj.location}/**.cpp" }
-- Enable delay loading
links { "delayimp.lib" }
-- Include java
includedirs {
"%{wks.location}/jdk/include",
"%{wks.location}/jdk/include/win32"
}
libdirs{
"%{wks.location}/jdk/lib"
}
links { "jvm.lib" }
linkoptions {"/DELAYLOAD:\"jvm.dll\""}
-- C++ Defines
filter "configurations:Debug"
defines { "DEBUG"}
symbols "On"
filter ""
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
filter ""