 |
- Author:
- DRK (IP: 121.44.177.96)
- Timestamp:
- 11/16/09 03:53:13 (4 years ago)
- Comment:
Removed outdated instructions.
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WindowsInstall
| v59 |
v60 |
|
| 91 | 91 | |
|---|
| 92 | 92 | Firstly, delete (or rename) the `dmd\src\phobos` directory, then create a new, |
|---|
| 93 | | empty `dmd\src\phobos` directory. Copy the `dmd\windows\tango\user\object.di` |
|---|
| | 93 | empty `dmd\src\phobos` directory. Copy the `dmd\windows\tango\object.di` |
|---|
| 94 | 94 | file to `dmd\src\phobos\object.di`. |
|---|
| 95 | 95 | |
|---|
| 123 | 123 | ==== Automated Build and Install ==== |
|---|
| 124 | 124 | |
|---|
| 125 | | This is recommended for end users who are installing into a pristine |
|---|
| 126 | | environment. Note that this will overwrite your `sc.ini` file. See the |
|---|
| 127 | | next section for details on how to do this manually. |
|---|
| 128 | | |
|---|
| 129 | | Go to `dmd\windows\tango\build` and execute `build.bat`. DO NOT |
|---|
| 130 | | execute this batch file from a different working directory, or compilation |
|---|
| 131 | | will fail. |
|---|
| 132 | | |
|---|
| 133 | | Once this is done, proceed to the Test section to verify the install worked. |
|---|
| 134 | | |
|---|
| 135 | | Note that if you need to see it, the original unmodified `sc.ini` is available |
|---|
| 136 | | as `sc.ini.phobos`. |
|---|
| | 125 | '''This section is out of date.''' |
|---|
| | 126 | |
|---|
| | 127 | Is there an installer at all? |
|---|
| 137 | 128 | |
|---|
| 138 | 129 | ==== Manually Build and Install ==== |
|---|
| 141 | 132 | compiler, and for developers who wish to work on Tango itself. |
|---|
| 142 | 133 | |
|---|
| 143 | | The first step is to go to `dmd\windows\tango\build` and execute |
|---|
| 144 | | `build-dmd.bat`. This will build the Tango runtime for DMD. This will |
|---|
| 145 | | produce the following files (relative to the `build` directory): |
|---|
| 146 | | |
|---|
| 147 | | * `libs\tango-base-dmd.lib` |
|---|
| 148 | | * `libs\tango-base-dmd-dbg.lib` |
|---|
| 149 | | |
|---|
| 150 | | These should be copied into `dmd\windows\lib`. |
|---|
| 151 | | |
|---|
| 152 | | Second, you can optionally build the Tango user library as a static library. |
|---|
| 153 | | This will speed compilation of programs. If you want to do this, again go to |
|---|
| 154 | | `dmd\windows\tango\build` and execute `build-tango.bat`. Do not be alarmed if |
|---|
| 155 | | you do not see any output for some time; the program just has a surprisingly |
|---|
| 156 | | large output buffer! |
|---|
| 157 | | |
|---|
| 158 | | The result of this, `libs\tango-user-dmd.lib` should be copied to |
|---|
| 159 | | `dmd\windows\lib`. |
|---|
| | 134 | '''This section is out of date.''' |
|---|
| | 135 | |
|---|
| | 136 | ??? |
|---|
| 160 | 137 | |
|---|
| 161 | 138 | Finally, you need to configure DMD to use Tango. To do this, open the |
|---|
| 168 | 145 | |
|---|
| 169 | 146 | You want to delete `"-I%@P%\..\..\src\phobos"` and replace it with |
|---|
| 170 | | `"-I%@P%\..\tango\user"`. |
|---|
| | 147 | `"-I%@P%\..\tango"`. |
|---|
| 171 | 148 | |
|---|
| 172 | 149 | You will also want to add the following to the `DFLAGS` setting (note: you do |
|---|
| 175 | 152 | |
|---|
| 176 | 153 | {{{ |
|---|
| 177 | | -version=Tango -defaultlib=tango-base-dmd.lib -debuglib=tango-base-dmd-dbg.lib |
|---|
| 178 | | }}} |
|---|
| 179 | | |
|---|
| 180 | | If you compiled the user library to a static library, you can add the |
|---|
| 181 | | following to `DFLAGS` as well. Please note that this can conflict with |
|---|
| 182 | | automated build tools if you intend to modify Tango itself. |
|---|
| 183 | | |
|---|
| 184 | | {{{ |
|---|
| 185 | | -L+tango-user-dmd.lib |
|---|
| | 154 | ??? |
|---|
| 186 | 155 | }}} |
|---|
| 187 | 156 | |
|
 |
 |
|
 |
Copyright © 2006-2013 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic