Show
Ignore:
Timestamp:
08/09/08 21:44:20 (5 months ago)
Author:
liamstask
Message:

- a few tests for the Builder class: creating a Makefile properly and loading in the requisite libraries
- update the AinToServo? example's project file format

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • mcbuilder/trunk/include/Builder.h

    r721 r799  
    2626#include "BuildLog.h" 
    2727 
     28#ifdef MCBUILDER_TEST_SUITE 
     29#include "TestBuilder.h" 
     30#endif 
     31 
    2832class MainWindow; 
    2933class ProjectInfo; 
     
    3236{ 
    3337  Q_OBJECT 
     38   
     39  #ifdef MCBUILDER_TEST_SUITE 
     40  friend class TestBuilder; 
     41  #endif 
     42   
    3443public: 
    35   Builder(MainWindow *mainWindow, ProjectInfo *projInfo, BuildLog *buildLog); 
     44  Builder( MainWindow *mainWindow, ProjectInfo *projInfo, BuildLog *buildLog ); 
    3645  void build(QString projectName); 
    3746  void clean(QString projectName); 
     
    6372  bool matchInFunction(QString msg); 
    6473  bool matchUndefinedRef(QString msg); 
    65   void ensureBuildDirExists(QString projPath); 
     74  QString ensureBuildDirExists(QString projPath); 
    6675  bool parseVersionNumber( int *maj, int *min, int *bld ); 
    67   void loadDependencies(QString project); 
     76  void loadDependencies(QString libsDir, QString project); 
    6877  void getLibrarySources(QString libdir, QStringList *thmb, QStringList *arm); 
    6978  QString filteredPath(QString path);