Files
wmaker/bazel/wmaker/BUILD.bazel
T
trurl 3f9b61fa9d Factor //wmaker/pixmap into a distinct lib.
Start factoring out //wmaker/screen. with interface decls needed by
//wmaker/pixmap.
2025-02-09 17:38:33 -05:00

178 lines
3.7 KiB
Python

package(default_visibility = ["//visibility:public"])
cc_library(
name = "gnustep_compat",
hdrs = ["GNUstep.h"],
visibility = ["//visibility:public"],
)
cc_library(
name = "global_display",
hdrs = ["global_display.h"],
srcs = ["global_display.c"],
deps = ["@x11//:lib"],
)
cc_library(
name = "wconfig",
hdrs = ["wconfig.h"],
)
cc_library(
name = "cursor",
hdrs = ["cursor.h"],
)
cc_library(
name = "geometry",
hdrs = ["geometry.h"],
)
cc_library(
name = "preferences",
hdrs = ["preferences.h"],
srcs = ["preferences.c"],
deps = [
":cursor",
":geometry",
":wconfig",
"//wrlib",
"//WINGs",
],
)
# TODO: factor this apart into at least 1 library. (Shared functions defined in
# main.c will have to go elsewhere.)
cc_binary(
name = "wmaker",
copts = [
"-DMAGICKCORE_HDRI_ENABLE=0",
"-DMAGICKCORE_QUANTUM_DEPTH=16",
"-DMAGICKCORE_CHANNEL_MASK_DEPTH=32",
],
srcs = [
"WindowMaker.h",
"actions.h",
"appicon.h",
"application.h",
"appmenu.h",
"balloon.h",
"client.h",
"colormap.h",
"cycling.h",
"def_pixmaps.h",
"defaults.h",
"dialog.h",
"dock.h",
"dockedapp.h",
"event.h",
"extend_pixmaps.h",
"framewin.h",
"geomview.h",
"icon.h",
"keybind.h",
"main.h",
"menu.h",
"misc.h",
"monitor.h",
"osdep.h",
"pixmap.h",
"placement.h",
"properties.h",
"resources.h",
"rootmenu.h",
"screen.h",
"session.h",
"shutdown.h",
"stacking.h",
"startup.h",
"superfluous.h",
"switchmenu.h",
"switchpanel.h",
"texture.h",
"usermenu.h",
"wconfig.h",
"wcore.h",
"wdefaults.h",
"window.h",
"winmenu.h",
"winspector.h",
"wmspec.h",
"workspace.h",
"wsmap.h",
"xdnd.h",
"xinerama.h",
"xmodifier.h",
"xutil.h",
"motif.h", # TODO: MWM hints used to be optional.
"actions.c",
"appicon.c",
"application.c",
"appmenu.c",
"balloon.c",
"client.c",
"colormap.c",
"cycling.c",
"defaults.c",
"dialog.c",
"dock.c",
"dockedapp.c",
"event.c",
"framewin.c",
"geomview.c",
"icon.c",
"main.c",
"menu.c",
"monitor.c",
"moveres.c",
"pixmap.c",
"placement.c",
"properties.c",
"resources.c",
"rootmenu.c",
"screen.c",
"session.c",
"shutdown.c",
"stacking.c",
"startup.c",
"superfluous.c",
"switchmenu.c",
"switchpanel.c",
"texture.c",
"usermenu.c",
"wcore.c",
"wdefaults.c",
"window.c",
"winmenu.c",
"winspector.c",
"wmspec.c",
"workspace.c",
"wsmap.c",
"xdnd.c", # TODO: XDnD support used to be optional.
"motif.c", # TODO: MWM hints used to be optional.
"xinerama.c",
"xutil.c",
# TODO: only support Linux for now.
# "osdep_bsd.c",
# "osdep_darwin.c",
"osdep_linux.c",
# "osdep_stub.c",
# begin USE_NESTED_FUNC
"misc.c",
"xmodifier.c",
# end USE_NESTED_FUNC
],
deps = [
"//WINGs",
"//config",
"//wrlib",
"@ImageMagick//:lib",
"@MagickWand//:lib",
"@libgif//:lib",
"@libtiff-4//:lib",
"@pango//:lib",
"@x11//:lib",
"@xinerama//:lib",
],
)