summaryrefslogtreecommitdiff
path: root/bin/make_release
diff options
context:
space:
mode:
Diffstat (limited to 'bin/make_release')
-rwxr-xr-xbin/make_release44
1 files changed, 29 insertions, 15 deletions
diff --git a/bin/make_release b/bin/make_release
index 183af2ed167..a0c73c050c7 100755
--- a/bin/make_release
+++ b/bin/make_release
@@ -578,8 +578,9 @@ sub update_version_files () {
die "$0: unable to open ciao/Version.h\n";
print CIAO_VERSION_H
- "// \$Id\$\n" .
- "// This is an automatically generated file.\n\n" .
+ "// -*- C++ -*-\n" .
+ "// \$Id\$\n\n" .
+ "// This is file was automatically generated by \$ACE_ROOT/bin/make_release.\n\n" .
"\#define CIAO_MAJOR_VERSION ${major_version}\n" .
"\#define CIAO_MINOR_VERSION ${minor_version}\n" .
"\#define CIAO_BETA_VERSION ${beta_version}\n" .
@@ -605,8 +606,9 @@ sub update_version_files () {
die "$0: unable to open tao/Version.h\n";
print TAO_VERSION_H
- "// \$Id\$\n" .
- "// This is an automatically generated file.\n\n" .
+ "// -*- C++ -*-\n" .
+ "// \$Id\$\n\n" .
+ "// This is file was automatically generated by \$ACE_ROOT/bin/make_release.\n\n" .
"\#define TAO_MAJOR_VERSION ${major_version}\n" .
"\#define TAO_MINOR_VERSION ${minor_version}\n" .
"\#define TAO_BETA_VERSION ${beta_version}\n" .
@@ -628,12 +630,14 @@ sub update_version_files () {
die "$0: unable to open ace/Version.h\n";
print ACE_VERSION_H
- "// \$Id\$\n" .
- "// This is an automatically generated file.\n\n" .
+ "// -*- C++ -*-\n" .
+ "// \$Id\$\n\n" .
+ "// This is file was automatically generated by \$ACE_ROOT/bin/make_release.\n\n" .
"\#define ACE_MAJOR_VERSION ${major_version}\n" .
"\#define ACE_MINOR_VERSION ${minor_version}\n" .
"\#define ACE_BETA_VERSION ${beta_version}\n" .
- "\#define ACE_VERSION \"${version}\"\n";
+ "\#define ACE_VERSION \"${version}\"\n\n";
+## "\#include \"ace/Versioned_Namespace.h\"\n";
close ACE_VERSION_H;
}
@@ -771,10 +775,6 @@ sub diff () {
########
sub generate_makefiles () {
- # At this point, the only mwc/mpc files are in ace and tests. When more
- # are available, this needs to be updated, maybe by cycling through
- # all non-TAO directories looking for mwc (or mpc?) files.
- #
# The current ACE_ROOT setting is where this script started from, not
# the staging area we want to generate files in. So, we need to
# specifically set the -relative option on mwc to replace ACE_ROOT
@@ -784,26 +784,40 @@ sub generate_makefiles () {
my $here = Cwd::getcwd();
print "My current wok in generate makefiles $here \n";
- my $exclude_option = '-exclude TAO/TAOACE.mwc,TAO/CIAO/CIAOTAO.mwc';
+ my $exclude_option = '-exclude TAO/TAO_*.mwc,TAO/CIAO/CIAO_*.mwc';
my $tmp_mpc_option =
'-recurse -hierarchy -relative ACE_ROOT=';
my $mpc_option = $tmp_mpc_option.$here.'/ACE_wrappers';
my $tmp_static_option =
- '-static -name_modifier *_Static -apply_project -exclude TAO/CIAO,TAO/TAOACE.mwc ';
+ '-static -name_modifier *_Static -apply_project -exclude TAO/CIAO,TAO/TAO_*.mwc ';
my $static_option = $tmp_static_option.$mpc_option;
+ # Visual Studio 2005 (aka VC8) uses the same file suffixes as VC7.1, so
+ # append _vc8 to the names.
+ my $vc8_option = '-name_modifier *_vc8';
+
+ # Additionally, VC8 can do Windows CE builds and these can be
+ # configured in. However, the CE builds have uses_wchar turned on,
+ # so we don't mix them with the Win32 VC8 files. The complete list of
+ # available platforms known at this point is in
+ # $MPC_ROOT/template/vc8_platforms.mpt - since the default is Win32
+ # and we're generating only CE builds, replace it instead of adding to it.
+ my $tmp_ce = '-value_template platforms=\'"Pocket PC 2003 (ARMV4)"\' ';
+ $tmp_ce = $tmp_ce.'-value_template platforms+=\'"Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"\'';
+ my $ce_option = '-name_modifier *_WinCE -features "uses_wchar=1,wince=1" '.$tmp_ce;
+
&ex ("cd ACE_wrappers; \
bin/mwc.pl $exclude_option $mpc_option; \
find ./ -name 'GNUmake*' | /usr/bin/xargs chmod 0644");
&ex ("cd ACE_wrappers; \
+ bin/mwc.pl -type vc8 $mpc_option $exclude_option $vc8_option; \
+ bin/mwc.pl -type vc8 $mpc_option $exclude_option $ce_option; \
bin/mwc.pl -type vc71 $mpc_option $exclude_option; \
- bin/mwc.pl -type vc6 $mpc_option $exclude_option; \
bin/mwc.pl -type borland $mpc_option $exclude_option; \
- bin/mwc.pl -type vc6 $static_option; \
bin/mwc.pl -type vc71 $static_option; \
find ./ -name '*.ds[p,w]' | /usr/bin/xargs chmod 0644;\
find ./ -name '*.bor' | /usr/bin/xargs chmod 0644;\