-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
fenster-dev-1.rockspec
108 lines (108 loc) · 1.93 KB
/
fenster-dev-1.rockspec
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
rockspec_format = '3.0'
package = 'fenster'
version = 'dev-1' -- this will be replaced by the release workflow
source = {
url = 'git+https://github.com/jonasgeiler/lua-fenster',
branch = 'main', -- this will be replaced by the release workflow
}
description = {
summary = 'The most minimal cross-platform GUI library - now in Lua!',
detailed = '' ..
'A Lua binding for the fenster (https://github.com/zserge/fenster) ' ..
'C library, providing a minimal cross-platform GUI library for ' ..
'creating windows and drawing pixels.',
license = 'MIT',
homepage = 'https://github.com/jonasgeiler/lua-fenster',
issues_url = 'https://github.com/jonasgeiler/lua-fenster/issues',
maintainer = 'Jonas Geiler',
labels = {
'gui', 'graphics', 'pixel', 'windowing', '2d', 'drawing', 'window',
'framebuffer', 'gui-library',
},
}
dependencies = {
'lua >= 5.1, <= 5.4',
}
build_dependencies = {
platforms = {
macosx = {
'luarocks-build-extended',
},
},
}
external_dependencies = {
platforms = {
linux = {
X11 = {
library = 'X11',
},
},
win32 = {
GDI32 = {
library = 'gdi32',
},
USER32 = {
library = 'user32',
},
},
},
}
build = {
type = 'builtin',
modules = {
fenster = {
sources = 'src/main.c',
},
},
platforms = {
linux = {
modules = {
fenster = {
libraries = {
'X11',
},
incdirs = {
'$(X11_INCDIR)',
},
libdirs = {
'$(X11_LIBDIR)',
},
},
},
},
win32 = {
modules = {
fenster = {
libraries = {
'gdi32',
'user32',
},
incdirs = {
'$(GDI32_INCDIR)',
'$(USER32_INCDIR)',
},
libdirs = {
'$(GDI32_LIBDIR)',
'$(USER32_LIBDIR)',
},
},
},
},
macosx = {
type = 'extended',
modules = {
fenster = {
variables = {
LIBFLAG_EXTRAS = {
'-framework', 'Cocoa',
},
},
},
},
},
},
}
test = {
type = 'busted',
flags = '--verbose',
}