Kaydet (Commit) 589f7ed2 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

Merge remote branch 'origin/feature/gnumake2.1' into integration/dev300_m101

* origin/feature/gnumake2.1: (202 commits)
  Revert "starmath need to have _DLL_ defined, even on MacOS"
  tweak library name on MacOS
  starmath need to have _DLL_ defined, even on MacOS
  add helper to set-up the libraries env, to run executable during build
  the startmath module in Module_ooo must use the name of the directory
  add starmath libraries to Repository.mk
  make linkoo scan the solver too, for Norbert's gnumake work
  -Wunitialized is not compatible with -DDEBUG
  rename gb_HIRESTIME to gb_LOWRESTIME. Assume highres precision by default
  add missing library for sc.  Massage the delivered libraries name.
  support USE_GMAKE=1 envvar to build with gmake the modules that can be.
  add sc in the list of gmake-Modules
  support for an alternate gbuild.lst to support gmake build
  add a few comment to balance quotes, to make the editor less confused
  add all the sub-directory of the RESLOCATION to search for resource
  add calc related library to the Repository
  tweak MacOs platform specific include to build on Macos
  fixing variable exports for windows compiler (thanks ause)
  fixing variable exports for windows compiler (thanks ause)
  also accept debug=t
  ...

Conflicts:
	Makefile.in
	Module_ooo.mk
	Repository.mk
	RepositoryFixes.mk
	configure.in
	solenv/bin/build.pl
	solenv/bin/modules/RepositoryHelper.pm
	solenv/bin/packmodule
	solenv/doc/gbuild/doxygen.cfg
	solenv/doc/gbuild/solenv/gbuild/types.mk
	solenv/gbuild/AllLangResTarget.mk
	solenv/gbuild/BuildDirs.mk
	solenv/gbuild/ComponentTarget.mk
	solenv/gbuild/Deliver.mk
	solenv/gbuild/Executable.mk
	solenv/gbuild/Helper.mk
	solenv/gbuild/Library.mk
	solenv/gbuild/LinkTarget.mk
	solenv/gbuild/Module.mk
	solenv/gbuild/Output.mk
	solenv/gbuild/Package.mk
	solenv/gbuild/PrecompiledHeaders.mk
	solenv/gbuild/SdiTarget.mk
	solenv/gbuild/StaticLibrary.mk
	solenv/gbuild/TargetLocations.mk
	solenv/gbuild/gbuild.mk
	solenv/gbuild/platform/linux.mk
	solenv/gbuild/platform/macosx.mk
	solenv/gbuild/platform/solaris.mk
	solenv/gbuild/platform/windows.mk
	solenv/gbuild/processdelivered.awk
	solenv/gbuild/processdeps.awk
	solenv/inc/unxgcc.mk
	soltools/mkdepend/def.h
	soltools/mkdepend/include.c
