-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathglfw.BUILD
50 lines (46 loc) · 1.06 KB
/
glfw.BUILD
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
COMMON_HEADERS = [
"src/internal.h",
"src/mappings.h",
"include/GLFW/glfw3.h",
"include/GLFW/glfw3native.h",
]
COMMON_SOURCES = [
"src/context.c",
"src/init.c",
"src/input.c",
"src/monitor.c",
"src/vulkan.c",
"src/window.c",
]
X11_HEADERS = [
"src/x11_platform.h",
"src/xkb_unicode.h",
"src/posix_time.h",
"src/posix_thread.h",
"src/glx_context.h",
"src/egl_context.h",
"src/osmesa_context.h",
"src/linux_joystick.h",
]
X11_SOURCES = [
"src/x11_init.c",
"src/x11_monitor.c",
"src/x11_window.c",
"src/xkb_unicode.c",
"src/posix_time.c",
"src/posix_thread.c",
"src/glx_context.c",
"src/egl_context.c",
"src/osmesa_context.c",
"src/linux_joystick.c",
]
cc_library(
name = "glfw",
srcs = COMMON_SOURCES + X11_SOURCES,
hdrs = COMMON_HEADERS + X11_HEADERS,
deps = ["@com_lunarg_sdk_vulkan//:vulkan_repository"],
includes = ["include"],
visibility = ["//visibility:public"],
defines = ["_GLFW_X11=1"],
linkopts = ["-ldl", "-lX11", "-lpthread"],
)