Skip to content

Commit 070b1ab

Browse files
authored
Merge branch 'master' into jwi-bmake
2 parents f0387f8 + be6d68b commit 070b1ab

File tree

8 files changed

+27
-17
lines changed

8 files changed

+27
-17
lines changed

.github/workflows/windows.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ jobs:
8181
'{"name": "tao","version-string": "githubaction","dependencies": [ ${{ matrix.vcpkgpackages }} ]}' > vcpkg.json
8282
shell: pwsh
8383
- name: Install vcpkg
84-
uses: lukka/run-vcpkg@v10
84+
uses: lukka/run-vcpkg@v11
8585
with:
86-
vcpkgGitCommitId: 94ce0dab56f4d8ba6bd631ba59ed682b02d45c46
87-
appendedCacheKey: ${{ matrix.name }}
86+
vcpkgGitCommitId: 5b1214315250939257ef5d62ecdcbca18cf4fb1c
8887
runVcpkgInstall: true
8988
- name: create $ACE_ROOT/ace/config.h
9089
run: |

create_base.pl

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# Data Section
3333
# ******************************************************************
3434

35-
my $version = '0.1';
35+
my $version = '0.2';
3636

3737
# ******************************************************************
3838
# Subroutine Section
@@ -45,6 +45,8 @@ sub gather_info {
4545
if (open($fh, $name)) {
4646
my @lines = ();
4747
my $pname = undef;
48+
my $pline = undef;
49+
4850
while(<$fh>) {
4951
## Get the line a remove leading and trailing white space
5052
my $line = $_;
@@ -81,6 +83,7 @@ sub gather_info {
8183
## us.
8284
$pname = Creator::fill_type_name(undef, $pname, $def);
8385
push(@lines, "project$parents {");
86+
$pline = $def;
8487
}
8588
elsif ($line =~ /^(shared|static)name\s*=\s*(.+)$/) {
8689
## Add in the libs and after settings.
@@ -95,10 +98,15 @@ sub gather_info {
9598
}
9699
close($fh);
97100

98-
## Only return the lines if there is more than one line. It is
99-
## possible (and likely) that we've read in the project declaration,
100-
## but the project did not contain a sharedname or staticname
101-
## setting.
101+
## If we have the unmodified project name, but the user did not provide
102+
## a sharedname or staticname, we will use that as the library name.
103+
if (defined $pline && $#lines == 0) {
104+
push(@lines, " libs += $pline",
105+
" after += $pname",
106+
"}");
107+
}
108+
109+
## Only return the lines if there is more than one line.
102110
return @lines if ($#lines > 0);
103111
}
104112

@@ -148,9 +156,7 @@ sub usageAndExit {
148156
print STDERR "Create Base Project v$version\n",
149157
"Usage: ", basename($0), " <mpc files> <output file or ",
150158
"directory>\n\nThis script will create a base project ",
151-
"based on the contents of the\nsupplied MPC file. ",
152-
"This is only useful if the project ",
153-
"explicitly sets\nsharedname or staticname.\n";
159+
"based on the contents of the\nsupplied MPC file.\n";
154160
exit(0);
155161
}
156162

modules/CommandHelper.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ sub get {
5151
## create a singleton of that type and return it.
5252
foreach my $inc (@INC) {
5353
if (-r "$inc/$type.pm") {
54+
OutputMessage::debug(undef, "Found $type.pm in $inc");
5455
require "$type.pm";
5556
$required{$type} = $type->new();
5657
return $required{$type};

modules/MakeWorkspaceBase.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ sub workspace_preamble {
6161

6262
## Optionally print the workspace comment
6363
$self->print_workspace_comment($fh,
64+
'# -*-Makefile-*-', $crlf,
6465
'#----------------------------------------------------------------------------', $crlf,
6566
'# ', $name, $crlf,
6667
'#', $crlf,

modules/MakeWorkspaceCreator.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ sub write_project_targets {
3838
my $chdir = ($dname ne '.');
3939
print $fh "\t\@",
4040
($chdir ? "cd $dname && " : ''),
41-
"\$(MAKE) -f ",
41+
'"$(MAKE)" -f ',
4242
($chdir ? $self->mpc_basename($project) : $project),
4343
" $target$crlf";
4444
}

modules/ProjectCreator.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ my $cppresource = 'resource_files';
194194
my %cppvc = ('source_files' => [ "\\.cpp", "\\.cxx", "\\.cc", "\\.c", "\\.C", ],
195195
'template_files' => [ "_T\\.cpp", "_T\\.cxx", "_T\\.cc", "_T\\.c", "_T\\.C", "_t\\.cpp", "_t\\.cxx", "_t\\.cc", "_t\\.c", "_t\\.C", "\\.tpp" ],
196196
'header_files' => [ "\\.h", "\\.hpp", "\\.hxx", "\\.hh", ],
197-
'inline_files' => [ "\\.i", "\\.ipp", "\\.inl", ],
197+
'inline_files' => [ "\\.i", "\\.ipp", "\\.ixx", "\\.inl", ],
198198
'documentation_files' => [ "README", "readme", "\\.doc", "\\.txt", "\\.html" ],
199199
$cppresource => [ "\\.rc", ],
200200
);

modules/WorkspaceCreator.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,8 @@ sub generate_project_files_fork {
18021802
}
18031803

18041804
$self->{'cacheok'} = $cacheok;
1805-
if ($self->cd($dir)) {
1805+
my $full = $self->path_is_relative($dir) ? "$cwd/$dir" : $dir;
1806+
if ($self->cd($full)) {
18061807
if ($self->{'cacheok'} && defined $allprojects{$prkey}) {
18071808

18081809
$files_written = $allprojects{$prkey};
@@ -1840,8 +1841,7 @@ sub generate_project_files_fork {
18401841
## Unable to change to the directory.
18411842
## We don't restore the state before we leave,
18421843
## but that's ok since we will be exiting soon.
1843-
return 0, $creator, $msg;
1844-
1844+
return 0, $creator, "Unable to change directory to $full";
18451845
}
18461846

18471847
## Return things to the way they were

templates/make.mpd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*-Makefile-*-
12
#----------------------------------------------------------------------------
23
# Macros
34
#----------------------------------------------------------------------------
@@ -119,8 +120,9 @@ AREXT = <%lib_ext%>
119120
LIB = $(LTARGETDIR)$(LIBPREFIX)<%staticname%>$(LIBSUFFIX)$(AREXT)
120121
<%endif%>
121122
<%endif%>
122-
<%if(dll_ext && sharedname)%>
123+
<%if(dll_ext)%>
123124
SOEXT = <%dll_ext%>
125+
<%if(sharedname)%>
124126
SHTARGETDIR = <%if(dllout)%><%dllout%><%if(!compares(dllout, .))%><%output_dir_ext%><%endif%><%else%><%libout%><%if(!compares(libout, .))%><%output_dir_ext%><%endif%><%endif%><%slash%><%targetoutdir%>
125127
<%if(version && versupport)%>
126128
SHLIB_BASE = $(LIBPREFIX)<%sharedname%>$(LIBSUFFIX)$(SOEXT)
@@ -130,6 +132,7 @@ SHLIB = $(SHTARGETDIR)$(LIBPREFIX)<%sharedname%>$(LIBSUFFIX)$(SOEXT)
130132
SHFLAGS = <%shflags%>
131133
<%endif%>
132134
<%endif%>
135+
<%endif%>
133136
SRC =<%if(pch_source && pchsupport)%> <%pch_source%><%endif%> <%source_files%>
134137
LINK.cc = <%if(dld)%><%dld%> $(LDFLAGS)<%else%>$(LD) $(LDFLAGS)<%endif%>
135138
<%if(!contains(language, java))%>

0 commit comments

Comments
 (0)