| 1 |
// modulemap |
| 2 |
|
| 3 |
module compiler { |
| 4 |
header "compiler.h" |
| 5 |
} |
| 6 |
module string_utils { |
| 7 |
header "string_utils.h" |
| 8 |
} |
| 9 |
module dbus { |
| 10 |
header "dbus.h" |
| 11 |
} |
| 12 |
module kernel { |
| 13 |
header "kernel.h" |
| 14 |
} |
| 15 |
module utils { |
| 16 |
// Has macros expands to calloc/malloc |
| 17 |
header "utils.h" |
| 18 |
export libc.stdlib |
| 19 |
} |
| 20 |
module region { |
| 21 |
header "region.h" |
| 22 |
} |
| 23 |
module picom { |
| 24 |
header "picom.h" |
| 25 |
} |
| 26 |
module types { |
| 27 |
header "types.h" |
| 28 |
} |
| 29 |
module c2 { |
| 30 |
header "c2.h" |
| 31 |
} |
| 32 |
module render { |
| 33 |
header "render.h" |
| 34 |
} |
| 35 |
module options { |
| 36 |
header "options.h" |
| 37 |
} |
| 38 |
module opengl { |
| 39 |
header "opengl.h" |
| 40 |
} |
| 41 |
module diagnostic { |
| 42 |
header "diagnostic.h" |
| 43 |
} |
| 44 |
module win_defs { |
| 45 |
header "win_defs.h" |
| 46 |
} |
| 47 |
module win { |
| 48 |
header "win.h" |
| 49 |
export win_defs |
| 50 |
} |
| 51 |
module log { |
| 52 |
header "log.h" |
| 53 |
export compiler |
| 54 |
} |
| 55 |
module x { |
| 56 |
header "x.h" |
| 57 |
} |
| 58 |
module vsync { |
| 59 |
header "vsync.h" |
| 60 |
} |
| 61 |
module common { |
| 62 |
header "common.h" |
| 63 |
} |
| 64 |
module config { |
| 65 |
header "config.h" |
| 66 |
} |
| 67 |
module cache { |
| 68 |
header "cache.h" |
| 69 |
} |
| 70 |
module backend { |
| 71 |
module gl { |
| 72 |
module gl_common { |
| 73 |
header "backend/gl/gl_common.h" |
| 74 |
} |
| 75 |
module glx { |
| 76 |
header "backend/gl/glx.h" |
| 77 |
export GL.glx |
| 78 |
} |
| 79 |
} |
| 80 |
module backend { |
| 81 |
header "backend/backend.h" |
| 82 |
} |
| 83 |
module backend_common { |
| 84 |
header "backend/backend_common.h" |
| 85 |
} |
| 86 |
} |
| 87 |
module xcb [system] { |
| 88 |
module xcb { |
| 89 |
header "/usr/include/xcb/xcb.h" |
| 90 |
export * |
| 91 |
} |
| 92 |
module randr { |
| 93 |
header "/usr/include/xcb/randr.h" |
| 94 |
export * |
| 95 |
} |
| 96 |
module render { |
| 97 |
header "/usr/include/xcb/render.h" |
| 98 |
export * |
| 99 |
} |
| 100 |
module sync { |
| 101 |
header "/usr/include/xcb/sync.h" |
| 102 |
export * |
| 103 |
} |
| 104 |
module composite { |
| 105 |
header "/usr/include/xcb/composite.h" |
| 106 |
export * |
| 107 |
} |
| 108 |
module xfixes { |
| 109 |
header "/usr/include/xcb/xfixes.h" |
| 110 |
export * |
| 111 |
} |
| 112 |
module damage { |
| 113 |
header "/usr/include/xcb/damage.h" |
| 114 |
export * |
| 115 |
} |
| 116 |
module xproto { |
| 117 |
header "/usr/include/xcb/xproto.h" |
| 118 |
export * |
| 119 |
} |
| 120 |
module present { |
| 121 |
header "/usr/include/xcb/present.h" |
| 122 |
} |
| 123 |
module util { |
| 124 |
module render { |
| 125 |
header "/usr/include/xcb/xcb_renderutil.h" |
| 126 |
export * |
| 127 |
} |
| 128 |
} |
| 129 |
} |
| 130 |
module X11 [system] { |
| 131 |
module Xlib { |
| 132 |
header "/usr/include/X11/Xlib.h" |
| 133 |
export * |
| 134 |
} |
| 135 |
module Xutil { |
| 136 |
header "/usr/include/X11/Xutil.h" |
| 137 |
export * |
| 138 |
} |
| 139 |
} |
| 140 |
module GL [system] { |
| 141 |
module glx { |
| 142 |
header "/usr/include/GL/glx.h" |
| 143 |
export * |
| 144 |
} |
| 145 |
module gl { |
| 146 |
header "/usr/include/GL/gl.h" |
| 147 |
export * |
| 148 |
} |
| 149 |
} |
| 150 |
module libc [system] { |
| 151 |
export * |
| 152 |
module assert { |
| 153 |
export * |
| 154 |
textual header "/usr/include/assert.h" |
| 155 |
} |
| 156 |
module string { |
| 157 |
export * |
| 158 |
header "/usr/include/string.h" |
| 159 |
} |
| 160 |
module ctype { |
| 161 |
export * |
| 162 |
header "/usr/include/ctype.h" |
| 163 |
} |
| 164 |
module errno { |
| 165 |
export * |
| 166 |
header "/usr/include/errno.h" |
| 167 |
} |
| 168 |
module fenv { |
| 169 |
export * |
| 170 |
header "/usr/include/fenv.h" |
| 171 |
} |
| 172 |
module inttypes { |
| 173 |
export * |
| 174 |
header "/usr/include/inttypes.h" |
| 175 |
} |
| 176 |
module math { |
| 177 |
export * |
| 178 |
header "/usr/include/math.h" |
| 179 |
} |
| 180 |
module setjmp { |
| 181 |
export * |
| 182 |
header "/usr/include/setjmp.h" |
| 183 |
} |
| 184 |
module stdio { |
| 185 |
export * |
| 186 |
header "/usr/include/stdio.h" |
| 187 |
} |
| 188 |
|
| 189 |
module stdlib [system] { |
| 190 |
export * |
| 191 |
header "/usr/include/stdlib.h" |
| 192 |
} |
| 193 |
} |
| 194 |
|
| 195 |
// glib specific header. In it's own module because it |
| 196 |
// doesn't exist on some systems with unpatched glib 2.26+ |
| 197 |
module "xlocale.h" [system] { |
| 198 |
export * |
| 199 |
header "/usr/include/xlocale.h" |
| 200 |
} |
| 201 |
|
| 202 |
// System header that we have difficult with merging. |
| 203 |
module "sys_types.h" [system] { |
| 204 |
export * |
| 205 |
header "/usr/include/sys/types.h" |
| 206 |
} |
| 207 |
|
| 208 |
module "signal.h" [system] { |
| 209 |
export * |
| 210 |
header "/usr/include/signal.h" |
| 211 |
} |