aboutsummaryrefslogtreecommitdiff
path: root/src/compfy.modulemap
blob: 621ad81ce7391ef7b7a1b248eeedc88d156d87b7 (plain) (blame)
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
// modulemap

module compiler {
  header "compiler.h"
}
module string_utils {
  header "string_utils.h"
}
module dbus {
  header "dbus.h"
}
module kernel {
  header "kernel.h"
}
module utils {
  // Has macros expands to calloc/malloc
  header "utils.h"
  export libc.stdlib
}
module region {
  header "region.h"
}
module compfy {
  header "compfy.h"
}
module types {
  header "types.h"
}
module c2 {
  header "c2.h"
}
module render {
  header "render.h"
}
module options {
  header "options.h"
}
module opengl {
  header "opengl.h"
}
module diagnostic {
  header "diagnostic.h"
}
module win_defs {
  header "win_defs.h"
}
module win {
  header "win.h"
  export win_defs
}
module log {
  header "log.h"
  export compiler
}
module x {
  header "x.h"
}
module vsync {
  header "vsync.h"
}
module common {
  header "common.h"
}
module config {
  header "config.h"
}
module xrescheck {
  header "xrescheck.h"
}
module cache {
  header "cache.h"
}
module backend {
  module gl {
    module gl_common {
      header "backend/gl/gl_common.h"
    }
    module glx {
      header "backend/gl/glx.h"
      export GL.glx
    }
  }
  module backend {
    header "backend/backend.h"
  }
  module backend_common {
    header "backend/backend_common.h"
  }
}
module xcb [system] {
  module xcb {
    header "/usr/include/xcb/xcb.h"
    export *
  }
  module randr {
    header "/usr/include/xcb/randr.h"
    export *
  }
  module render {
    header "/usr/include/xcb/render.h"
    export *
  }
  module sync {
    header "/usr/include/xcb/sync.h"
    export *
  }
  module composite {
    header "/usr/include/xcb/composite.h"
    export *
  }
  module xfixes {
    header "/usr/include/xcb/xfixes.h"
    export *
  }
  module damage {
    header "/usr/include/xcb/damage.h"
    export *
  }
  module xproto {
    header "/usr/include/xcb/xproto.h"
    export *
  }
  module present {
    header "/usr/include/xcb/present.h"
  }
  module util {
    module render {
      header "/usr/include/xcb/xcb_renderutil.h"
    export *
    }
  }
}
module X11 [system] {
  module Xlib {
    header "/usr/include/X11/Xlib.h"
    export *
  }
  module Xutil {
    header "/usr/include/X11/Xutil.h"
    export *
  }
}
module GL [system] {
  module glx {
    header "/usr/include/GL/glx.h"
    export *
  }
  module gl {
    header "/usr/include/GL/gl.h"
    export *
  }
}
module libc [system] {
  export *
  module assert {
    export *
    textual header "/usr/include/assert.h"
  }
  module string {
    export *
    header "/usr/include/string.h"
  }
  module ctype {
    export *
    header "/usr/include/ctype.h"
  }
  module errno {
    export *
    header "/usr/include/errno.h"
  }
  module fenv {
    export *
    header "/usr/include/fenv.h"
  }
  module inttypes {
    export *
    header "/usr/include/inttypes.h"
  }
  module math {
    export *
    header "/usr/include/math.h"
  }
  module setjmp {
    export *
    header "/usr/include/setjmp.h"
  }
  module stdio {
    export *
    header "/usr/include/stdio.h"
  }

  module stdlib [system] {
    export *
    header "/usr/include/stdlib.h"
  }
}

// glib specific header. In it's own module because it
// doesn't exist on some systems with unpatched glib 2.26+
module "xlocale.h" [system] {
  export *
  header "/usr/include/xlocale.h"
}

// System header that we have difficult with merging.
module "sys_types.h" [system] {
  export *
  header "/usr/include/sys/types.h"
}

module "signal.h" [system] {
  export *
  header "/usr/include/signal.h"
}