File tree Expand file tree Collapse file tree 6 files changed +34
-45
lines changed Expand file tree Collapse file tree 6 files changed +34
-45
lines changed Original file line number Diff line number Diff line change 1
1
(executables
2
2
(names discover)
3
3
(flags (:standard -safe-string))
4
- (libraries base stdio dune.configurator))
4
+ (libraries base stdio dune.configurator)
5
+ (modules discover))
5
6
6
7
(rule
7
8
(targets wlroots-ccopt.sexp
15
16
pixman-1-ccopt.sexp
16
17
pixman-1-cclib.sexp
17
18
pixman-1-ccopt
18
- pixman-1-cclib)
19
+ pixman-1-cclib
20
+ wayland-protocols-dir
21
+ wayland-scanner-bin)
19
22
(deps (:discover discover.exe))
20
23
(action (run %{discover})))
24
+
25
+ (library
26
+ (name wlroots_config)
27
+ (public_name wlroots.config)
28
+ (modules wlroots_config))
Original file line number Diff line number Diff line change
1
+ let stubgen_prologue = "
2
+ #define _POSIX_C_SOURCE 200809L
3
+ #include <wayland-server.h>
4
+ #include <wlr/backend.h>
5
+ #include <wlr/render/wlr_renderer.h>
6
+ #include <wlr/types/wlr_cursor.h>
7
+ #include <wlr/types/wlr_compositor.h>
8
+ #include <wlr/types/wlr_data_device.h>
9
+ #include <wlr/types/wlr_input_device.h>
10
+ #include <wlr/types/wlr_keyboard.h>
11
+ #include <wlr/types/wlr_matrix.h>
12
+ #include <wlr/types/wlr_output.h>
13
+ #include <wlr/types/wlr_output_layout.h>
14
+ #include <wlr/types/wlr_pointer.h>
15
+ #include <wlr/types/wlr_seat.h>
16
+ #include <wlr/types/wlr_xcursor_manager.h>
17
+ #include <wlr/backend.h>
18
+ #include <wlr/util/log.h>
19
+ #include <wlr/types/wlr_xdg_shell.h>
20
+ "
Original file line number Diff line number Diff line change 4
4
(modules generated_types ffi)
5
5
(flags (:standard -w -9))
6
6
(libraries wlroots_types_f
7
- wlroots_common
7
+ wlroots_config wlroots_common
8
8
ctypes ctypes.stubs
9
9
unix-time.unix mtime.clock.os
10
10
xkbcommon))
Original file line number Diff line number Diff line change 1
1
let prefix = " wlroots_stub"
2
2
3
- let prologue = "
4
- #define _POSIX_C_SOURCE 200809L
5
- #include <wayland-server.h>
6
- #include <wlr/render/wlr_renderer.h>
7
- #include <wlr/types/wlr_cursor.h>
8
- #include <wlr/types/wlr_compositor.h>
9
- #include <wlr/types/wlr_data_device.h>
10
- #include <wlr/types/wlr_input_device.h>
11
- #include <wlr/types/wlr_keyboard.h>
12
- #include <wlr/types/wlr_matrix.h>
13
- #include <wlr/types/wlr_output.h>
14
- #include <wlr/types/wlr_output_layout.h>
15
- #include <wlr/types/wlr_pointer.h>
16
- #include <wlr/types/wlr_seat.h>
17
- #include <wlr/types/wlr_xcursor_manager.h>
18
- #include <wlr/backend.h>
19
- #include <wlr/util/log.h>
20
- "
21
-
22
3
let () =
23
4
let generate_ml, generate_c = ref false , ref false in
24
5
let () =
@@ -34,5 +15,5 @@ let () =
34
15
| true , false ->
35
16
Cstubs. write_ml Format. std_formatter ~prefix (module Wlroots_ffi_f.Ffi. Make )
36
17
| false , true ->
37
- print_endline prologue ;
18
+ print_endline Wlroots_config. stubgen_prologue ;
38
19
Cstubs. write_c Format. std_formatter ~prefix (module Wlroots_ffi_f.Ffi. Make )
Original file line number Diff line number Diff line change 9
9
(executables
10
10
(names stubgen)
11
11
(modules stubgen)
12
- (libraries wlroots_types_f ctypes.stubs ctypes))
12
+ (libraries wlroots_config wlroots_types_f ctypes.stubs ctypes))
13
13
14
14
; C file built by stubgen
15
15
(rule (with-stdout-to "types_stubgen.c" (run "./stubgen.exe")))
Original file line number Diff line number Diff line change 1
- let prologue = "
2
- #define _POSIX_C_SOURCE 200809L
3
- #include <wayland-server.h>
4
- #include <wlr/backend.h>
5
- #include <wlr/render/wlr_renderer.h>
6
- #include <wlr/types/wlr_cursor.h>
7
- #include <wlr/types/wlr_compositor.h>
8
- #include <wlr/types/wlr_data_device.h>
9
- #include <wlr/types/wlr_input_device.h>
10
- #include <wlr/types/wlr_keyboard.h>
11
- #include <wlr/types/wlr_matrix.h>
12
- #include <wlr/types/wlr_output.h>
13
- #include <wlr/types/wlr_output_layout.h>
14
- #include <wlr/types/wlr_pointer.h>
15
- #include <wlr/types/wlr_seat.h>
16
- #include <wlr/types/wlr_xcursor_manager.h>
17
- #include <wlr/backend.h>
18
- #include <wlr/util/log.h>
19
- "
20
-
21
1
let () =
22
- print_endline prologue ;
2
+ print_endline Wlroots_config. stubgen_prologue ;
23
3
Cstubs_structs. write_c Format. std_formatter
24
4
(module Wlroots_types_f.Types. Make )
You can’t perform that action at this time.
0 commit comments