| 1 |
< |
Platform configuration files for SCons based build procedure. |
| 1 |
> |
Platform configuration files for the SCons based build system |
| 2 |
> |
------------------------------------------------------------- |
| 3 |
|
|
| 3 |
– |
|
| 4 |
|
<platform>.cfg |
| 5 |
|
-------------- |
| 6 |
|
|
| 7 |
< |
The <platform>.cfg files in this directory are use to determine |
| 7 |
> |
The <platform>.cfg files in this directory are used to determine |
| 8 |
|
the right settings, libraries, source files etc. on the platform |
| 9 |
|
where you are building Radiance. The build system will select the |
| 10 |
< |
right file automatically. |
| 10 |
> |
appropriate file automatically. |
| 11 |
|
|
| 12 |
|
If your platform isn't supported yet, then you can create a new |
| 13 |
< |
file with an appropriat name (SCons will tell you what it |
| 13 |
> |
file with an appropriat name (SCons should tell you what it |
| 14 |
|
expects). Usually, you will start by copying the file of the most |
| 15 |
< |
similar suupported platform. |
| 15 |
> |
similar suupported platform, and then make the necessary changes. |
| 16 |
|
|
| 17 |
|
On unix based platforms without a specific config file, the file |
| 18 |
|
"posix.cfg" will be used (which may or may not work well enough). |
| 19 |
|
|
| 20 |
+ |
As of this writing, the following platforms are included |
| 21 |
+ |
(although not all of them have been tested very recently): |
| 22 |
|
|
| 23 |
+ |
* linux.cfg Linux |
| 24 |
+ |
* freebsd.cfg FreeBSD unix |
| 25 |
+ |
* darwin.cfg Macintosh OS-X |
| 26 |
+ |
* sunos.cfg Sun Microsysems Solaris Unix |
| 27 |
+ |
* irix.cfg sgi IRIX Unix release 5.x or later |
| 28 |
+ |
* irix4.cfg sgi IRIX Unix release 4.x (obsolete) |
| 29 |
+ |
* irix3.cfg sgi IRIX Unix release 3.x (obsolete) |
| 30 |
+ |
* hpux.cfg Hewlett Packard HP-Unix |
| 31 |
+ |
* aix.cfg IBM AIX Unix |
| 32 |
+ |
* posix.cfg default for unknown Unix systems |
| 33 |
+ |
* win32.cfg MS Windows (Visual C compilers) |
| 34 |
+ |
* cygwin.cfg Cygwin on MS Windows http://www.cygwin.com/ |
| 35 |
+ |
* mingw.cfg MingW on MS Windows http://www.mingw.org/ |
| 36 |
+ |
|
| 37 |
+ |
|
| 38 |
|
<platform>_custom.cfg |
| 39 |
|
--------------------- |
| 40 |
|
|
| 53 |
|
A config file consists of several sections, each of which is |
| 54 |
|
introduced by a keyword in brackets. |
| 55 |
|
Within each section, a configuration directive starts with a |
| 56 |
< |
keyword and a colon, followed by the specific instructions. |
| 56 |
> |
keyword and a colon, followed by the data assigned to that keyword. |
| 57 |
|
|
| 58 |
|
|
| 59 |
|
Sections |
| 60 |
|
-------- |
| 61 |
|
|
| 62 |
|
[install] # directories where to install the software |
| 63 |
< |
[build] # compile and link instruction for production builds |
| 64 |
< |
[debug] # compile and link instruction for debug builds |
| 63 |
> |
[build] # compile and link instructions for production builds |
| 64 |
> |
[debug] # compile and link instructions for debug builds |
| 65 |
|
[code] # code compatibility configuration |
| 66 |
|
|
| 67 |
|
|
| 69 |
|
--------------- |
| 70 |
|
|
| 71 |
|
# The root directory of the Radiance installation |
| 72 |
< |
RAD_BASEDIR: /home/gm/src/rad/r6b |
| 72 |
> |
RAD_BASEDIR: /opt/radiance3.6 |
| 73 |
|
|
| 74 |
|
# The following are relative to RAD_BASEDIR! |
| 75 |
|
# The directory for executables |
| 76 |
|
RAD_BINDIR: bin |
| 77 |
+ |
|
| 78 |
|
# The directory for support files (.cal, .pic, .fnt, etc.) |
| 79 |
|
RAD_RLIBDIR: share/lib |
| 80 |
< |
# The directory for the manual files |
| 80 |
> |
|
| 81 |
> |
# The directory for the man pages |
| 82 |
|
RAD_MANDIR: share/man |
| 83 |
|
|
| 84 |
|
|
| 85 |
|
Debug and Build sections |
| 86 |
|
------------------------ |
| 87 |
|
|
| 88 |
< |
# The same keywords can be used in both, but usually their |
| 89 |
< |
# assigned values will vary. |
| 88 |
> |
# The same keywords can (and usually will) be used in both, but |
| 89 |
> |
# their assigned values will often differ. |
| 90 |
|
|
| 91 |
|
# The compiler to use (example: Gnu gcc) |
| 92 |
|
CC: gcc |
| 93 |
|
|
| 94 |
< |
# The directories for C header files (not normally needed). |
| 94 |
> |
# The directories for system header files (not normally needed). |
| 95 |
|
CPPPATH: |
| 96 |
|
|
| 97 |
|
# Symbols to define for the preprocessor (example for Cygwin) |
| 100 |
|
# Flags for the C preprocessor (example |
| 101 |
|
CPPFLAGS: -O2 -Wall -Wno-uninitialized |
| 102 |
|
|
| 103 |
< |
# Flags for the C compiler (example for debug build) |
| 103 |
> |
# Flags for the C compiler (example for debug build with gcc) |
| 104 |
|
CCFLAGS: -pg |
| 105 |
|
|
| 106 |
< |
# The directories for required libraris (not normally needed) |
| 106 |
> |
# The directories for system libraries (not normally needed) |
| 107 |
|
LIBPATH: |
| 108 |
|
|
| 109 |
|
# Flags for the linker (example for debug build on Windows) |
| 125 |
|
|
| 126 |
|
# There should be no need to edit this section in existing |
| 127 |
|
# config files. If you create a new file for a yet untested |
| 128 |
< |
# platform, you may need to ask on the dev-list what might |
| 129 |
< |
# work best. |
| 128 |
> |
# platform, you may need to ask on the dev-list what will |
| 129 |
> |
# work here. |
| 130 |
|
|
| 131 |
|
RAD_COMPAT: # theoretically obsolete (src/common/strcmp.c) |
| 132 |
|
RAD_MATHCOMPAT: # erf.c floating point error function |
| 136 |
|
RAD_SOCKETLIB: # ws_2_32 on Windows (VC links it automatically) |
| 137 |
|
RAD_PROCESS: # our process abstraction and win_popen() |
| 138 |
|
RAD_PCALLS: # more custom process abstraction |
| 139 |
+ |
|
| 140 |
+ |
|
| 141 |
|
|