blob: 80291d9426e57d1295c9ed48690b0738c0454ecd (
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 CbxProjectCreator;
# ************************************************************
# Description : The Borland C++ BuilderX Project Creator
# Author : Johnny Willemsen
# Create Date : 10/12/2003
# ************************************************************
# ************************************************************
# Pragmas
# ************************************************************
use strict;
use ProjectCreator;
use File::Basename;
use vars qw(@ISA);
@ISA = qw(ProjectCreator);
# ************************************************************
# Subroutine Section
# ************************************************************
sub fill_value {
my($self) = shift;
my($name) = shift;
my($value) = undef;
if ($name eq 'cppdir') {
my(%dirnames) = ();
foreach my $file ($self->get_component_list('source_files')) {
my($dirname) = dirname($file);
if ($dirname eq '') {
$dirname = '.';
}
$dirnames{$dirname} = 1;
}
$value = join(';', sort keys %dirnames);
}
return $value;
}
sub project_file_name {
my($self) = shift;
my($name) = shift;
if (!defined $name) {
$name = $self->project_name();
}
return "$name.cbx";
}
sub get_dll_exe_template_input_file {
#my($self) = shift;
return 'cbxexe';
}
sub get_dll_template_input_file {
#my($self) = shift;
return 'cbxdll';
}
sub get_template {
#my($self) = shift;
return 'cbx';
}
1;
|