Changeset 287

Show
Ignore:
Timestamp:
10/03/09 06:22:02 (3 years ago)
Author:
Alan Knowles
Message:

full build fixes for gdc and scintilla only - instructions updated in INSTALL file

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/INSTALL

    r234 r287  
    22Building leds: 
    33 
    4 a) Pre-requisites. 
    5 *build dool  
    6 svn co http://svn.dsource.org/projects/dool/trunk/ dool 
    7 (READ INSTALL) - build  
     4a) Pre-requisites.  
     5apt-get install gdc libgtk2.0-dev 
     6 
     7*build compd * dool 
     8#cd /usr/src 
     9#svn co http://svn.dsource.org/projects/dool/trunk/ dool 
     10#cd dool 
     11#sh compd.gdc.sh 
     12#compd build.compd 
     13#cd .. 
    814 
    915*build dantfw 
    10 svn co http://svn.dsource.org/projects/dantfw/trunk/ dantfw 
    11 (READ INSTALL) - build 
     16#svn co http://svn.dsource.org/projects/dantfw/trunk/ dantfw 
     17#cd dantfw 
     18#compd build.compd 
     19#cd .. 
     20 
    1221*build GtkD (gtk bindings) 
    13 svn co http://svn.dsource.org/projects/dui/trunk/gtkD  
    14 (READ INSTALL) - build 
     22*** SEE THIS IS SOMETHING BREAKS http://www.dsource.org/forums/viewtopic.php?t=4661 
     23svn co http://svn.dsource.org/projects/gtkd/trunk gtkd 
     24#cd gtkd 
     25#compd gtkd.compd 
     26#compd gsv.compd 
     27#cd .. 
     28 
     29* download leds 
     30svn co http://svn.dsource.org/projects/leds/trunk leds 
    1531 
    1632 
     
    2036** on debian this is the libgtk2.0-dev package. 
    2137 
    22 #cd src/resources 
    23 #wget http://prdownloads.sourceforge.net/scintilla/scintilla172.tgz 
    24 #tar xvfz scintilla172.tgz 
    25 #cp scintilla.mak.1.72 scintilla/gtk/makefile 
     38#cd leds/src/resources 
     39#wget http://prdownloads.sourceforge.net/scintilla/scintilla178.tgz 
     40#tar xvfz scintilla178.tgz 
     41#cp scintilla.mak.1.7.8 scintilla/gtk/makefile 
    2642#cd scintilla/gtk 
    2743#make 
  • trunk/leds.compd

    r276 r287  
    1010-lgtkd  
    1111-lgsv 
    12 -lphobos 
     12-version=ScintillaOnly 
    1313-c 
    1414-g 
  • trunk/src/leds/CodeEditFactory.d

    r267 r287  
    6363                    codeEdit = new SimpleCodeEdit(); 
    6464                    break; 
    65                      
     65version (ScintillaOnly) { 
     66} else {                     
    6667                case "sv": 
    6768                    codeEdit = new SourceViewEdit(); 
    6869                    break; 
    69                    
     70}                  
    7071                default: 
    7172                    codeEdit = new Scintilla(); 
  • trunk/src/leds/CodeView.d

    r284 r287  
    176176    int[] bugLines; 
    177177     
     178version (DigitalMars) { 
    178179    WrapGtk wrapGtk; 
    179      
     180
    180181     
    181182    bool userAllowClose = false; 
     
    16071608            menu.append(new MenuItem("remove '__'",&removeUnderscore)); 
    16081609            menu.append(new MenuItem("one line function protptype",&oneLineFunctionPrototype)); 
     1610version (DigitalMars) { 
    16091611            menu.append(new MenuItem("wrap GTK in DUI",&wrapGtkinDUI)); 
     1612} 
    16101613        } 
    16111614         
     
    16281631        int markerID = codeEdit.markerGet(lineNumber); 
    16291632        // writefln("markerID = %s", markerID); 
    1630         if ( markerID != 0 && cast(SourceViewEdit)codeEdit ) 
     1633version(ScintillaOnly) { } else { 
     1634        if ( markerID != 0 && cast(SourceViewSourceViewEdit)codeEdit ) 
    16311635        { 
    16321636            marginClickMarkersForSourceView(lineNumber); 
    16331637        } 
     1638} 
    16341639         
    16351640        if (eventButton.button != 1)  
     
    20042009         
    20052010    } 
    2006  
     2011version (DigitalMars) { 
    20072012    WrapGtk getWrapGtk() 
    20082013    { 
     
    20362041        } 
    20372042    } 
    2038    
     2043}  
    20392044    /** 
    20402045     * looks for the module declaration statement and retrieves the module full name. 
     
    29953000    bool marginClickMarkersForSourceView(int lineNumber) 
    29963001    { 
     3002version (ScintillaOnly) { } else { 
    29973003        lineNumber += 1; 
    29983004        writefln("marginClickMarkersForSourceView entry"); 
     
    30253031            } 
    30263032        } 
     3033} 
    30273034        return false; 
    30283035    } 
  • trunk/src/leds/Project.d

    r286 r287  
    693693                    lineNumber,  
    694694                    line,  
    695                     ProjectError.ProjErrorType.ERROR); 
     695                    leds.ProjectError.ERROR); 
    696696//              if ( Leds.leds.getPropValue("popupBuildOutput",true) ) 
    697697//              { 
     
    10751075                    lineNumber,  
    10761076                    line,  
    1077                     ProjectError.ProjErrorType.ERROR); 
     1077                    leds.ProjectError.ERROR); 
    10781078//              if ( Leds.leds.getPropValue("popupBuildOutput",true) ) 
    10791079//              { 
     
    15541554    } 
    15551555     
    1556     public void addProjectError(String fileName, int lineNumber, String message, ProjectError.ProjErrorType errorType) 
     1556    public void addProjectError(String fileName, int lineNumber, String message, int errorType) 
    15571557    { 
    15581558        ProjectError[] moduleErrors; 
  • trunk/src/leds/ProjectError.d

    r265 r287  
    2727 * This class describes an error or messages related to a module file. 
    2828 */ 
     29  
     30 
     31 
     32public const    int NONE = 0; 
     33public const    int TODO =1; 
     34public const    int WARNING=2; 
     35public const    int ERROR=3; 
     36 
     37  
    2938public class ProjectError 
    3039{ 
     
    3443    String message; 
    3544 
    36     public static enum ProjErrorType 
    37     { 
    38         NONE = 0, 
    39         TODO, 
    40         WARNING, 
    41         ERROR 
    42     } 
    4345 
    4446     
    45     ProjErrorType errorType; 
     47    int errorType; 
    4648     
    47     this(Project project, String fileName, int lineNumber, String message, ProjErrorType errorType) 
     49    this(Project project, String fileName, int lineNumber, String message, int errorType) 
    4850    { 
    4951        this.project = project; 
     
    7476    } 
    7577     
    76     public ProjErrorType getErrorType() 
     78    public int getErrorType() 
    7779    { 
    7880        return errorType; 
  • trunk/src/leds/SourceViewEdit.d

    r277 r287  
    2525//{; 
    2626 
    27  
     27version (ScintillaOnly) { 
     28} else { 
    2829private import leds.CodeEdit; 
    2930 
     
    11611162} 
    11621163 
    1163 //
     1164
  • trunk/src/leds/Workspace.d

    r274 r287  
    146146 
    147147    bit showLeftToolbar = false; 
    148  
     148version (DigitalMars) {  
    149149    WrapGtk wrapGtk; 
    150      
     150
    151151    /** 
    152152     * the file selection dialog. 
     
    447447            menu.append(new MenuItem("Remove \"__\"",&menuClicked,"source.removeUnderscore")); 
    448448            menu.append(new MenuItem("One line function prototype",&menuClicked,"source.oneLineFunctionPrototype")); 
     449version (DigitalMars) { 
    449450            menu.append(new MenuItem("_Wrap GTK in DUI",&menuClicked,"source.wrapGTKInDUI")); 
     451} 
    450452        } 
    451453 
     
    14511453        return gotoLineDialog; 
    14521454    } 
    1453  
     1455version (DigitalMars) {  
    14541456    public WrapGtk getWrapGtk() 
    14551457    { 
     
    14601462        return wrapGtk; 
    14611463    } 
    1462      
     1464
    14631465    public void setFindText(char[] text) 
    14641466    { 
     
    16991701                case "file.save": saveCurrent() ; break; 
    17001702                case "file.saveAs": saveAsCurrent() ; break; 
    1701      
     1703version (DigitalMars) {  
    17021704                case "file.newFromTemplate.DUIGtjWrapFrame" : getWrapGtk.show(); break; 
    1703                
     1705}              
    17041706 
    17051707                case "file.close": closeView(); break; 
     
    18721874                    createCodeView(); 
    18731875                    break; 
     1876version (DigitalMars) {  
    18741877                case "toolbar.duiGtkWrapping" : getWrapGtk.show(); break; 
    1875  
     1878
    18761879     
    18771880                case "toolbar.close" :  closeView(); break; 
  • trunk/src/leds/WrapGtk.d

    r274 r287  
    1919  
    2020module leds.WrapGtk; 
    21  
     21version (DigitalMars) { // this only works with DMD - due to problems with convert.NewGtWrap in dantfw 
    2222private import gtk.Window; 
    2323     
     
    4646 * The code editor and viewer. 
    4747 */ 
     48 
     49 
     50 
    4851public: 
    4952class WrapGtk : Window 
     
    180183} 
    181184     
     185} // end version Digitalmars