| 34 | | * Alt + F5 - run minid module |
|---|
| 35 | | |
|---|
| 36 | | * Ctrl + F7 - Release build |
|---|
| 37 | | |
|---|
| 38 | | * Alt + F7 - compile minid module |
|---|
| 39 | | |
|---|
| 40 | | * Ctrl + Alt + Shift + D - Build documentation |
|---|
| 41 | | |
|---|
| 42 | | * Ctrl + Alt + Shift + T - Run unittest |
|---|
| 43 | | |
|---|
| 44 | | * Alt + D - pops up a list of the declarations in the current file |
|---|
| | 36 | * Ctrl + F5 - run "DMD -run currentfile.d args..." |
|---|
| | 37 | |
|---|
| | 38 | * Ctrl + Alt + Shift + D - Build documentation (dsss) |
|---|
| | 39 | |
|---|
| | 40 | * Ctrl + Alt + Shift + T - Run unittest (dsss) |
|---|
| | 41 | |
|---|
| | 42 | * Alt + D - pops up a list of the declarations in the current file. |
|---|
| 54 | | |
|---|
| 55 | | == Configuration == |
|---|
| 56 | | |
|---|
| 57 | | === Include path === |
|---|
| 58 | | |
|---|
| 59 | | SEATD for SciTE has minimal configuration requirements. It only needs an include path to find D source files that correspond to the module names that appear in import statements. If no explicit include path is given, it tries to figure it out by itself. |
|---|
| 60 | | |
|---|
| 61 | | In order to do so, the path of the current file and it's module name (if available) is used. For example, from a D file "/project/src/pak/bla.d" with a module declaration "module pak.bla;", SEATD for SciTE will extract "/project/src/pak/" and "/project/src/". To specify include paths that are outside of the project's source directory, you can set a global and a local include path. |
|---|
| 62 | | |
|---|
| 63 | | SEATD for SciTE is configured through SciTE's properties files. To be able to have different settings on installation-, user- and project-level, SciTE allows global-, user- and directory option files. Usually, you only change the user- and directory options. |
|---|
| 64 | | |
|---|
| 65 | | The global include path is supposed to be set in scite4d\SciTEGlobal.properties, the first line contain the include paths for libraries that all of your projects use (like Phobos or Tango). It is a list of paths separated by ';', for example: |
|---|
| 66 | | |
|---|
| 67 | | seatd.global.include=c:\dmd\src\phobos;c:\tango\import |
|---|
| 68 | | |
|---|
| 69 | | To change it, modify the line above accordingly and include it in your user options file. |
|---|
| 70 | | |
|---|
| 71 | | More details of SEATD for SciTE, please visit: [http://seatd.mainia.de/doc.html SEATD doc] |
|---|
| 72 | | |
|---|
| 73 | | |
|---|
| 74 | | == How to build == |
|---|
| 75 | | |
|---|
| 76 | | SciTE4D use DSSS to build anything. |
|---|
| 77 | | |
|---|
| 78 | | ''' 1 ''' Download and install DSSS from: |
|---|
| 79 | | [http://www.dsource.org/projects/dsss DSSS] |
|---|
| 80 | | |
|---|
| 81 | | Be sure dsss.exe in your environment path variable. |
|---|
| 82 | | |
|---|
| 83 | | ''' 2 ''' configurate dsss.conf for your project. |
|---|
| 84 | | |
|---|
| 85 | | e.g. to build ybud.exe, assume ybud.d at D:\d\scite4d\ybud.d |
|---|
| 86 | | |
|---|
| 87 | | D:\d\scite4d\dsss.conf : |
|---|
| 88 | | {{{ |
|---|
| 89 | | [*] |
|---|
| 90 | | buildflags=-explicit -SD:\d\dmd\tango\lib -lltango-base-dmd |
|---|
| 91 | | postbuild=del *.obj *.map dsss.last |
|---|
| 92 | | |
|---|
| 93 | | [ybud.d] |
|---|
| 94 | | debugflags=-g -w -debug=UnitTest -unittest -version=ybudVerbose |
|---|
| 95 | | releaseflags=-O -release -inline |
|---|
| 96 | | target=ybud |
|---|
| 97 | | }}} |
|---|
| 98 | | |
|---|
| 99 | | |
|---|
| 100 | | ''' 3 ''' Press F7 or Ctrl + F7 to build your project |
|---|
| 101 | | |
|---|
| 102 | | Click scite4d\Sc1.exe to run SciTE4d |
|---|
| 103 | | |
|---|
| 104 | | open ybud.d in scite4d |
|---|
| 105 | | |
|---|
| 106 | | Press F7 to debug build. |
|---|
| 107 | | |
|---|
| 108 | | Press Ctrl + F7 to release build. |
|---|
| | 52 | * building by dsss supported |
|---|
| | 53 | |
|---|
| | 54 | * building by GNU make supported |
|---|
| | 55 | |
|---|
| | 56 | * building by Windows bat file supported |
|---|
| | 57 | |
|---|
| 122 | | 3 Click scite4d\Sc1.exe to start program. |
|---|
| 123 | | |
|---|
| 124 | | 4 open scite4d\SciTEGlobal.properties, modify seatd.global.include to fit your specific libraries path. |
|---|
| 125 | | |
|---|
| 126 | | If you want to press F7 or Ctrl F7 to build library or binary ..., be sure configurate dsss.conf first, SciTE4D just find the dsss.conf and pass command to DSSS. |
|---|
| | 71 | 3 Include path configuration |
|---|
| | 72 | |
|---|
| | 73 | open ..\scite4d\SciTEGlobal.properties, modify seatd.global.include to fit your specific libraries path. |
|---|
| | 74 | |
|---|
| | 75 | The global include path is supposed to be set in scite4d\SciTEGlobal.properties, the first line contain the include paths for libraries that all of your projects use (like Phobos or Tango). It is a list of paths separated by ';', for example: |
|---|
| | 76 | |
|---|
| | 77 | seatd.global.include=c:\dmd\src\phobos;c:\dmd\tango |
|---|
| | 78 | |
|---|
| | 79 | To change it, modify the line above accordingly and include it in your user options file. |
|---|
| | 80 | |
|---|
| | 81 | 4 building method Configuration |
|---|
| | 82 | |
|---|
| | 83 | Open scite4d\ybud.conf, modified the make method to fit your needs. |
|---|
| | 84 | |
|---|
| | 85 | The default make is Windows port of GNU make(mingw32-make.exe): |
|---|
| | 86 | |
|---|
| | 87 | make=mingw32-make |
|---|
| | 88 | |
|---|
| | 89 | The default Makefile name is "Makefile": |
|---|
| | 90 | |
|---|
| | 91 | makefile=Makefile |
|---|
| | 92 | |
|---|
| | 93 | |
|---|
| | 94 | the default Windows bat file name is build.bat: |
|---|
| | 95 | |
|---|
| | 96 | batfile=build.bat |
|---|
| | 97 | |
|---|
| | 98 | You can modified it e.g. "building.bat" to fit you needs. |
|---|
| | 99 | |
|---|
| | 100 | |
|---|
| | 101 | I recommend you that using dsss to build library, using GNU make to build binary. |
|---|
| | 102 | |
|---|
| | 103 | |
|---|
| | 104 | 5 Click ..\scite4d\Sc1.exe to start program |
|---|
| | 105 | |
|---|
| | 108 | |
|---|
| | 109 | |
|---|
| | 110 | == Examples == |
|---|
| | 111 | |
|---|
| | 112 | 1 GNU make example |
|---|
| | 113 | |
|---|
| | 114 | Open ..\scite4d\examples\makefile\test.d |
|---|
| | 115 | press F7 (or Ctrl+F7) to build test.exe |
|---|
| | 116 | Or press Ctrl+F5 to run test.d directly |
|---|
| | 117 | |
|---|
| | 118 | 2 Windows bat example |
|---|
| | 119 | |
|---|
| | 120 | Open ..\scite4d\examples\bat\test.d |
|---|
| | 121 | press F7 (or Ctrl+F7) to build test.exe |
|---|
| | 122 | Or press Ctrl+F5 to run test.d directly |
|---|
| | 123 | |
|---|
| | 124 | 3 dsss example (If you have dsss installed) |
|---|
| | 125 | |
|---|
| | 126 | Open ..\scite4d\examples\dsss\test.d |
|---|
| | 127 | press F7 (or Ctrl+F7) to build test.exe |
|---|
| | 128 | Or press Ctrl+F5 to run test.d directly |
|---|
| 213 | | |
|---|
| 214 | | ÔÀŽ http://bbs.yidabu.com ÔÚ±àÒë¿âʱÏÈÐŽÒ»žöbat ÎÄŒþµ÷ÓÃdsss±àÒë, ±àÒëʱҪÇл»µœ¿âËùÔÚÎÄŒþŒÐ, µã»÷batÎÄŒþœøÐбàÒë |
|---|
| | 222 | Ö§³ÖÓÃbatÎÄŒþ±àÒë |
|---|
| | 223 | |
|---|
| | 224 | Ö§³ÖÓÃdsss±àÒë |
|---|
| | 225 | |
|---|
| | 226 | Ö§³ÖÓÃmake±àÒë |
|---|
| | 227 | |
|---|
| | 228 | ÈýÖÖ±àÒë·œ·š×ÜÓÐÒ»ÖÖÄã×îÖÓ°®×îÉó€µÄ. Äã¿ÉÒÔÓÐʱÓÃbat, ÓÐÓÃʱmake, ±àÒë¿âʱÓÃdsss, Ò»µãÎÊÌâҲûÓÐ. |
|---|
| | 229 | |
|---|
| | 230 | ÍÆŒö±àÒë¿âÓÃdsss, ±àÒëbinary ÓÃmake, ±àÒëŒòµ¥³ÌÐòÒ²¿ÉÒÔÓà Windows batÎÄŒþ. |
|---|
| | 231 | |
|---|
| | 232 | |
|---|
| | 233 | |
|---|
| | 234 | ÔÀŽ ÔÚ±àÒë¿âʱÏÈÐŽÒ»žöbat ÎÄŒþµ÷ÓÃdsss±àÒë, ±àÒëʱҪÇл»µœ¿âËùÔÚÎÄŒþŒÐ, µã»÷batÎÄŒþœøÐбàÒë |
|---|
| 268 | | }}} |
|---|
| 269 | | |
|---|
| 270 | | |
|---|
| 271 | | Ò»Œü±àÒë»ùÓÚDSSS, ÄãÒªÔ€ÏÈÐŽºÃdsss.confÎÄŒþ, ¶šÒåºÃdebugflagsºÍreleaseflags¡£ |
|---|
| 272 | | ÌØ±ðÊDZàÒë¿âʱ±ÈœÏ·œ±ã£¬ Žò¿ª¿âÀïµÄÈÎÒâÎÄŒþ£¬ ŸÍ¿ÉʵÏÖÒ»Œü±àÒë¡£ |
|---|
| 273 | | |
|---|
| | 291 | |
|---|
| | 292 | Ò»Œü±àÒë»ùÓÚdsss.conf »òÕß Makefile, »òÕßbuild.bat, ÔÚ°ŽF7 ±àÒë֮ǰ, ÄãÒªÔ€ÏÈÐŽºÃÉÏÃæÈýžöÎÄŒþÖÐµÄÆäÖÐÒ»žö. |
|---|
| | 293 | |
|---|
| | 294 | Èç¹ûÊÇdsss.conf, ¶šÒåºÃdebugflagsºÍreleaseflags, ŸÍ¿ÉÒÔ°Ñdebug±àÒëºÍrelease±àÒë×Ô¶¯Çø·Ö¿ªÀŽ. |
|---|
| | 295 | |
|---|
| | 296 | 3 Žò¿ª scite4d\ybud.conf ¿ÉÒÔÐÞžÄÄãµÄ±àÒëÅäÖÃ, ±ÈÈç, ÄãµÄmake²»ÊÇmingw32-make.exe,ŸÍ°Ñ: |
|---|
| | 297 | make=mingw32-make |
|---|
| | 298 | |
|---|
| | 299 | žÄ³ÉÈçÏ»òÆäËû: |
|---|
| | 300 | make=make |
|---|
| | 301 | |
|---|
| | 302 | |
|---|
| | 303 | 4 ÊŸÀý |
|---|
| | 304 | scite4d\examplesÏ·ֱðÓÐMakefile,build.bat, dsss.conf±àÒëÅäÖÃÊŸÀý, ¶ŒŸ²âÊÔÍš¹ý, Äã¿ÉÒԲοŒÒ»ÏÂ. |
|---|