xgl: Add build instructions
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Tue, 2 Sep 2014 00:05:45 +0000 (18:05 -0600)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Tue, 2 Sep 2014 00:05:45 +0000 (18:05 -0600)
BUILD.md [new file with mode: 0644]

diff --git a/BUILD.md b/BUILD.md
new file mode 100644 (file)
index 0000000..deb9c58
--- /dev/null
+++ b/BUILD.md
@@ -0,0 +1,36 @@
+The XGL Sample Intel driver supports Linux.
+
+System Requirements
+===================
+
+Ubuntu 13.10, Ubuntu 14.04 LTS
+gcc
+drm
+
+
+BUILD
+=====
+
+The sample driver users cmake and should work with the usual cmake options and utilities.
+The standard build process builds the icd, the icd loader and all the tests.
+
+Example debug build:
+cd xgl  # cd to the root of the xgl git repository
+cmake -H. -Bdbuild -DCMAKE_BUILD_TYPE=Debug
+cd dbuild
+make
+
+To run XGL programs you must tell the icd loader where to find the libraries. Set the
+environment variable LIBXGL_DRIVERS_PATH to the driver path. For example:
+> export LIBXGL_DRIVERS_PATH=~/xgl/dbuild/icd/intel
+
+TEST
+====
+
+The test executibles can be found in the build/tests directory. The tests use the Google
+gtest infrastructure. Tests avilable so far:
+- xglinfo: Report GPU properties
+- xglbase: Test basic entry points
+- xgl_image_tests: Test XGL image related calls needed by render_test
+- xgl_render_tests: Render a single triangle with XGL. Triangle will be in a .ppm in
+the current directory at the end of the test.