-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathreadme.txt
93 lines (72 loc) · 3.34 KB
/
readme.txt
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
== About xfBuild ==
This is a port/fork of xfBuild to the D2 programming langauge.
xfBuild was originally made by Tomasz Stachowiak. (http://h3.gd)
Original Project Homepage: http://bitbucket.org/h3r3tic/xfbuild
xfBuild was ported to D2 by Andrej Mitrovic.
Port Project Homepage: http://github.com/AndrejMitrovic/xfBuild
** This is an alpha release, expect bugs. File them if you find them! **
== Building Requirements ==
- DMD v2.056+ compiler. Download DMD from: http://www.digitalmars.com/d/download.html
Usage instructions: http://d-programming-language.org/dmd-windows.html
http://d-programming-language.org/dmd-linux.html
xfBuild was tested on XP SP3 and Lubuntu, x86.
OSX has not yet been tested.
== Building xfBuild ==
Windows:
Run build.bat
Optionally, add to PATH (change this appropriately)
PATH=%PATH%;c:\xfBuild\
Linux:
Run chmod +x linuxbuild.sh
Run ./linuxbuild.sh
Optionally, add to PATH (change this appropriately)
PATH=$PATH:/home/username/dev/xfBuild/
export PATH
Self-Build Note:
You might get file overwrite errors if you try to build xfBuild
with itself. Make sure you're not outputting over the executable
you're already running.
== Usage Instructions ==
To output an executable use the +o switch:
xfBuild +omain.exe main.d (or +omain for linux)
To avoid compiling modules in a path (e.g. Phobos, since DMD links it in implicitly)
use the +xpath option:
xfbuild +omain.exe +xpath=D:\DMD\dmd2\src main.d
+xpath avoids compiling modules inside of a path, and instead allows you to pass a
prebuilt static library to the compiler. This can lead to faster build times.
Tip: On Ubuntu use xpath=/usr/include/d/ if xfBuild is having file
write errors.
Tip: If xfbuild is having problems doing incremental compilation,
try passing the +full switch
Note: When using +x (for packages) or +xpath (for paths) with
custom libraries (not Phobos), you will have to pass the
prebuilt static library to the compiler. E.g.:
xfbuild +xpath=C:\dev\mylib\ C:\dev\mylib.lib
== What works ==
Very simple hello_world builds, and most of my "sample code" stuff in my
repositories.
== License ==
xfBuild is Boost-licensed, acknowledged by the original author Tomasz Stachowiak.
See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt
== Acknowledgments ==
Special thanks to Tomasz Stachowiak for creating xfBuild and allowing me
to license it under the Boost license.
Thanks to Steven Schveighoffer for creating Dcollections v2.0.
== Contributors ==
Tomasz Stachowiak
leod
Benjamin Saunders
Daniel Mierswa
Robert Clipsham
Vincenzo Ampolo
digited
David Nadlinger
Mathias Baumann
(Note: If your name is missing here, let me know)
== Links ==
D2 Programming Language homepage: http://d-programming-language.org/
xfBuild Original Homepage: http://bitbucket.org/h3r3tic/xfbuild
xfBuild Port Homepage: http://github.com/AndrejMitrovic/xfBuild
WindowsAPI bindings: http://dsource.org/projects/bindings/wiki/WindowsApi
DCollections: http://www.dsource.org/projects/dcollections