2000-08-27 19:11:42 +00:00
|
|
|
/*
|
2001-08-03 14:23:25 +00:00
|
|
|
GNUstep ProjectCenter - http://www.gnustep.org
|
2000-08-27 19:11:42 +00:00
|
|
|
|
2001-08-03 14:23:25 +00:00
|
|
|
Copyright (C) 2001 Free Software Foundation
|
2000-08-27 19:11:42 +00:00
|
|
|
|
2001-08-03 14:23:25 +00:00
|
|
|
Author: Philippe C.D. Robert <phr@3dkit.org>
|
2000-08-27 19:11:42 +00:00
|
|
|
|
2001-08-03 14:23:25 +00:00
|
|
|
This file is part of GNUstep.
|
2000-08-27 19:11:42 +00:00
|
|
|
|
|
|
|
This application is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This application is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public
|
|
|
|
License along with this library; if not, write to the Free
|
|
|
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
|
|
|
|
|
|
|
|
$Id$
|
|
|
|
*/
|
|
|
|
|
2002-02-02 21:12:49 +00:00
|
|
|
#ifndef _PCPROJECTBUILDER_H
|
|
|
|
#define _PCPROJECTBUILDER_H
|
|
|
|
|
2000-10-29 20:15:39 +00:00
|
|
|
#import <AppKit/AppKit.h>
|
2002-02-11 22:19:39 +00:00
|
|
|
#import <ProjectCenter/ProjectComponent.h>
|
2000-08-27 19:11:42 +00:00
|
|
|
|
|
|
|
@class PCProject;
|
|
|
|
|
2002-02-11 22:19:39 +00:00
|
|
|
@interface PCProjectBuilder : NSObject <ProjectComponent>
|
2000-08-27 19:11:42 +00:00
|
|
|
{
|
2000-10-29 20:15:39 +00:00
|
|
|
NSBox *componentView;
|
2002-01-27 13:32:46 +00:00
|
|
|
NSPopUpButton *popup;
|
2000-08-27 19:11:42 +00:00
|
|
|
|
|
|
|
NSTextView *logOutput;
|
2000-10-15 12:27:52 +00:00
|
|
|
NSTextView *errorOutput;
|
2000-08-27 19:11:42 +00:00
|
|
|
|
|
|
|
NSString *makePath;
|
2000-09-17 12:13:10 +00:00
|
|
|
|
2000-09-22 10:33:12 +00:00
|
|
|
id buildStatusField;
|
|
|
|
id targetField;
|
|
|
|
|
2000-09-17 12:13:10 +00:00
|
|
|
PCProject *currentProject;
|
|
|
|
NSDictionary *currentOptions;
|
2000-10-29 12:00:24 +00:00
|
|
|
|
|
|
|
NSFileHandle *readHandle;
|
|
|
|
NSFileHandle *errorReadHandle;
|
2000-08-27 19:11:42 +00:00
|
|
|
}
|
|
|
|
|
2000-10-29 20:15:39 +00:00
|
|
|
- (id)initWithProject:(PCProject *)aProject;
|
2000-08-27 19:11:42 +00:00
|
|
|
- (void)dealloc;
|
|
|
|
|
2000-10-29 20:15:39 +00:00
|
|
|
- (NSView *)componentView;
|
2000-09-17 12:13:10 +00:00
|
|
|
|
|
|
|
- (void)build:(id)sender;
|
2002-01-27 13:32:46 +00:00
|
|
|
- (void)popupChanged:(id)sender;
|
2000-10-15 12:27:52 +00:00
|
|
|
|
2000-10-29 12:00:24 +00:00
|
|
|
- (void)logStdOut:(NSNotification *)aNotif;
|
|
|
|
- (void)logErrOut:(NSNotification *)aNotif;
|
|
|
|
|
|
|
|
- (void)buildDidTerminate:(NSNotification *)aNotif;
|
2000-09-17 12:13:10 +00:00
|
|
|
|
2001-01-10 15:19:42 +00:00
|
|
|
- (void)copyPackageTo:(NSString *)path;
|
|
|
|
|
2000-08-27 19:11:42 +00:00
|
|
|
@end
|
2000-09-17 12:13:10 +00:00
|
|
|
|
2000-10-29 12:00:24 +00:00
|
|
|
@interface PCProjectBuilder (BuildLogging)
|
|
|
|
|
|
|
|
- (void)logString:(NSString *)string error:(BOOL)yn;
|
|
|
|
- (void)logString:(NSString *)string error:(BOOL)yn newLine:(BOOL)newLine;
|
|
|
|
- (void)logData:(NSData *)data error:(BOOL)yn;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2002-02-02 21:12:49 +00:00
|
|
|
#endif
|