blob: 6ef1e7f1ffc747c67f134b4b16d984c1baf76b5a (
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
package BMakeProjectCreator;
# ************************************************************
# Description : A BMake Project Creator
# Author : Chad Elliott
# Create Date : 2/03/2004
# ************************************************************
# ************************************************************
# Pragmas
# ************************************************************
use strict;
use ProjectCreator;
use BorlandProjectBase;
use MakeProjectBase;
use vars qw(@ISA);
@ISA = qw(MakeProjectBase BorlandProjectBase ProjectCreator);
# ************************************************************
# Data Section
# ************************************************************
my %names = ('cppdir' => 'source_files',
'rcdir' => 'resource_files');
# ************************************************************
# Subroutine Section
# ************************************************************
sub fill_value {
my($self, $name) = @_;
if (defined $names{$name}) {
my %dirnames = ('.' => 1);
foreach my $file ($self->get_component_list($names{$name}, 1)) {
my $dirname = $self->mpc_dirname($file);
if ($dirname eq '') {
$dirname = '.';
}
else {
$dirname =~ s/\//\\/g;
}
$dirnames{$dirname} = 1;
}
## Sort the directories to ensure that '.' comes first
return join(';', sort keys %dirnames);
}
return undef;
}
sub get_and_symbol {
#my $self = shift;
return '&$(__TRICK_BORLAND_MAKE__)&';
}
sub project_file_extension {
#my $self = shift;
return '.bmak';
}
sub get_dll_exe_template_input_file {
#my $self = shift;
return 'bmakedllexe';
}
sub get_lib_exe_template_input_file {
#my $self = shift;
return 'bmakelibexe';
}
sub get_lib_template_input_file {
#my $self = shift;
return 'bmakelib';
}
sub get_dll_template_input_file {
#my $self = shift;
return 'bmakedll';
}
sub get_properties {
my $self = shift;
## Create the map of properties that we support.
my $props = {};
## Merge in properties from all base projects
foreach my $base (@ISA) {
my $func = $base . '::get_properties';
my $p = $self->$func();
foreach my $key (keys %$p) {
$$props{$key} = $$p{$key};
}
}
return $props;
}
1;
|