Add PACKAGING file
authorRan Benita <ran234@gmail.com>
Sat, 18 Oct 2014 12:51:41 +0000 (15:51 +0300)
committerRan Benita <ran234@gmail.com>
Sat, 18 Oct 2014 12:51:41 +0000 (15:51 +0300)
Signed-off-by: Ran Benita <ran234@gmail.com>
Makefile.am
PACKAGING [new file with mode: 0644]

index dfb3572..8e45ccb 100644 (file)
@@ -14,7 +14,8 @@ EXTRA_DIST = \
        doc/rules-format.txt \
        doc/doxygen-extra.css \
        xkbcommon.map \
-       xkbcommon-x11.map
+       xkbcommon-x11.map \
+       PACKAGING
 
 AM_CPPFLAGS = \
        -DDFLT_XKB_CONFIG_ROOT='"$(XKBCONFIGROOT)"' \
diff --git a/PACKAGING b/PACKAGING
new file mode 100644 (file)
index 0000000..738ccc4
--- /dev/null
+++ b/PACKAGING
@@ -0,0 +1,50 @@
+libxkbcommon consists of two shared libraries, libxkbcommon (the main
+library) and libxkbcommon-x11 (an addon library for XCB clients).
+
+The files for libxkbcommon-x11 are:
+    libxkbcommon-x11.a libxkbcommon.so* xkbcommon/xkbcommon-x11.h
+    xkbcommon-x11.map xkbcommon-x11.pc
+
+libxkbcommon-x11 can be disabled with --disable-x11 (see
+`./configure --help` for other options/variables).
+
+Dependencies for libxkbcommon:
+- C compiler, autoconf, automake, pkg-config, libc, etc.
+
+- (build optional) xorg-util-macros.
+  Output included in tarball.
+
+- (build optional) bison (preferred) or byacc>=20141006.
+  Output included in tarball.
+  byacc must be configured with --enable-btyacc.
+
+- (build optional, runtime) xkeyboard-config.
+  During build, for automatically detecting the value of
+  --with-xkb-config-root instead of guessing (/usr/share/X11/xkb).
+  During runtime, not strictly needed, but most users of the library
+  would need it.
+
+- (runtime) libX11.
+  Contains the dataset for Compose support (/usr/share/X11/locale).
+  Please don't depend on it explicitly.
+
+- (build optional) doxygen.
+  For generating the HTML documentation.
+
+- (build optional) gperf.
+  Output included in git and tarball. To regenerate, use
+  `make update-keywords`.
+
+Dependencies for libxkbcommon-x11:
+- libxkbcommon.
+
+- libxcb>=1.10 with libxcb-xkb.
+
+Dependencies for libxkbcommon-x11 tests:
+- xkbcomp, Xvfb.
+  If they are not available, the relevant tests are skipped.
+
+Unless libxcb is always available as part of the system, it is preferred
+that libxkbcommon and libxkbcommon-x11 be split into separate packages,
+such that the main library does not depend on libxcb. This avoids a
+transitive dependency of Wayland clients on X libraries.