-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.lua
More file actions
38 lines (35 loc) · 962 Bytes
/
make.lua
File metadata and controls
38 lines (35 loc) · 962 Bytes
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
local lm = require "luamake"
local vcpkg = "D:\\vcpkg\\packages"
local libpngpath = vcpkg .. "\\libpng_x64-windows"
local zlibpath = vcpkg .. "\\zlib_x64-windows"
--local ortlibpath = "D:\\onnxruntime-win-x64-1.10.0"
local ortlibpath = "D:\\onnxruntime-training-win-x64-1.16.3"
-- [[
lm:lua_dll "pngutils" {
includes = {
libpngpath .. "\\include",
zlibpath .. "\\include"
},
linkdirs = {
libpngpath .. "\\lib",
zlibpath .. "\\lib"
},
links = {"libpng16", "zlib"},
sources = "pngutils.c",
mode = "debug",
msvc = {
flags = "/utf-8",
},
}--]]
lm:lua_dll "luaort" {
includes = ortlibpath .. "\\include",
--includes = "D:\\onnxruntime\\include\\onnxruntime\\core\\session",
linkdirs = ortlibpath .. "\\lib",
--linkdirs = "D:\\onnxbuild\\Release\\Release",
links = "onnxruntime",
sources = "ort.c",
mode = "debug",
msvc = {
flags = "/utf-8",
}
}