...@@ -76,6 +76,7 @@ ...@@ -76,6 +76,7 @@
/bean /bean
/beanshell /beanshell
/berkeleydb /berkeleydb
/binaryurp
/binfilter /binfilter
/boost /boost
/bridges /bridges
......
...@@ -2,40 +2,48 @@ ...@@ -2,40 +2,48 @@
SHELL=/usr/bin/env bash SHELL=/usr/bin/env bash
ifeq ($(USE_GMAKE),)
GBUILD_OPT:=
else
GBUILD_OPT:=--gmake
endif
all: Makefile dmake/dmake@EXEEXT@ src.downloaded all: Makefile dmake/dmake@EXEEXT@ src.downloaded
. ./*[Ee]nv.[Ss]et.sh && \
@. ./*[Ee]nv.[Ss]et.sh && \
cd instsetoo_native && \ cd instsetoo_native && \
build.pl -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@ build.pl $(GBUILD_OPT) -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@
install: install:
@echo "Installing in $${prefix:-/usr/local}..." @. ./*[Ee]nv.[Ss]et.sh && \
. ./*[Ee]nv.[Ss]et.sh && \ echo "Installing in $${prefix:-@prefix@}..." && \
ooinstall "$${prefix:-@prefix@}" ooinstall "$${prefix:-@prefix@}" && \
@echo && \ echo "" && \
echo "Installation finished, you can now execute:" && \ echo "Installation finished, you can now execute:" && \
echo "$${prefix:-@prefix@}/program/soffice" echo "$${prefix:-@prefix@}/program/soffice"
dev-install: dev-install:
. ./*[Ee]nv.[Ss]et.sh && \ @. ./*[Ee]nv.[Ss]et.sh && \
ooinstall -l @abs_builddir@/install ooinstall -l @abs_builddir@/install && \
@echo && \ echo "" && \
echo "Developer installation finished, you can now execute:" && \ echo "Developer installation finished, you can now execute:" && \
echo "@abs_builddir@/install/program/soffice" echo "@abs_builddir@/install/program/soffice"
distclean: dmake/dmake@EXEEXT@ distclean: dmake/dmake@EXEEXT@
. ./*[Ee]nv.[Ss]et.sh && \ @. ./*[Ee]nv.[Ss]et.sh && \
dmake distclean dmake distclean
clean: dmake/dmake@EXEEXT@ clean: dmake/dmake@EXEEXT@
. ./*[Ee]nv.[Ss]et.sh && \ @. ./*[Ee]nv.[Ss]et.sh && \
dmake clean dmake clean && \
if [ -n "$$USE_GMAKE" ] ; then make -f GNUmakefile.mk -sr clean ; fi
dmake/dmake@EXEEXT@: dmake/dmake@EXEEXT@:
. ./*[Ee]nv.[Ss]et.sh && \ @. ./*[Ee]nv.[Ss]et.sh && \
./bootstrap ./bootstrap
src.downloaded: ooo.lst download src.downloaded: ooo.lst download
. ./*[Ee]nv.[Ss]et.sh && \ @. ./*[Ee]nv.[Ss]et.sh && \
$$SRC_ROOT/download $$SRC_ROOT/ooo.lst && touch $@ $$SRC_ROOT/download $$SRC_ROOT/ooo.lst && touch $@
fetch: src.downloaded fetch: src.downloaded
...@@ -44,19 +52,19 @@ Makefile: configure.in set_soenv.in Makefile.in ...@@ -44,19 +52,19 @@ Makefile: configure.in set_soenv.in Makefile.in
./autogen.sh ./autogen.sh
check: Makefile dmake/dmake@EXEEXT@ fetch check: Makefile dmake/dmake@EXEEXT@ fetch
. ./*[Ee]nv.[Ss]et.sh && \ @. ./*[Ee]nv.[Ss]et.sh && \
cd smoketestoo_native && \ cd smoketestoo_native && \
export SAL_USE_VCLPLUGIN="svp" && \ export SAL_USE_VCLPLUGIN="svp" && \
build.pl -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@ build.pl $(GBUILD_OPT) -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@
id: id:
. ./*[Ee]nv.[Ss]et.sh && \ @. ./*[Ee]nv.[Ss]et.sh && \
create-ids create-ids
tags: tags:
. ./*[Ee]nv.[Ss]et.sh && \ @. ./*[Ee]nv.[Ss]et.sh && \
create-tags create-tags
docs: docs:
. ./*[Ee]nv.[Ss]et.sh && \ @. ./*[Ee]nv.[Ss]et.sh && \
mkdocs.sh $$SRC_ROOT/docs $$SOLARENV/inc/doxygen.cfg mkdocs.sh $$SRC_ROOT/docs $$SOLARENV/inc/doxygen.cfg
#************************************************************************* #*************************************************************************
# #
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# #
# Copyright 2000, 2010 Oracle and/or its affiliates. # Copyright 2000, 2010 Oracle and/or its affiliates.
# #
# OpenOffice.org - a multi-platform office productivity suite # OpenOffice.org - a multi-platform office productivity suite
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
# #
# OpenOffice.org is distributed in the hope that it will be useful, # OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details # GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code). # (a copy is included in the LICENSE file that accompanied this code).
# #
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see # version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html> # <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License. # for a copy of the LGPLv3 License.
# #
...@@ -29,7 +29,7 @@ $(eval $(call gb_Module_Module,ooo)) ...@@ -29,7 +29,7 @@ $(eval $(call gb_Module_Module,ooo))
$(eval $(call gb_Module_add_moduledirs,ooo,\ $(eval $(call gb_Module_add_moduledirs,ooo,\
comphelper \ comphelper \
editeng \ editeng \
framework \ framework \
padmin \ padmin \
sfx2 \ sfx2 \
......
...@@ -48,7 +48,6 @@ $(eval $(call gb_Helper_register_libraries,OOOLIBS, \ ...@@ -48,7 +48,6 @@ $(eval $(call gb_Helper_register_libraries,OOOLIBS, \
cui \ cui \
drawinglayer \ drawinglayer \
editeng \ editeng \
eggtray \
fwe \ fwe \
fwi \ fwi \
fwk \ fwk \
...@@ -58,6 +57,7 @@ $(eval $(call gb_Helper_register_libraries,OOOLIBS, \ ...@@ -58,6 +57,7 @@ $(eval $(call gb_Helper_register_libraries,OOOLIBS, \
lng \ lng \
msfilter \ msfilter \
msword \ msword \
oox \
qstart_gtk \ qstart_gtk \
sax \ sax \
sb \ sb \
...@@ -97,7 +97,6 @@ $(eval $(call gb_Helper_register_libraries,RTLIBS, \ ...@@ -97,7 +97,6 @@ $(eval $(call gb_Helper_register_libraries,RTLIBS, \
i18nisolang1 \ i18nisolang1 \
i18nutil \ i18nutil \
ucbhelper \ ucbhelper \
vos3 \
)) ))
$(eval $(call gb_Helper_register_libraries,RTVERLIBS, \ $(eval $(call gb_Helper_register_libraries,RTVERLIBS, \
...@@ -131,7 +130,6 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \ ...@@ -131,7 +130,6 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
salcpprt \ salcpprt \
vclmain \ vclmain \
zlib \ zlib \
vclmain \
)) ))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -1984,7 +1984,7 @@ AC_MSG_CHECKING([the GNU make version]) ...@@ -1984,7 +1984,7 @@ AC_MSG_CHECKING([the GNU make version])
_make_version=`$GNUMAKE --version | grep GNU | $SED -e 's@^[[^0-9]]*@@' -e 's@ .*@@' -e 's@,.*@@'`; _make_version=`$GNUMAKE --version | grep GNU | $SED -e 's@^[[^0-9]]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
_make_longver=`echo $_make_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'` _make_longver=`echo $_make_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
if test "$_make_longver" -ge "038100" ; then if test "$_make_longver" -ge "038100" ; then
AC_MSG_RESULT([$GNUMAKE $_make_version]) AC_MSG_RESULT([$GNUMAKE $_make_version])
else else
AC_MSG_ERROR([failed ($GNUMAKE version >= 3.81 needed]) AC_MSG_ERROR([failed ($GNUMAKE version >= 3.81 needed])
fi fi
......
...@@ -20,8 +20,8 @@ sub fix_whitespace($$) { ...@@ -20,8 +20,8 @@ sub fix_whitespace($$) {
# usually we have nothing to do ;-) # usually we have nothing to do ;-)
return if ( keys( %{$lines} ) == 0 || return if ( keys( %{$lines} ) == 0 ||
$file eq "" || $file eq "" || $file eq "GNUmakefile" ||
!( $file =~ /\.(c|cpp|cxx|h|hrc|hxx|idl|inl|java|map|mk|MK|pl|pm|pmk|py|sdi|sh|src|tab)/ ) ); !( $file =~ /\.(c|cpp|cxx|h|hrc|hxx|idl|inl|java|map|MK|pl|pm|pmk|py|sdi|sh|src|tab)/ ) );
open( IN, "$file" ) || die "Cannot open $file for reading"; open( IN, "$file" ) || die "Cannot open $file for reading";
my ( $out, $tmpfile ) = mkstemp( "/tmp/whitespace-fixing-XXXXXX" ); my ( $out, $tmpfile ) = mkstemp( "/tmp/whitespace-fixing-XXXXXX" );
...@@ -157,7 +157,8 @@ my $err_ext = ""; ...@@ -157,7 +157,8 @@ my $err_ext = "";
open( FILES, "git diff-index --cached --name-only $against |" ) || die "Cannot run git diff-index."; open( FILES, "git diff-index --cached --name-only $against |" ) || die "Cannot run git diff-index.";
while ( my $file = <FILES> ) { while ( my $file = <FILES> ) {
chomp( $file ); chomp( $file );
if ( $file =~ /\.(c|cpp|cxx|h|hrc|hxx|idl|inl|java|map|mk|MK|pmk|pl|pm|sdi|sh|src|tab|xcu|xml)$/) { if ( $file ne "GNUmakefile" &&
$file =~ /\.(c|cpp|cxx|h|hrc|hxx|idl|inl|java|map|MK|pmk|pl|pm|sdi|sh|src|tab|xcu|xml)$/) {
open( F, "git diff-index -p --cached $against -- '$file' |" ); open( F, "git diff-index -p --cached $against -- '$file' |" );
while ( my $line = <F> ) { while ( my $line = <F> ) {
if ( $line =~ /^\+ *\t/ ) { if ( $line =~ /^\+ *\t/ ) {
......
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
my %platforms = (); # platforms available or being working with my %platforms = (); # platforms available or being working with
my %platforms_to_copy = (); # copy output trees for the platforms when --prepare my %platforms_to_copy = (); # copy output trees for the platforms when --prepare
my $tmp_dir = get_tmp_dir(); # temp directory for checkout and other actions my $tmp_dir = get_tmp_dir(); # temp directory for checkout and other actions
my @possible_build_lists = ('build.lst', 'build.xlist'); # build lists names my @possible_build_lists = ('gbuild.lst', 'build.lst', 'build.xlist'); # build lists names
my %build_list_paths = (); # build lists names my %build_list_paths = (); # build lists names
my %build_lists_hash = (); # hash of arrays $build_lists_hash{$module} = \($path, $xml_list_object) my %build_lists_hash = (); # hash of arrays $build_lists_hash{$module} = \($path, $xml_list_object)
my $pre_job = 'announce'; # job to add for not-single module build my $pre_job = 'announce'; # job to add for not-single module build
...@@ -199,6 +199,8 @@ ...@@ -199,6 +199,8 @@
my $zenity_in = ''; my $zenity_in = '';
my $zenity_out = ''; my $zenity_out = '';
my $zenity_err = ''; my $zenity_err = '';
my $allow_gbuild = 0;
my %is_gbuild = ();
my $verbose = 0; my $verbose = 0;
my @modules_built = (); my @modules_built = ();
...@@ -540,10 +542,17 @@ sub get_build_list_path { ...@@ -540,10 +542,17 @@ sub get_build_list_path {
my $possible_dir_path = $module_paths{$_}.'/prj/'; my $possible_dir_path = $module_paths{$_}.'/prj/';
if (-d $possible_dir_path) { if (-d $possible_dir_path) {
foreach my $build_list (@possible_build_lists) { foreach my $build_list (@possible_build_lists) {
my $possible_build_list_path = correct_path($possible_dir_path . $build_list); # if gbuild are allow we favor gbuild.lst as the build instruction
if (-f $possible_build_list_path) { if($build_list ne "gbuild.lst" || $allow_gbuild) {
$build_list_paths{$module} = $possible_build_list_path; my $possible_build_list_path = correct_path($possible_dir_path . $build_list);
return $possible_build_list_path; if (-f $possible_build_list_path) {
$build_list_paths{$module} = $possible_build_list_path;
if ($build_list eq "gbuild.lst") {
# print "Using gmake for module $module\n";
$is_gbuild{$module} = 1;
};
return $possible_build_list_path;
};
}; };
} }
print_error("There's no build list for $module"); print_error("There's no build list for $module");
...@@ -876,7 +885,7 @@ sub get_prj_platform { ...@@ -876,7 +885,7 @@ sub get_prj_platform {
s/\r\n//; s/\r\n//;
$line++; $line++;
if ($_ =~ /\snmake\s/) { if ($_ =~ /\snmake\s/) {
if ($' =~ /\s*-\s+(\w+)[,\S+]*\s+(\S+)/ ) { if ($' =~ /\s*-\s+(\w+)[,\S+]*\s+(\S+)/ ) { #'
my $platform = $1; my $platform = $1;
my $alias = $2; my $alias = $2;
print_error ("There is no correct alias set in the line $line!") if ($alias eq 'NULL'); print_error ("There is no correct alias set in the line $line!") if ($alias eq 'NULL');
...@@ -968,7 +977,7 @@ sub get_deps_hash { ...@@ -968,7 +977,7 @@ sub get_deps_hash {
$platform = $1; $platform = $1;
$dependencies = $'; $dependencies = $';
while ($dependencies =~ /,(\w+)/o) { while ($dependencies =~ /,(\w+)/o) {
$dependencies = $'; $dependencies = $'; #'
}; };
$dependencies =~ /\s+(\S+)\s+/o; $dependencies =~ /\s+(\S+)\s+/o;
$dir_alias = $1; $dir_alias = $1;
...@@ -980,7 +989,7 @@ sub get_deps_hash { ...@@ -980,7 +989,7 @@ sub get_deps_hash {
delete $dead_dependencies{$dir_alias} if (defined $dead_dependencies{$dir_alias}); delete $dead_dependencies{$dir_alias} if (defined $dead_dependencies{$dir_alias});
print_error("Directory alias $dir_alias is defined at least twice!! Please, correct build.lst in module $module_to_build") if (defined $$dependencies_hash{$dir_alias}); print_error("Directory alias $dir_alias is defined at least twice!! Please, correct build.lst in module $module_to_build") if (defined $$dependencies_hash{$dir_alias});
$platform_hash{$dir_alias}++; $platform_hash{$dir_alias}++;
$dependencies = $'; $dependencies = $'; #'
print_error("$module_to_build/prj/build.lst has wrongly written dependencies string:\n$_\n") if (!$dependencies); print_error("$module_to_build/prj/build.lst has wrongly written dependencies string:\n$_\n") if (!$dependencies);
$deps_hash{$_}++ foreach (get_dependency_array($dependencies)); $deps_hash{$_}++ foreach (get_dependency_array($dependencies));
$$dependencies_hash{$dir_alias} = \%deps_hash; $$dependencies_hash{$dir_alias} = \%deps_hash;
...@@ -1347,7 +1356,7 @@ sub get_dependency_array { ...@@ -1347,7 +1356,7 @@ sub get_dependency_array {
print_error("Project $prj has wrongly written dependencies string:\n $string") if (!$dep_string); print_error("Project $prj has wrongly written dependencies string:\n $string") if (!$dep_string);
$dep_string =~ /(\S+)\s*/o; $dep_string =~ /(\S+)\s*/o;
$parent_prj = $1; $parent_prj = $1;
$dep_string = $'; $dep_string = $'; #'
if ($parent_prj =~ /\.(\w+)$/o) { if ($parent_prj =~ /\.(\w+)$/o) {
$parent_prj = $`; $parent_prj = $`;
if (($prj_platform{$parent_prj} ne $1) && if (($prj_platform{$parent_prj} ne $1) &&
...@@ -1467,9 +1476,10 @@ sub get_options { ...@@ -1467,9 +1476,10 @@ sub get_options {
$arg =~ /^--checkmodules$/ and $checkparents = 1 and $ignore = 1 and next; $arg =~ /^--checkmodules$/ and $checkparents = 1 and $ignore = 1 and next;
$arg =~ /^-s$/ and $show = 1 and next; $arg =~ /^-s$/ and $show = 1 and next;
$arg =~ /^--deliver$/ and $deliver = 1 and next; $arg =~ /^--deliver$/ and $deliver = 1 and next;
$arg =~ /^--gmake$/ and $allow_gbuild = 1 and print "ALLOW GBUILD" and next;
$arg =~ /^(--job=)/ and $custom_job = $' and next; $arg =~ /^(--job=)/ and $custom_job = $' and next;
$arg =~ /^(--pre_job=)/ and $pre_custom_job = $' and next; $arg =~ /^(--pre_job=)/ and $pre_custom_job = $' and next;
$arg =~ /^(--post_job=)/ and $post_custom_job = $' and next; $arg =~ /^(--post_job=)/ and $post_custom_job = $' and next; #'
$arg =~ /^-d$/ and $deliver = 1 and next; $arg =~ /^-d$/ and $deliver = 1 and next;
$arg =~ /^--dlv_switch$/ and $dlv_switch = shift @ARGV and next; $arg =~ /^--dlv_switch$/ and $dlv_switch = shift @ARGV and next;
$arg =~ /^--file$/ and $cmd_file = shift @ARGV and next; $arg =~ /^--file$/ and $cmd_file = shift @ARGV and next;
...@@ -1618,11 +1628,12 @@ sub get_module_and_buildlist_paths { ...@@ -1618,11 +1628,12 @@ sub get_module_and_buildlist_paths {
$source_config_file = $source_config->get_config_file_path(); $source_config_file = $source_config->get_config_file_path();
$active_modules{$_}++ foreach ($source_config->get_active_modules()); $active_modules{$_}++ foreach ($source_config->get_active_modules());
my %active_modules_copy = %active_modules; my %active_modules_copy = %active_modules;
foreach ($source_config->get_all_modules()) { foreach my $module ($source_config->get_all_modules()) {
delete $active_modules_copy{$_} if defined($active_modules_copy{$_}); delete $active_modules_copy{$module} if defined($active_modules_copy{$module});
next if ($_ eq $initial_module); next if ($module eq $initial_module);
$module_paths{$_} = $source_config->get_module_path($_); $module_paths{$module} = $source_config->get_module_path($module);
$build_list_paths{$_} = $source_config->get_module_build_list($_) $build_list_paths{$module} = $source_config->get_module_build_list($module);
$is_gbuild{$module} = $source_config->{GBUILD};
} }
$dead_parents{$_}++ foreach (keys %active_modules_copy); $dead_parents{$_}++ foreach (keys %active_modules_copy);
}; };
...@@ -2026,7 +2037,7 @@ sub do_custom_job { ...@@ -2026,7 +2037,7 @@ sub do_custom_job {
my ($module_job, $dependencies_hash) = @_; my ($module_job, $dependencies_hash) = @_;
$module_job =~ /(\s)/o; $module_job =~ /(\s)/o;
my $module = $`; my $module = $`;
my $job = $'; my $job = $'; #'
html_store_job_info($dependencies_hash, $module_job); html_store_job_info($dependencies_hash, $module_job);
my $error_code = 0; my $error_code = 0;
if ($job eq $pre_job) { if ($job eq $pre_job) {
...@@ -2461,7 +2472,7 @@ sub get_modules_passed { ...@@ -2461,7 +2472,7 @@ sub get_modules_passed {
if ($option =~ /(:)/) { if ($option =~ /(:)/) {
$option = $`; $option = $`;
print_error("\'--from\' switch collision") if ($build_all_cont); print_error("\'--from\' switch collision") if ($build_all_cont);
$build_all_cont = $'; $build_all_cont = $'; #'
}; };
$$hash_ref{$option}++; $$hash_ref{$option}++;
}; };
...@@ -3325,7 +3336,7 @@ sub run_server { ...@@ -3325,7 +3336,7 @@ sub run_server {
my %client_hash = (); my %client_hash = ();
foreach (@client_data) { foreach (@client_data) {
/(=)/; /(=)/;
$client_hash{$`} = $'; $client_hash{$`} = $'; #'
} }
my $pid = $client_hash{pid} . '@' . $client_host; my $pid = $client_hash{pid} . '@' . $client_host;
if (defined $client_hash{platform}) { if (defined $client_hash{platform}) {
...@@ -3432,8 +3443,15 @@ sub get_job_string { ...@@ -3432,8 +3443,15 @@ sub get_job_string {
my $log_file = $jobs_hash{$job_dir}->{LONG_LOG_PATH}; my $log_file = $jobs_hash{$job_dir}->{LONG_LOG_PATH};
my $full_job_dir = $job_dir; my $full_job_dir = $job_dir;
if ($job_dir =~ /(\s)/o) { if ($job_dir =~ /(\s)/o) {
$job = $'; $job = $'; #'
$job = $deliver_command if ($job eq $post_job); print $echo . "determine if we need to deliver $job_dir\n";
if ($job eq $post_job) {
if( $is_gbuild{$job_dir} ) {
print "Skip deliver for gmake-built module $job_dir\n";
return'';
};
$job = $deliver_command
};
$full_job_dir = $module_paths{$`}; $full_job_dir = $module_paths{$`};
} }
my $log_dir = File::Basename::dirname($log_file); my $log_dir = File::Basename::dirname($log_file);
......
...@@ -55,7 +55,6 @@ export SAL_ALLOW_LINKOO_SYMLINKS=1 ...@@ -55,7 +55,6 @@ export SAL_ALLOW_LINKOO_SYMLINKS=1
my $dry_run = 0; my $dry_run = 0;
my $usage = 0; my $usage = 0;
my $LANG; my $LANG;
my $TARGET; my $TARGET;
my $LIBVER; my $LIBVER;
...@@ -67,14 +66,13 @@ my $brand_program_dir = 'program'; ...@@ -67,14 +66,13 @@ my $brand_program_dir = 'program';
my $ure_misc_dir = 'basis-link/ure-link/share/misc'; my $ure_misc_dir = 'basis-link/ure-link/share/misc';
my $ure_java_dir = 'basis-link/ure-link/share/java'; my $ure_java_dir = 'basis-link/ure-link/share/java';
my $ure_lib_dir = 'basis-link/ure-link/lib'; my $ure_lib_dir = 'basis-link/ure-link/lib';
$program_dir = 'openoffice.org/basis-link/MacOS' if ($ENV{OS} eq 'MACOSX'); # FIXME probably wrong $program_dir = 'openoffice.org/basis-link/MacOS' if ($ENV{OS} eq 'MACOSX'); # FIXME probably wrong
my @exceptions = ( 'cppuhelper', 'sunjavaplugin', 'libjvmfwk' ); my @exceptions = ( 'cppuhelper', 'sunjavaplugin', 'libjvmfwk' );
my %replaceable = ( my %replaceable = (
$program_dir => '\.so', $program_dir => '\.so',
$ure_lib_dir => '\.so',
$ure_java_dir => '\.jar$',
$program_dir . '/resource' => '\.res$', $program_dir . '/resource' => '\.res$',
$program_dir . '/classes' => '\.jar$', $program_dir . '/classes' => '\.jar$',
'basis-link/share/config' => '\.zip$', 'basis-link/share/config' => '\.zip$',
...@@ -332,6 +330,22 @@ sub link_pagein_files() ...@@ -332,6 +330,22 @@ sub link_pagein_files()
print "\n"; print "\n";
} }
# link installed files back into src tree:
sub link_soffice_bin_files()
{
my $dest;
my $src = "$OOO_INSTALL/" . $brand_program_dir;
print "soffice files";
$dest = "$OOO_BUILD/desktop/$TARGET/bin";
do_link ($src, $dest, 'soffice', 'soffice.bin', 1);
do_link ($src, $dest, 'bootstraprc', 'bootstraprc', 1);
do_link ($src, $dest, 'intro.bmp', 'intro.bmp', 1);
do_link ("$OOO_INSTALL", "$OOO_BUILD/desktop/$TARGET", 'share', 'share', 1);
print "\n";
}
for my $a (@ARGV) { for my $a (@ARGV) {
# options # options
...@@ -379,6 +393,7 @@ link_iso_res(); ...@@ -379,6 +393,7 @@ link_iso_res();
link_types_rdb(); link_types_rdb();
link_oovbaapi_rdb(); link_oovbaapi_rdb();
link_pagein_files(); link_pagein_files();
link_soffice_bin_files();
if (!-f "$OOO_INSTALL/" . $brand_program_dir . "/ooenv") { if (!-f "$OOO_INSTALL/" . $brand_program_dir . "/ooenv") {
my $ooenv; my $ooenv;
......
...@@ -118,8 +118,7 @@ sub search_for_hg { ...@@ -118,8 +118,7 @@ sub search_for_hg {
sub search_via_build_lst { sub search_via_build_lst {
my $self = shift; my $self = shift;
# my @possible_build_lists = ('build.lst', 'build.xlist'); # build lists names my @possible_build_lists = ('gbuild.lst', 'build.lst'); # build lists names
my @possible_build_lists = ('build.lst'); # build lists names
my $previous_dir = ''; my $previous_dir = '';
my $rep_root_candidate = $self->{INITIAL_DIRECTORY}; my $rep_root_candidate = $self->{INITIAL_DIRECTORY};
do { do {
......
...@@ -78,6 +78,14 @@ sub new { ...@@ -78,6 +78,14 @@ sub new {
} else { } else {
$source_root = $ENV{SOURCE_ROOT_DIR}; $source_root = $ENV{SOURCE_ROOT_DIR};
}; };
if ( defined $ENV{USE_GBUILD} and "$ENV{USE_GBUILD}" ne "" )
{
$self->{POSSIBLE_BUILD_LIST} = ('gbuild.lst', 'build.lst', 'build.xlist'); # build lists names
}
else
{
$self->{POSSIBLE_BUILD_LIST} = ('build.lst', 'build.xlist'); # build lists names
}
$source_root = Cwd::realpath($source_root); $source_root = Cwd::realpath($source_root);
$self->{SOURCE_ROOT} = $source_root; $self->{SOURCE_ROOT} = $source_root;
$self->{DEBUG} = 0; $self->{DEBUG} = 0;
...@@ -94,6 +102,7 @@ sub new { ...@@ -94,6 +102,7 @@ sub new {
$self->{REMOVE_REPOSITORIES} = {}; $self->{REMOVE_REPOSITORIES} = {};
$self->{NEW_REPOSITORIES} = []; $self->{NEW_REPOSITORIES} = [];
$self->{WARNINGS} = []; $self->{WARNINGS} = [];
$self->{GBUILD} = 0;
$self->{REPORT_MESSAGES} = []; $self->{REPORT_MESSAGES} = [];
$self->{CONFIG_FILE_CONTENT} = []; $self->{CONFIG_FILE_CONTENT} = [];
if (defined $self->{USER_SOURCE_ROOT}) { if (defined $self->{USER_SOURCE_ROOT}) {
...@@ -173,11 +182,14 @@ sub get_module_build_list { ...@@ -173,11 +182,14 @@ sub get_module_build_list {
if (defined ${$self->{MODULE_BUILD_LIST_PATHS}}{$module}) { if (defined ${$self->{MODULE_BUILD_LIST_PATHS}}{$module}) {
return ${$self->{MODULE_BUILD_LIST_PATHS}}{$module}; return ${$self->{MODULE_BUILD_LIST_PATHS}}{$module};
} else { } else {
my @possible_build_lists = ('build.lst', 'build.xlist'); # build lists names my @possible_build_lists = $self->{POSSIBLE_BUILD_LIST}; # build lists names
foreach (@possible_build_lists) { foreach my $build_list (@possible_build_lists) {
my $possible_path = ${$self->{MODULE_PATHS}}{$module} . "/prj/$_"; my $possible_path = ${$self->{MODULE_PATHS}}{$module} . "/prj/$build_list";
if (-e $possible_path) { if (-e $possible_path) {
${$self->{MODULE_BUILD_LIST_PATHS}}{$module} = $possible_path; ${$self->{MODULE_BUILD_LIST_PATHS}}{$module} = $possible_path;
if ( $build_list eq "gbuild.lst" ) {
$self->{GBUILD} = 1;
};
return $possible_path; return $possible_path;
}; };
}; };
......
...@@ -39,7 +39,7 @@ endef ...@@ -39,7 +39,7 @@ endef
define gb_Deliver_add_deliverable define gb_Deliver_add_deliverable
gb_Deliver_DELIVERABLES += $$(patsubst $(REPODIR)/%,%,$(2)):$$(patsubst $(REPODIR)/%,%,$(1)) gb_Deliver_DELIVERABLES += $$(patsubst $(REPODIR)/%,%,$(2)):$$(patsubst $(REPODIR)/%,%,$(1))
$(if $(gb_HIRESTIME),,.LOW_RESOLUTION_TIME : $(1)) $(if $(gb_LOWRESTIME),.LOW_RESOLUTION_TIME : $(1),)
endef endef
......
# -*- Mode: GNUmakefile; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#************************************************************************* #*************************************************************************
# #
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
......
...@@ -158,6 +158,9 @@ LINK*=$(CXX) ...@@ -158,6 +158,9 @@ LINK*=$(CXX)
LINKC*=$(CC) LINKC*=$(CC)
# default linker flags # default linker flags
.IF "$(SYSBASE)"!=""
LINKFLAGS_SYSBASE:=-Wl,--sysroot=$(SYSBASE)
.ENDIF # "$(SYSBASE)"!=""
# #
# The DT RPATH value is used first, before any other path, specifically before # The DT RPATH value is used first, before any other path, specifically before
# the path defined in the LD_LIBRARY_PATH environment variable. This is # the path defined in the LD_LIBRARY_PATH environment variable. This is
...@@ -180,16 +183,16 @@ LINKFLAGSRUNPATH_OXT= ...@@ -180,16 +183,16 @@ LINKFLAGSRUNPATH_OXT=
LINKFLAGSRUNPATH_BOXT=-Wl,-rpath,\''$$ORIGIN/../../../basis-link/program'\',--enable-new-dtags LINKFLAGSRUNPATH_BOXT=-Wl,-rpath,\''$$ORIGIN/../../../basis-link/program'\',--enable-new-dtags
LINKFLAGSRUNPATH_NONE= LINKFLAGSRUNPATH_NONE=
# flag -Wl,-z,noexecstack sets the NX bit on the stack # flag -Wl,-z,noexecstack sets the NX bit on the stack
LINKFLAGS=-Wl,-z,noexecstack -Wl,-z,combreloc $(LINKFLAGSDEFS) LINKFLAGS=-Wl,-z,noexecstack -Wl,-z,combreloc $(LINKFLAGSDEFS) $(LINKFLAGS_SYSBASE)
.IF "$(HAVE_LD_BSYMBOLIC_FUNCTIONS)" == "TRUE" .IF "$(HAVE_LD_BSYMBOLIC_FUNCTIONS)" == "TRUE"
LINKFLAGS += -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo LINKFLAGS += -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo
.ENDIF .ENDIF
# linker flags for linking applications # linker flags for linking applications
LINKFLAGSAPPGUI= -Wl,-export-dynamic \ LINKFLAGSAPPGUI= -Wl,-export-dynamic \
-Wl,-rpath-link,$(LB):$(SOLARLIBDIR) -Wl,-rpath-link,$(LB):$(SOLARLIBDIR):$(SYSBASE)/lib:$(SYSBASE)/usr/lib
LINKFLAGSAPPCUI= -Wl,-export-dynamic \ LINKFLAGSAPPCUI= -Wl,-export-dynamic \
-Wl,-rpath-link,$(LB):$(SOLARLIBDIR) -Wl,-rpath-link,$(LB):$(SOLARLIBDIR):$(SYSBASE)/lib:$(SYSBASE)/usr/lib
# linker flags for linking shared libraries # linker flags for linking shared libraries
LINKFLAGSSHLGUI= -shared LINKFLAGSSHLGUI= -shared
......
...@@ -61,9 +61,8 @@ in this Software without prior written authorization from the X Consortium. ...@@ -61,9 +61,8 @@ in this Software without prior written authorization from the X Consortium.
#endif #endif
#define MAXDEFINES 512 #define MAXDEFINES 512
#define MAXFILES ( 1<<16 ) /* Increased from 512. -mcafee */ #define MAXFILES 65536
/* Increased from 1024. -mh */
/* Increased from 2048. -b_michaelsen */
#define MAXDIRS 64 #define MAXDIRS 64
#define SYMHASHSEED 131 /* 131 1313 13131 ... */ #define SYMHASHSEED 131 /* 131 1313 13131 ... */
#define SYMHASHMEMBERS 64 /* must be 2^x to work right */ #define SYMHASHMEMBERS 64 /* must be 2^x to work right */
......
..\systemstlguards\*.h %_DEST%\inc%_EXT%\stl\*.h
..\%__SRC%\lib\lib*.so %_DEST%\lib%_EXT%\lib*.so ..\%__SRC%\lib\lib*.so %_DEST%\lib%_EXT%\lib*.so
..\%__SRC%\bin\*.dll %_DEST%\bin%_EXT%\*.dll ..\%__SRC%\bin\*.dll %_DEST%\bin%_EXT%\*.dll
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment