blob: 3ff4ae8dfdb2f6e129e4b482c5549413fbbca42e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
package GHSWorkspaceCreator;
# ************************************************************
# Description : An incomplete GHS Workspace creator
# Author : Chad Elliott
# Create Date : 7/3/2002
# ************************************************************
# ************************************************************
# Pragmas
# ************************************************************
use strict;
use File::Basename;
use GHSProjectCreator;
use WorkspaceCreator;
use vars qw(@ISA);
@ISA = qw(WorkspaceCreator);
# ************************************************************
# Subroutine Section
# ************************************************************
sub workspace_file_name {
my($self) = shift;
return "ghs/default.bld";
}
sub pre_workspace {
my($self) = shift;
my($fh) = shift;
my($crlf) = $self->crlf();
print $fh "#!build$crlf" .
"default:$crlf";
}
sub write_comps {
my($self) = shift;
my($fh) = shift;
my($gen) = shift;
my($projects) = $self->get_projects();
my($pjs) = $self->get_project_info();
my(@list) = $self->sort_dependencies($projects, $pjs);
my($crlf) = $self->crlf();
## Print out the projet
print $fh "\tnobuild$crlf" .
"\t:cx_option=noexceptions$crlf" .
"\t:cx_option=std_namespaces$crlf" .
"\t:cx_template_option=noautomatic$crlf" .
"\t:language=cxx$crlf" .
"\t:cx_mode=ansi$crlf" .
"\t:cx_lib=scnoe$crlf";
foreach my $project (@list) {
## Convert all /'s to \
$project =~ s/\//\\/g;
print $fh "..\\$project$crlf";
if ($gen->exe_target()) {
print $fh "\tprogram$crlf";
}
else {
print $fh "\tlibrary$crlf";
}
}
}
1;
|