wayland-scanner-d ~master
A wayland protocol scanner for D.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
wayland-scanner-d
Project not maintained anymore. Superseded by the wayland-d project.
Wayland protocol scanner that generates D code.
Example of client code generation:
#! /bin/bash
PROTOCOL=$WLD/protocol/wayland.xml
SCANNER=wayland-scanner-d
# generate main protocol file
cat $PROTOCOL | $SCANNER -m wayland.client.protocol \
--client --protocol -o src/wayland/client/protocol.d \
-x wayland.client.core -x wayland.client.ifaces
# generate interfaces file
# need of a separate module to avoid name collision
# (mainly because of server code)
cat $PROTOCOL | $SCANNER -m wayland.client.ifaces \
--client --ifaces --ifaces_priv_mod wayland.client.priv.ifaces \
-o src/wayland/client/ifaces.d
# generate private interface file
# need of this module also for implementation detail and name collision
cat $PROTOCOL | $SCANNER -m wayland.client.priv.ifaces \
--client --ifaces --ifaces_priv \
-o src/wayland/client/priv/ifaces.d
help information:
$ wayland-scanner-d --help
A Wayland protocol scanner and D code generator
-i --input input file [defaults to stdin]
-o --output output file [defaults to stdout]
-m --module D module name [required]
--client client mode
--server server mode
--protocol outputs main protocol code
--ifaces outputs interfaces code
--ifaces_priv outputs private interface code
--ifaces_priv_mod specify the private interface module
-x --import external modules to import
-p --public external modules to import publicly
-h --help This help information.
- ~master released 7 years ago
- rtbo/wayland-scanner-d
- MIT
- Copyright (c) 2015-2016, Remi Thebault
- Authors:
- Dependencies:
- none
- Versions:
-
1.0.0 2015-Aug-11 ~master 2017-Feb-05 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
90 downloads total
-
- Score:
- 1.2
- Short URL:
- wayland-scanner-d.dub.pm