<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 11-12-21 09:47 PM, Bryce Harrington wrote:
<blockquote
cite="mid:1324522033-6627-3-git-send-email-bryce@canonical.com"
type="cite">
<pre wrap="">Over the course of this development effort, code will be refactored out
of xrandr.c into the library source. As this is done, the corresponding
code will be excised from this copy of xrandr.c and replaced with the
new API calls.
This will enable before/after testing of xrandr behavior to catch
functional regressions.
Ultimately, prior to libXrandrUtils 1.0.0, this work should be complete
and xrandr.c migrated back home to the xrandr package.
Signed-off-by: Bryce Harrington <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:bryce@canonical.com"><bryce@canonical.com></a>
---
Makefile.am | 2 +-
configure.ac | 1 +
examples/Makefile.am | 13 +
examples/xrandr.c | 3433 ++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 3448 insertions(+), 1 deletions(-)
create mode 100644 examples/Makefile.am
create mode 100644 examples/xrandr.c
diff --git a/Makefile.am b/Makefile.am
index 1b5ac68..607dfc1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,7 +19,7 @@
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
-SUBDIRS = man src
+SUBDIRS = examples man src
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = xrandr-utils.pc
diff --git a/configure.ac b/configure.ac
index 794ba19..7ebefd8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,6 +55,7 @@ PKG_CHECK_MODULES(RANDRUTILS, x11 xrandr >= 1.3 xrender xproto >= 7.0.17)
AC_CONFIG_FILES([
        Makefile
+        examples/Makefile
        man/Makefile
        src/Makefile
        xrandr-utils.pc])
diff --git a/examples/Makefile.am b/examples/Makefile.am
new file mode 100644
index 0000000..86e9943
--- /dev/null
+++ b/examples/Makefile.am
@@ -0,0 +1,13 @@
+bin_PROGRAMS = xrandr
+
+AM_CFLAGS = \
+        $(RANDUTILS_CFLAGS) \</pre>
</blockquote>
Typo, should be RANDRUTILS.<br>
Even after fixing that I still get:<br>
../../examples/xrandr.c:29:22: fatal error: X11/Xlib.h: No such file
or directory<br>
<br>
<br>
Remove the developer headers installed by your distro to reproduce.<br>
I'll check that again later, got to go now...<br>
<br>
Using <a
href="git://people.freedesktop.org/%7Ebryce/libXrandrUtils">git://people.freedesktop.org/~bryce/libXrandrUtils</a>
which should be the same as your patches.<br>
<blockquote
cite="mid:1324522033-6627-3-git-send-email-bryce@canonical.com"
type="cite">
<pre wrap="">
+        $(MALLOC_ZERO_CFLAGS) \
+        $(CWARNFLAGS)
+xrandr_LDADD = @RANDRUTILS_LIBS@
+
+INCLUDES = -I$(top_srcdir)/include/X11/extensions
+
+xrandr_SOURCES =        \
+ xrandr.c
+</pre>
</blockquote>
<br>
</body>
</html>