summaryrefslogtreecommitdiff
path: root/doc/html/buildscons.html
blob: 5be8d0585cb8348f9102db62b470c3fb83e3aed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>

<HEAD>
  <TITLE>Building glean using scons</TITLE>
  <META NAME="description" CONTENT="building glean using scons">
  <META NAME="author" CONTENT="Jose Fonseca">
  <LINK REV="made" HREF="mailto:jfonseca@vmware.com">
</HEAD>

<BODY bgcolor=#FFFFFF topmargin="10" bottommargin="10" leftmargin="10"
  rightmargin="10" marginheight="0" marginwidth="0">

<H1>Building <I>glean</I> with scons</H1>

<P>
Now you can build glean on GNU/Linux or Windows using
<A HREF="http://www.scons.org/">scons</A>. The advantages over GNU make are:
<UL TYPE=DISC>
	<LI> no need to set build options &mdash; everything is autodetected;
	<LI> automatically uses an included tiff library if none can be found;
	<LI> support to cross build from GNU/Linux to Windows using MinGW cross
	compilers.
</UL>

<H2>Build <I>glean</I> on GNU/Linux or Windows</H2>

<P>
Simply type
<PRE>
    scons -C src
</PRE>

<P>
Everything should be autodetected for you.

<P>
You can change aspects of the build by passing options in the name=value. To
list these options and see their default value do
<PRE>
    scons -C src -h
</PRE>


<H2>Build <I>glean</I> for Windows on GNU/Linux</H2>

<P>
Type
<PRE>
    scons -C src platform=windows machine=x86 toolchain=crossmingw
</PRE>


<HR>
<SMALL>
  <UL TYPE=DISC>
    <LI> <A HREF="index.html"><I>glean</I> home</A>
    <LI> <A HREF="whatis.html">What is <I>glean</I>?</A>
    <LI> <A HREF="build.html">How do I build <I>glean</I>?</A>
    <LI> <A HREF="run.html">How do I run <I>glean</I>?</A>
    <LI> <A HREF="next.html">Where do we go from here?</A>
      <UL TYPE=CIRCLE>
        <LI> <A HREF="newtest.html">Adding new tests</A>
	<LI> <A HREF="newfeat.html">Adding new infrastructure features</A>
	<LI> <A HREF="overview.html">Overview of <I>glean</I> internals</A>
        <LI> <A HREF="repo.html">Creating a repository of results</A>
        <LI> <A HREF="port.html">Porting <I>glean</I></A>
        <LI> <A HREF="cleanup.html">Cleaning up loose ends</A>
      </UL>
    <LI> <A HREF="changes.html">What has changed recently?</A>
  </UL>
</SMALL>

</BODY>
</HTML>