diff options
author | David Tardon <dtardon@redhat.com> | 2011-09-15 07:10:22 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-09-15 07:10:22 +0200 |
commit | 45589f1f27be2d93c250e900102d66af0d2b694d (patch) | |
tree | 065fd3eb1679c31c96f460a9d02c7ced4e65604c | |
parent | 6c8a7e0e6ad223051442ef6ce1d1103086c3f4a0 (diff) |
gbuildize automation
36 files changed, 944 insertions, 764 deletions
diff --git a/Repository.mk b/Repository.mk index f13f72d50517..59c2dd82c788 100644 --- a/Repository.mk +++ b/Repository.mk @@ -41,6 +41,7 @@ $(eval $(call gb_Helper_register_executables,NONE, \ $(eval $(call gb_Helper_register_executables,OOO, \ spadmin.bin \ + testtool \ )) $(eval $(call gb_Helper_register_libraries,OOOLIBS, \ @@ -52,6 +53,7 @@ $(eval $(call gb_Helper_register_libraries,OOOLIBS, \ basctl \ basebmp \ canvastools \ + communi \ date \ forui \ odbc \ @@ -112,11 +114,13 @@ $(eval $(call gb_Helper_register_libraries,OOOLIBS, \ sdfilt \ sdui \ sfx \ + simplecm \ sm \ smd \ solver \ sot \ spa \ + sts \ svl \ svt \ svx \ @@ -252,6 +256,7 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \ libeay32 \ ssleay32 \ ooopathutils \ + salmain \ sample \ salcpprt \ vclmain \ diff --git a/RepositoryFixes.mk b/RepositoryFixes.mk index 185d2fcb32b7..fed52cd904c8 100644 --- a/RepositoryFixes.mk +++ b/RepositoryFixes.mk @@ -37,6 +37,9 @@ gb_Library_FILENAMES := $(patsubst cppuhelper:libcppuhelper%,cppuhelper:libuno_c gb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES)) gb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES)) gb_Library_FILENAMES := $(patsubst ucbhelper:libucbhelper%,ucbhelper:libucbhelper4%,$(gb_Library_FILENAMES)) + +# TODO: this is a hack; we should really build salmain as a regular static library +gb_StaticLibrary_FILENAMES := $(subst salmain:libsalmain.a,salmain:salmain.o,$(gb_StaticLibrary_FILENAMES)) endif ifeq ($(OS),WNT) @@ -52,6 +55,7 @@ gb_Library_FILENAMES := $(patsubst tl:itl%,tl:itools%,$(gb_Library_FILENAMES)) gb_Library_FILENAMES := $(patsubst vbahelper:ivbahelper%,vbahelper:vbahelper%,$(gb_Library_FILENAMES)) gb_StaticLibrary_FILENAMES := $(patsubst graphite:graphite%,graphite:graphite_dll%,$(gb_StaticLibrary_FILENAMES)) +gb_StaticLibrary_FILENAMES := $(subst salmain:libsalmain.a,salmain:salmain.obj,$(gb_StaticLibrary_FILENAMES)) ifeq ($(COM),GCC) gb_Library_FILENAMES := $(patsubst crypto:icrypto%,crypto:crypto%,$(gb_Library_FILENAMES)) diff --git a/automation/AllLangResTarget_tma.mk b/automation/AllLangResTarget_tma.mk new file mode 100644 index 000000000000..6cb59f32eab2 --- /dev/null +++ b/automation/AllLangResTarget_tma.mk @@ -0,0 +1,44 @@ +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# Major Contributor(s): +# Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_AllLangResTarget_AllLangResTarget,tma)) + +$(eval $(call gb_AllLangResTarget_set_reslocation,tma,automation)) + +$(eval $(call gb_AllLangResTarget_add_srs,tma,\ + tma/res \ +)) + +$(eval $(call gb_SrsTarget_SrsTarget,tma/res)) + +$(eval $(call gb_SrsTarget_set_include,tma/res,\ + $$(INCLUDE) \ +)) + +$(eval $(call gb_SrsTarget_add_files,tma/res,\ + automation/source/miniapp/servres.src \ +)) + +# vim: set ts=4 sw=4 et: diff --git a/automation/Executable_miniapp.mk b/automation/Executable_miniapp.mk new file mode 100644 index 000000000000..7ddd9d9b6733 --- /dev/null +++ b/automation/Executable_miniapp.mk @@ -0,0 +1,66 @@ +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# Major Contributor(s): +# Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +# TODO: this seems to be unused? + +$(eval $(call gb_Executable_Executable,miniapp)) + +$(eval $(call gb_Executable_set_targettype_gui,miniapp,YES)) + +$(eval $(call gb_Executable_add_precompiled_header,miniapp,automation/inc/pch/precompiled_automation.hxx)) + +$(eval $(call gb_Executable_set_include,miniapp,\ + $$(INCLUDE) \ + -I$(SRCDIR)/automation/inc/pch \ +)) + +$(eval $(call gb_Executable_add_api,miniapp,\ + udkapi \ + offapi \ +)) + +$(eval $(call gb_Executable_add_linked_libs,miniapp,\ + comphelper \ + cppu \ + cppuhelper \ + sal \ + sts \ + svt \ + tl \ + ucbhelper \ + vcl \ +)) + +$(eval $(call gb_Executable_add_linked_static_libs,miniapp,\ + salmain \ +)) + +$(eval $(call gb_Executable_add_exception_objects,miniapp,\ + automation/source/miniapp/editwin \ + automation/source/miniapp/servres \ + automation/source/miniapp/testapp \ +)) + +# vim: set ts=4 sw=4 et: diff --git a/automation/Executable_testtool.mk b/automation/Executable_testtool.mk new file mode 100644 index 000000000000..8d9327c1b9be --- /dev/null +++ b/automation/Executable_testtool.mk @@ -0,0 +1,117 @@ +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# Major Contributor(s): +# Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Executable_Executable,testtool)) + +$(eval $(call gb_Executable_set_targettype_gui,testtool,YES)) + +$(eval $(call gb_Executable_add_package_headers,testtool,\ + automation_testtool \ +)) + +$(eval $(call gb_Executable_add_precompiled_header,testtool,automation/inc/pch/precompiled_automation.hxx)) + +$(eval $(call gb_Executable_set_include,testtool,\ + $$(INCLUDE) \ + -I$(call gb_CustomTarget_get_workdir,automation/source/testtool) \ + -I$(SRCDIR)/automation/inc/pch \ + -I$(SRCDIR)/automation/inc \ + -I$(SRCDIR)/automation/source/inc \ +)) + +$(eval $(call gb_Executable_add_api,testtool,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_Executable_add_linked_libs,testtool,\ + comphelper \ + communi \ + cppu \ + cppuhelper \ + sal \ + sb \ + simplecm \ + sts \ + svl \ + svt \ + tl \ + ucbhelper \ + utl \ + vcl \ + $(if $(findstring WNT,$(GUI)),\ + advapi32 \ + shell32 \ + ) \ +)) + +$(eval $(call gb_Executable_add_linked_static_libs,testtool,\ + app \ + salmain \ + sample \ +)) + +ifeq ($(OS),SOLARIS) + +$(eval $(call gb_Executable_add_libs,testtool,\ + -lXm +)) + +endif + +ifeq ($(GUI) $(OS),UNX LINUX) + +$(eval $(call gb_Executable_add_libs,testtool,\ + -lXext \ + -lX11 \ + -lSM \ + -lICE \ +)) + +endif + +$(eval $(call gb_Executable_add_noexception_objects,testtool,\ + automation/source/app/testbasi \ + automation/source/testtool/cretstrm \ + automation/source/testtool/httprequest \ +)) + +$(eval $(call gb_Executable_add_exception_objects,testtool,\ + automation/source/testtool/cmdstrm \ + automation/source/testtool/comm_bas \ + automation/source/testtool/objtest \ + automation/source/testtool/tcommuni \ +)) + +ifeq ($(GUI),WNT) + +$(eval $(call gb_Executable_add_noexception_objects,testtool,\ + automation/source/testtool/registry_win \ + automation/source/testtool/sysdir_win \ +)) + +endif + +# vim: set ts=4 sw=4 et: diff --git a/automation/Library_communi.mk b/automation/Library_communi.mk new file mode 100644 index 000000000000..263b8f1f22db --- /dev/null +++ b/automation/Library_communi.mk @@ -0,0 +1,65 @@ +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# Major Contributor(s): +# Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Library_Library,communi)) + +$(eval $(call gb_Library_add_package_headers,communi,\ + automation_inc \ +)) + +$(eval $(call gb_Library_add_precompiled_header,communi,automation/inc/pch/precompiled_automation.hxx)) + +$(eval $(call gb_Library_set_include,communi,\ + $$(INCLUDE) \ + -I$(SRCDIR)/automation/inc/pch \ + -I$(SRCDIR)/automation/inc \ +)) + +$(eval $(call gb_Library_add_api,communi,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_Library_add_defs,communi,\ + -DCOMMUNI_DLLIMPLEMENTATION \ +)) + +$(eval $(call gb_Library_add_linked_libs,communi,\ + sal \ + simplecm \ + svl \ + tl \ + vcl \ + $(if $(findstring WNT,$(GUI)),\ + advapi32 \ + gdi32 \ + ) \ +)) + +$(eval $(call gb_Library_add_exception_objects,communi,\ + automation/source/communi/communi \ +)) + +# vim: set ts=4 sw=4 et: diff --git a/automation/Library_simplecm.mk b/automation/Library_simplecm.mk new file mode 100644 index 000000000000..00b7ace5d83a --- /dev/null +++ b/automation/Library_simplecm.mk @@ -0,0 +1,52 @@ +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# Major Contributor(s): +# Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Library_Library,simplecm)) + +$(eval $(call gb_Library_add_precompiled_header,simplecm,automation/inc/pch/precompiled_automation.hxx)) + +$(eval $(call gb_Library_set_include,simplecm,\ + $$(INCLUDE) \ + -I$(SRCDIR)/automation/inc \ + -I$(SRCDIR)/automation/inc/pch \ + -I$(SRCDIR)/automation/source/inc \ +)) + +$(eval $(call gb_Library_add_defs,simplecm,\ + -DSIMPLECM_DLLIMPLEMENTATION \ +)) + +$(eval $(call gb_Library_add_linked_libs,simplecm,\ + sal \ + tl \ +)) + +$(eval $(call gb_Library_add_noexception_objects,simplecm,\ + automation/source/simplecm/packethandler \ + automation/source/simplecm/simplecm \ + automation/source/simplecm/tcpio \ +)) + +# vim: set ts=4 sw=4 et: diff --git a/automation/Library_sts.mk b/automation/Library_sts.mk new file mode 100644 index 000000000000..eb21f5dfd89b --- /dev/null +++ b/automation/Library_sts.mk @@ -0,0 +1,102 @@ +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# Major Contributor(s): +# Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Library_Library,sts)) + +$(eval $(call gb_Library_add_precompiled_header,sts,automation/inc/pch/precompiled_automation.hxx)) + +$(eval $(call gb_Library_set_include,sts,\ + $$(INCLUDE) \ + -I$(WORKDIR)/CustomTarget/automation/source/testtool \ + -I$(SRCDIR)/automation/inc/pch \ + -I$(SRCDIR)/automation/source/inc \ + -I$(SRCDIR)/automation/inc \ +)) + +$(eval $(call gb_Library_add_api,sts,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_Library_add_defs,sts,\ + -DSTS_DLLIMPLEMENTATION \ +)) + +$(eval $(call gb_Library_add_linked_libs,sts,\ + communi \ + comphelper \ + cppu \ + cppuhelper \ + sal \ + sb \ + simplecm \ + sot \ + svl \ + svt \ + tl \ + utl \ + vcl \ + $(if $(findstring WNT,$(GUI)),\ + advapi32 \ + gdi32 \ + ) \ +)) + +$(eval $(call gb_Library_add_exception_objects,sts,\ + automation/source/server/XMLParser \ + automation/source/server/profiler \ + automation/source/server/recorder \ + automation/source/server/server \ + automation/source/server/sta_list \ +)) + +$(eval $(call gb_Library_add_noexception_objects,sts,\ + automation/source/server/cmdbasestream \ + automation/source/server/editwin \ + automation/source/server/retstrm \ + automation/source/server/scmdstrm \ + automation/source/server/svcommstream \ +)) + +$(eval $(call gb_Library_add_cxxobjects,sts,\ + automation/source/server/statemnt \ + ,$(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \ +)) + +ifeq ($(OS),SOLARIS) + +$(eval $(call gb_Library_add_noexception_objects,sts,\ + automation/source/server/prof_usl \ +)) + +else + +$(eval $(call gb_Library_add_noexception_objects,sts,\ + automation/source/server/prof_nul \ +)) + +endif + +# vim: set ts=4 sw=4 et: diff --git a/automation/source/app/makefile.mk b/automation/Makefile index 8a430b3c3a96..8d71119918b6 100644 --- a/automation/source/app/makefile.mk +++ b/automation/Makefile @@ -1,3 +1,4 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- #************************************************************************* # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -25,28 +26,14 @@ # #************************************************************************* -PRJ=..$/.. +ifeq ($(strip $(SOLARENV)),) +$(error No environment set!) +endif -PRJNAME=automation -TARGET=app +gb_PARTIALBUILD := T +GBUILDDIR := $(SOLARENV)/gbuild +include $(GBUILDDIR)/gbuild.mk -# --- Settings ------------------------------------------------------------ +$(eval $(call gb_Module_make_global_targets,$(shell ls $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/Module*.mk))) -.INCLUDE : settings.mk - -# --- Allgemein ------------------------------------------------------------ - -CXXFILES = \ - testbasi.cxx - - -OBJFILES = \ - $(OBJ)$/testbasi.obj - - -LIBTARGET = NO - - -# --- Targets ------------------------------------------------------------ - -.INCLUDE : target.mk +# vim: set noet sw=4 ts=4: diff --git a/automation/Module_automation.mk b/automation/Module_automation.mk new file mode 100644 index 000000000000..5a30f9bfc44d --- /dev/null +++ b/automation/Module_automation.mk @@ -0,0 +1,40 @@ +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# Major Contributor(s): +# Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Module_Module,automation)) + +$(eval $(call gb_Module_add_targets,automation,\ + AllLangResTarget_tma \ + Executable_testtool \ + Library_communi \ + Library_simplecm \ + Library_sts \ + Package_hid \ + Package_inc \ + Package_packimages \ + Package_testtool \ +)) + +# vim: set ts=4 sw=4 et: diff --git a/automation/Package_hid.mk b/automation/Package_hid.mk new file mode 100644 index 000000000000..fff48d19bab3 --- /dev/null +++ b/automation/Package_hid.mk @@ -0,0 +1,30 @@ +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# Major Contributor(s): +# Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Package_Package,automation_hid,$(SRCDIR)/automation/util)) + +$(eval $(call gb_Package_add_file,automation_hid,bin/hid/manually_added_ids.hid,manually_added_ids.hid)) + +# vim: set ts=4 sw=4 noet: diff --git a/automation/Package_inc.mk b/automation/Package_inc.mk new file mode 100644 index 000000000000..cf02c1148ed1 --- /dev/null +++ b/automation/Package_inc.mk @@ -0,0 +1,37 @@ +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# Major Contributor(s): +# Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Package_Package,automation_inc,$(SRCDIR)/automation/inc/automation)) + +$(eval $(call gb_Package_add_file,automation_inc,inc/automation/automation.hxx,automation.hxx)) +$(eval $(call gb_Package_add_file,automation_inc,inc/automation/commdefines.hxx,commdefines.hxx)) +$(eval $(call gb_Package_add_file,automation_inc,inc/automation/commtypes.hxx,commtypes.hxx)) +$(eval $(call gb_Package_add_file,automation_inc,inc/automation/communi.hxx,communi.hxx)) +$(eval $(call gb_Package_add_file,automation_inc,inc/automation/communidllapi.h,communidllapi.h)) +$(eval $(call gb_Package_add_file,automation_inc,inc/automation/simplecm.hxx,simplecm.hxx)) +$(eval $(call gb_Package_add_file,automation_inc,inc/automation/simplecmdllapi.h,simplecmdllapi.h)) +$(eval $(call gb_Package_add_file,automation_inc,inc/automation/stsdllapi.h,stsdllapi.h)) + +# vim: set ts=4 sw=4 et: diff --git a/automation/Package_packimages.mk b/automation/Package_packimages.mk new file mode 100644 index 000000000000..f76837243367 --- /dev/null +++ b/automation/Package_packimages.mk @@ -0,0 +1,43 @@ +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# Major Contributor(s): +# Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +# TODO: this is probably the same procedure that is used in +# postprocess/packimages -> good candidate for a gbuild class + +$(eval $(call gb_Package_Package,automation_packimages,$(call gb_CustomTarget_get_workdir,automation/packimages))) + +$(eval $(call gb_Package_add_file,automation_packimages,bin/images_tt.zip,images_tt.zip)) + +$(eval $(call gb_Package_add_customtarget,automation_packimages,automation/packimages,SRCDIR)) + +$(eval $(call gb_CustomTarget_add_outdir_dependencies,automation/packimages,\ + $(OUTDIR)/res/img/fps_officeen-US.ilst \ + $(OUTDIR)/res/img/sben-US.ilst \ + $(OUTDIR)/res/img/stten-US.ilst \ + $(OUTDIR)/res/img/svten-US.ilst \ + $(OUTDIR)/res/img/vclen-US.ilst \ +)) + +# vim: set ts=4 sw=4 noet: diff --git a/automation/Package_testtool.mk b/automation/Package_testtool.mk new file mode 100644 index 000000000000..b2f007623018 --- /dev/null +++ b/automation/Package_testtool.mk @@ -0,0 +1,55 @@ +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# Major Contributor(s): +# Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Package_Package,automation_testtool,$(WORKDIR)/CustomTarget/automation/source/testtool)) + +$(eval $(call gb_Package_add_file,automation_testtool,bin/classes,classes)) +$(eval $(call gb_Package_add_file,automation_testtool,bin/keycodes,keycodes)) +$(eval $(call gb_Package_add_file,automation_testtool,bin/res_type,res_type)) + +ifeq ($(GUI),UNX) + +$(eval $(call gb_Package_add_file,automation_testtool,bin/testtoolrc,testtool.ini)) + +else ifeq ($(GUI),WNT) + +$(eval $(call gb_Package_add_file,automation_testtool,bin/testtool.ini,testtool.ini)) + +endif + +$(eval $(call gb_Package_add_customtarget,automation_testtool,automation/source/testtool,SRCDIR)) + +$(eval $(call gb_CustomTarget_add_dependencies,automation/source/testtool,\ + automation/source/inc/rcontrol.hxx \ + automation/source/testtool/filter.pl \ + automation/source/testtool/testtool.ini \ +)) + +$(eval $(call gb_CustomTarget_add_outdir_dependencies,automation/source/testtool,\ + $(OUTDIR)/inc/tools/wintypes.hxx \ + $(OUTDIR)/inc/vcl/keycodes.hxx \ +)) + +# vim: set ts=4 sw=4 et: diff --git a/automation/inc/automation/automation.hxx b/automation/inc/automation/automation.hxx index aaf54e24d564..8549bc777fa9 100644 --- a/automation/inc/automation/automation.hxx +++ b/automation/inc/automation/automation.hxx @@ -28,9 +28,11 @@ #ifndef AUTOMATION_HXX #define AUTOMATION_HXX +#include "automation/stsdllapi.h" + class ImplRemoteControl; -class RemoteControl +class STS_DLLPUBLIC RemoteControl { ImplRemoteControl* pImpl; public: diff --git a/automation/inc/automation/communi.hxx b/automation/inc/automation/communi.hxx index c416d771af6f..14355124ecca 100644 --- a/automation/inc/automation/communi.hxx +++ b/automation/inc/automation/communi.hxx @@ -29,6 +29,8 @@ #ifndef _COMMUNI_HXX #define _COMMUNI_HXX +#include "automation/communidllapi.h" + #include <svl/svarray.hxx> #include <osl/thread.hxx> #include <osl/mutex.hxx> @@ -42,7 +44,7 @@ class SvMemoryStream; class CommunicationManagerServerAcceptThread; SV_DECL_PTRARR_SORT( CommunicationLinkList, CommunicationLink*, 1, 10 ) -class MultiCommunicationManager : public CommunicationManager +class COMMUNI_DLLPUBLIC MultiCommunicationManager : public CommunicationManager { public: MultiCommunicationManager( sal_Bool bUseMultiChannel = sal_False ); @@ -65,19 +67,19 @@ protected: sal_Bool bGracefullShutdown; }; -class CommunicationManagerServer : public MultiCommunicationManager +class COMMUNI_DLLPUBLIC CommunicationManagerServer : public MultiCommunicationManager { public: CommunicationManagerServer( sal_Bool bUseMultiChannel = sal_False ):MultiCommunicationManager( bUseMultiChannel ){;} }; -class CommunicationManagerClient : public MultiCommunicationManager, public ICommunicationManagerClient +class COMMUNI_DLLPUBLIC CommunicationManagerClient : public MultiCommunicationManager, public ICommunicationManagerClient { public: CommunicationManagerClient( sal_Bool bUseMultiChannel = sal_False ); }; -class CommunicationLinkViaSocket : public SimpleCommunicationLinkViaSocket, public osl::Thread +class COMMUNI_DLLPUBLIC CommunicationLinkViaSocket : public SimpleCommunicationLinkViaSocket, public osl::Thread { public: CommunicationLinkViaSocket( CommunicationManager *pMan, osl::StreamSocket* pSocket ); @@ -113,7 +115,7 @@ protected: Link mlPutDataReceived; }; -class CommunicationManagerServerViaSocket : public CommunicationManagerServer +class COMMUNI_DLLPUBLIC CommunicationManagerServerViaSocket : public CommunicationManagerServer { friend class CommunicationManagerServerAcceptThread; public: @@ -134,7 +136,7 @@ private: void AddConnection( CommunicationLink *pNewConnection ); }; -class CommunicationManagerServerAcceptThread: public osl::Thread +class COMMUNI_DLLPUBLIC CommunicationManagerServerAcceptThread: public osl::Thread { public: CommunicationManagerServerAcceptThread( CommunicationManagerServerViaSocket* pServer, sal_uLong nPort, sal_uInt16 nMaxCon = CM_UNLIMITED_CONNECTIONS ); @@ -159,7 +161,7 @@ private: DECL_LINK( AddConnection, void* ); }; -class CommunicationManagerClientViaSocket : public CommunicationManagerClient, CommonSocketFunctions +class COMMUNI_DLLPUBLIC CommunicationManagerClientViaSocket : public CommunicationManagerClient, CommonSocketFunctions { public: using CommunicationManager::StartCommunication; diff --git a/automation/inc/automation/communidllapi.h b/automation/inc/automation/communidllapi.h new file mode 100644 index 000000000000..637d00d88900 --- /dev/null +++ b/automation/inc/automation/communidllapi.h @@ -0,0 +1,43 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#ifndef INCLUDED_AUTOMATION_COMMUNIDLLAPI_H +#define INCLUDED_AUTOMATION_COMMUNIDLLAPI_H + +#include <sal/types.h> + +#if defined(COMMUNI_DLLIMPLEMENTATION) +#define COMMUNI_DLLPUBLIC SAL_DLLPUBLIC_EXPORT +#else +#define COMMUNI_DLLPUBLIC SAL_DLLPUBLIC_IMPORT +#endif +#define COMMUNI_DLLPRIVATE SAL_DLLPRIVATE + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/automation/inc/automation/simplecm.hxx b/automation/inc/automation/simplecm.hxx index 96e55caef8b7..cc735a9de99c 100644 --- a/automation/inc/automation/simplecm.hxx +++ b/automation/inc/automation/simplecm.hxx @@ -28,6 +28,8 @@ #ifndef _SIMPLECM_HXX #define _SIMPLECM_HXX +#include "automation/simplecmdllapi.h" + #include <tools/link.hxx> #include <tools/string.hxx> #include <tools/stream.hxx> @@ -101,7 +103,7 @@ class CommunicationLink; SV_DECL_REF( CommunicationLink ) -class InfoString : public ByteString +class SIMPLECM_DLLPUBLIC InfoString : public ByteString { public: InfoString( ByteString &nMsg, CM_InfoType nIT, CommunicationLink *pCL = NULL ): ByteString( nMsg ), nInfoType( nIT ), pCommLink( pCL ) {;} @@ -116,7 +118,7 @@ class PacketHandler; class CommunicationManager; class MultiCommunicationManager; class CommunicationManagerServerAcceptThread; -class CommunicationLink : public SvRefBase +class SIMPLECM_DLLPUBLIC CommunicationLink : public SvRefBase { protected: friend class CommunicationManager; @@ -213,7 +215,7 @@ public: SV_IMPL_REF( CommunicationLink ); class CommonSocketFunctions; -class CommunicationManager +class SIMPLECM_DLLPUBLIC CommunicationManager { friend class CommunicationLink; friend class CommonSocketFunctions; @@ -281,7 +283,7 @@ private: sal_Bool bIsMultiChannel; }; -class ICommunicationManagerClient +class SIMPLECM_DLLPUBLIC ICommunicationManagerClient { friend class CommonSocketFunctions; protected: @@ -289,7 +291,7 @@ protected: }; class TCPIO; -class SimpleCommunicationLinkViaSocket : public CommunicationLink +class SIMPLECM_DLLPUBLIC SimpleCommunicationLinkViaSocket : public CommunicationLink { public: virtual sal_Bool IsCommunicationError(); @@ -322,7 +324,7 @@ protected: void SetNewPacketAsCurrent(); }; -class CommonSocketFunctions +class SIMPLECM_DLLPUBLIC CommonSocketFunctions { public: sal_Bool DoStartCommunication( CommunicationManager *pCM, ICommunicationManagerClient *pCMC, ByteString aHost, sal_uLong nPort ); diff --git a/automation/inc/automation/simplecmdllapi.h b/automation/inc/automation/simplecmdllapi.h new file mode 100644 index 000000000000..08c262ac2c97 --- /dev/null +++ b/automation/inc/automation/simplecmdllapi.h @@ -0,0 +1,43 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#ifndef INCLUDED_AUTOMATION_SIMPLECMDLLAPI_H +#define INCLUDED_AUTOMATION_SIMPLECMDLLAPI_H + +#include <sal/types.h> + +#if defined(SIMPLECM_DLLIMPLEMENTATION) +#define SIMPLECM_DLLPUBLIC SAL_DLLPUBLIC_EXPORT +#else +#define SIMPLECM_DLLPUBLIC SAL_DLLPUBLIC_IMPORT +#endif +#define SIMPLECM_DLLPRIVATE SAL_DLLPRIVATE + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/automation/inc/automation/stsdllapi.h b/automation/inc/automation/stsdllapi.h new file mode 100644 index 000000000000..e7c3c64942de --- /dev/null +++ b/automation/inc/automation/stsdllapi.h @@ -0,0 +1,43 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#ifndef INCLUDED_AUTOMATION_STSDLLAPI_H +#define INCLUDED_AUTOMATION_STSDLLAPI_H + +#include <sal/types.h> + +#if defined(STS_DLLIMPLEMENTATION) +#define STS_DLLPUBLIC SAL_DLLPUBLIC_EXPORT +#else +#define STS_DLLPUBLIC SAL_DLLPUBLIC_IMPORT +#endif +#define STS_DLLPRIVATE SAL_DLLPRIVATE + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/automation/packimages/Makefile b/automation/packimages/Makefile new file mode 100644 index 000000000000..69631bb08b90 --- /dev/null +++ b/automation/packimages/Makefile @@ -0,0 +1,46 @@ +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# Major Contributor(s): +# Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +include $(GBUILDDIR)/gbuild_simple.mk + +BINDIR := $(dir $(GBUILDDIR))bin +BASEDIR := $(dir $(firstword $(MAKEFILE_LIST))) + +ILSTS := \ + $(OUTDIR)/res/img/fps_officeen-US.ilst \ + $(OUTDIR)/res/img/sben-US.ilst \ + $(OUTDIR)/res/img/stten-US.ilst \ + $(OUTDIR)/res/img/svten-US.ilst \ + $(OUTDIR)/res/img/vclen-US.ilst \ + +images_tt.zip : + cp $(ILSTS) . \ + && $(PERL) $(BINDIR)/packimages.pl -g $(SRCDIR)/default_images -m $(SRCDIR)/default_images -c $(CURDIR) -l $(CURDIR) -o $@ + +.DEFAULT_GOAL := all +.PHONY : all +all : images_tt.zip + +# vim: set ts=4 sw=4 noet: diff --git a/automation/packimages/makefile.mk b/automation/packimages/makefile.mk deleted file mode 100644 index 30595417149f..000000000000 --- a/automation/packimages/makefile.mk +++ /dev/null @@ -1,62 +0,0 @@ -#************************************************************************* -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# Copyright 2000, 2010 Oracle and/or its affiliates. -# -# OpenOffice.org - a multi-platform office productivity suite -# -# This file is part of OpenOffice.org. -# -# OpenOffice.org is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License version 3 -# only, as published by the Free Software Foundation. -# -# OpenOffice.org is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License version 3 for more details -# (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 -# version 3 along with OpenOffice.org. If not, see -# <http://www.openoffice.org/license.html> -# for a copy of the LGPLv3 License. -# -#************************************************************************* -PRJ=.. -PRJNAME=automation -TARGET=packimages -RSCCUSTOMIMG*=$(PRJ)$/util - -# point to an existing directory as default that poses no threat -# to a "find" that looks for "*.png" -RSCCUSTOMIMG*=$(PRJNAME)$/util - -# point to an existing directory as default that poses no threat -# to a "find" that looks for "*.png" -RSCCUSTOMIMG*=$(PRJNAME)$/util - -.INCLUDE: settings.mk - -.INCLUDE: target.mk - -ALLTAR : \ - $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(BIN))$/images_tt.zip - -#solarenv = j:\so-cwsserv04\gh7\SRC680\src.m50\solenv -#outpath = wntmsci10 -#common_outdir = common -#solarresdir = j:\so-cwsserv04\gh7\SRC680\wntmsci10\res.m50 - - -$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(BIN))$/images_tt.zip .PHONY: - @echo ------------------------------ - @echo Making: $@ - $(COMMAND_ECHO)$(COPY) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(SOLARRESDIR))$/img$/stt*.ilst $(MISC) - $(COMMAND_ECHO)$(COPY) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(SOLARRESDIR))$/img$/svt*.ilst $(MISC) - $(COMMAND_ECHO)$(COPY) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(SOLARRESDIR))$/img$/fps*.ilst $(MISC) - $(COMMAND_ECHO)$(COPY) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(SOLARRESDIR))$/img$/vcl*.ilst $(MISC) - $(COMMAND_ECHO)$(COPY) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(SOLARRESDIR))$/img$/sb*.ilst $(MISC) - @-$(MKDIR) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(BIN)) >& $(NULLDEV) - $(COMMAND_ECHO)$(PERL) $(SOLARENV)$/bin$/packimages.pl -g $(SOLARSRC)$/$(RSCDEFIMG) -m $(SOLARSRC)$/$(RSCDEFIMG) -c $(RSCCUSTOMIMG) -l $(MISC) -o $@ diff --git a/automation/prj/build.lst b/automation/prj/build.lst index b019873f07d9..15e833088f06 100644 --- a/automation/prj/build.lst +++ b/automation/prj/build.lst @@ -1,11 +1,3 @@ au automation : basic fpicker NULL au automation usr1 - all au_mkout NULL -au automation\inc nmake - all au_inc NULL -au automation\source\simplecm nmake - all au_scom au_inc NULL -au automation\source\communi nmake - all au_comm au_inc NULL -au automation\source\app nmake - all au_app au_inc NULL -au automation\source\server nmake - all au_server au_inc NULL -au automation\source\testtool nmake - all au_tt au_inc NULL -au automation\source\miniapp nmake - all au_mini au_inc NULL -au automation\packimages nmake - all au_pack NULL -au automation\util nmake - all au_util au_scom au_comm au_app au_mini au_server au_tt NULL +au automation\prj nmake - all au_prj NULL diff --git a/automation/prj/d.lst b/automation/prj/d.lst index 69f82e4ad6ce..e69de29bb2d1 100644 --- a/automation/prj/d.lst +++ b/automation/prj/d.lst @@ -1,27 +0,0 @@ -mkdir: %COMMON_DEST%\bin\hid -mkdir: %_DEST%\inc\automation - -#..\%COMMON_OUTDIR%\misc\*.hid %COMMON_DEST%\bin\hid\*.hid -..\util\manually_added_ids.hid %COMMON_DEST%\bin\hid\manually_added_ids.hid -..\%__SRC%\bin\*.dll %_DEST%\bin\*.dll -..\%__SRC%\lib\lib* %_DEST%\lib\* -..\%__SRC%\lib\ists.lib %_DEST%\lib\ists.lib -..\%__SRC%\lib\isimplecm.lib %_DEST%\lib\isimplecm.lib -..\%__SRC%\lib\icommuni.lib %_DEST%\lib\icommuni.lib - -..\inc\automation\automation.hxx %_DEST%\inc\automation\automation.hxx -..\inc\automation\commdefines.hxx %_DEST%\inc\automation\commdefines.hxx -..\inc\automation\commtypes.hxx %_DEST%\inc\automation\commtypes.hxx -..\inc\automation\communi.hxx %_DEST%\inc\automation\communi.hxx -..\inc\automation\simplecm.hxx %_DEST%\inc\automation\simplecm.hxx - -..\%__SRC%\bin\testtool.exe %_DEST%\bin\testtool.bin -..\%__SRC%\bin\testtool %_DEST%\bin\testtool.bin -..\%__SRC%\inc\classes %_DEST%\bin\classes -..\%__SRC%\inc\keycodes %_DEST%\bin\keycodes -..\%__SRC%\inc\res_type %_DEST%\bin\res_type - -..\%COMMON_OUTDIR%\bin\images_tt.zip %COMMON_DEST%\bin\images_tt.zip - -..\%__SRC%\bin\testtoolrc %_DEST%\lib\testtoolrc -..\%__SRC%\bin\testtool.ini %_DEST%\bin\testtool.ini diff --git a/automation/inc/makefile.mk b/automation/prj/makefile.mk index 782b6a805b9b..ffd9fb276d8a 100644..100755 --- a/automation/inc/makefile.mk +++ b/automation/prj/makefile.mk @@ -24,24 +24,17 @@ # for a copy of the LGPLv3 License. # #************************************************************************* -PRJ=.. - -PRJNAME=automation -TARGET=inc - -# --- Settings ----------------------------------------------------- -.INCLUDE : settings.mk - -# --- Files -------------------------------------------------------- -# --- Targets ------------------------------------------------------- +PRJ=.. +TARGET=prj -.INCLUDE : target.mk +.INCLUDE : settings.mk -.IF "$(ENABLE_PCH)"!="" -ALLTAR : \ - $(SLO)$/precompiled.pch \ - $(SLO)$/precompiled_ex.pch - -.ENDIF # "$(ENABLE_PCH)"!="" +.IF "$(VERBOSE)"!="" +VERBOSEFLAG := +.ELSE +VERBOSEFLAG := -s +.ENDIF +all: + cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(GMAKE_MODULE_PARALLELISM) $(gb_MAKETARGET) && $(GNUMAKE) $(VERBOSEFLAG) -r deliverlog diff --git a/automation/source/communi/makefile.mk b/automation/source/communi/makefile.mk deleted file mode 100644 index b4ca9c67e508..000000000000 --- a/automation/source/communi/makefile.mk +++ /dev/null @@ -1,46 +0,0 @@ -#************************************************************************* -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# Copyright 2000, 2010 Oracle and/or its affiliates. -# -# OpenOffice.org - a multi-platform office productivity suite -# -# This file is part of OpenOffice.org. -# -# OpenOffice.org is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License version 3 -# only, as published by the Free Software Foundation. -# -# OpenOffice.org is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License version 3 for more details -# (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 -# version 3 along with OpenOffice.org. If not, see -# <http://www.openoffice.org/license.html> -# for a copy of the LGPLv3 License. -# -#************************************************************************* - -PRJ=..$/.. - -PRJNAME=automation -TARGET=communi - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Files -------------------------------------------------------- - -SLOFILES= $(EXCEPTIONSFILES) - -EXCEPTIONSFILES= \ - $(SLO)$/communi.obj - -# --- Targets ------------------------------------------------------ - -.INCLUDE : target.mk diff --git a/automation/source/inc/cmdbasestream.hxx b/automation/source/inc/cmdbasestream.hxx index 7011299408ad..296be50fbb21 100644 --- a/automation/source/inc/cmdbasestream.hxx +++ b/automation/source/inc/cmdbasestream.hxx @@ -37,10 +37,12 @@ #ifndef _CMDBASESTREAM_HXX_ #define _CMDBASESTREAM_HXX_ +#include "automation/stsdllapi.h" + #include <automation/commtypes.hxx> #include "icommstream.hxx" -class CmdBaseStream +class STS_DLLPUBLIC CmdBaseStream { protected: ICommStream* pCommStream; diff --git a/automation/source/inc/svcommstream.hxx b/automation/source/inc/svcommstream.hxx index 7a122ba4cef2..0245fb98f6b7 100644 --- a/automation/source/inc/svcommstream.hxx +++ b/automation/source/inc/svcommstream.hxx @@ -26,13 +26,15 @@ * ************************************************************************/ +#include "automation/stsdllapi.h" + #include <tools/stream.hxx> #include <automation/commtypes.hxx> #include "icommstream.hxx" -class SvCommStream : public ICommStream +class STS_DLLPUBLIC SvCommStream : public ICommStream { protected: SvStream* pStream; diff --git a/automation/source/miniapp/makefile.mk b/automation/source/miniapp/makefile.mk deleted file mode 100644 index 10c16d8ab7f6..000000000000 --- a/automation/source/miniapp/makefile.mk +++ /dev/null @@ -1,54 +0,0 @@ -#************************************************************************* -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# Copyright 2000, 2010 Oracle and/or its affiliates. -# -# OpenOffice.org - a multi-platform office productivity suite -# -# This file is part of OpenOffice.org. -# -# OpenOffice.org is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License version 3 -# only, as published by the Free Software Foundation. -# -# OpenOffice.org is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License version 3 for more details -# (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 -# version 3 along with OpenOffice.org. If not, see -# <http://www.openoffice.org/license.html> -# for a copy of the LGPLv3 License. -# -#************************************************************************* - -PRJ=..$/.. - -PRJNAME=automation -TARGET=miniapp - -# --- Settings ------------------------------------------------------------ - -.INCLUDE : settings.mk - -# --- Allgemein ------------------------------------------------------------ - -OBJFILES = \ - $(EXCEPTIONSFILES) - - -EXCEPTIONSFILES= \ - $(OBJ)$/editwin.obj \ - $(OBJ)$/servres.obj \ - $(OBJ)$/testapp.obj - -SRS1NAME=$(TARGET) -SRC1FILES = \ - servres.src - -# --- Targets ------------------------------------------------------------ - -.INCLUDE : target.mk diff --git a/automation/source/server/makefile.mk b/automation/source/server/makefile.mk deleted file mode 100644 index a6e1ec711b4c..000000000000 --- a/automation/source/server/makefile.mk +++ /dev/null @@ -1,69 +0,0 @@ -#************************************************************************* -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# Copyright 2000, 2010 Oracle and/or its affiliates. -# -# OpenOffice.org - a multi-platform office productivity suite -# -# This file is part of OpenOffice.org. -# -# OpenOffice.org is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License version 3 -# only, as published by the Free Software Foundation. -# -# OpenOffice.org is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License version 3 for more details -# (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 -# version 3 along with OpenOffice.org. If not, see -# <http://www.openoffice.org/license.html> -# for a copy of the LGPLv3 License. -# -#************************************************************************* -PRJ=..$/.. - -PRJNAME=automation -TARGET=server - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Files -------------------------------------------------------- - -SLOFILES = \ - $(EXCEPTIONSFILES) \ - $(SLO)$/cmdbasestream.obj \ - $(SLO)$/editwin.obj \ - $(SLO)$/retstrm.obj \ - $(SLO)$/scmdstrm.obj \ - $(SLO)$/svcommstream.obj - - -OBJFILES = \ - $(OBJ)$/cmdbasestream.obj \ - $(OBJ)$/svcommstream.obj - -EXCEPTIONSFILES = \ - $(SLO)$/XMLParser.obj \ - $(SLO)$/profiler.obj \ - $(SLO)$/recorder.obj \ - $(SLO)$/server.obj \ - $(SLO)$/sta_list.obj \ - $(SLO)$/statemnt.obj - -NOOPTFILES = $(SLO)$/statemnt.obj - -.IF "$(OS)"=="SOLARIS" -SLOFILES += $(SLO)$/prof_usl.obj -.ELSE -SLOFILES += $(SLO)$/prof_nul.obj -.ENDIF - -# --- Tagets ------------------------------------------------------- - -.INCLUDE : target.mk diff --git a/automation/source/simplecm/makefile.mk b/automation/source/simplecm/makefile.mk deleted file mode 100644 index b6318ab4fd46..000000000000 --- a/automation/source/simplecm/makefile.mk +++ /dev/null @@ -1,46 +0,0 @@ -#************************************************************************* -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# Copyright 2000, 2010 Oracle and/or its affiliates. -# -# OpenOffice.org - a multi-platform office productivity suite -# -# This file is part of OpenOffice.org. -# -# OpenOffice.org is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License version 3 -# only, as published by the Free Software Foundation. -# -# OpenOffice.org is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License version 3 for more details -# (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 -# version 3 along with OpenOffice.org. If not, see -# <http://www.openoffice.org/license.html> -# for a copy of the LGPLv3 License. -# -#************************************************************************* - -PRJ=..$/.. - -PRJNAME=automation -TARGET=simplecm - -# --- Settings ----------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Files -------------------------------------------------------- - -SLOFILES= \ - $(SLO)$/tcpio.obj \ - $(SLO)$/packethandler.obj \ - $(SLO)$/simplecm.obj \ - -# --- Targets ------------------------------------------------------ - -.INCLUDE : target.mk diff --git a/automation/source/testtool/Makefile b/automation/source/testtool/Makefile new file mode 100644 index 000000000000..f0d1d13de009 --- /dev/null +++ b/automation/source/testtool/Makefile @@ -0,0 +1,57 @@ +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# Major Contributor(s): +# Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +include $(GBUILDDIR)/gbuild_simple.mk + +BASEDIR := $(dir $(firstword $(MAKEFILE_LIST))) + +define filter_header +$(1).hxx : $(3)/$(2) + $(PERL) $(BASEDIR)/filter.pl $(3) $(2) $(1) $(4) + +endef + +$(eval $(call filter_header,classes,rcontrol.hxx,$(realpath $(BASEDIR)/../inc),M_)) +$(eval $(call filter_header,keycodes,vcl/keycodes.hxx,$(OUTDIR)/inc,KEY_)) +$(eval $(call filter_header,r_cmds,rcontrol.hxx,$(realpath $(BASEDIR)/../inc),RC_)) +$(eval $(call filter_header,res_type,tools/wintypes.hxx,$(OUTDIR)/inc,WINDOW_)) + +$(CURDIR)/testtool.ini : $(BASEDIR)/testtool.ini +ifeq ($(GUI),UNX) + sed -e s/!INIFILESUFFIX!/rc/ -e s/!BRANDPATH!// $< > $@ +else ifeq ($(GUI),WNT) + sed -e s/!INIFILESUFFIX!/.ini/ -e s/!BRANDPATH!/../ $< > $@ +endif + +.DEFAULT_GOAL := all +.PHONY : all +all : \ + classes.hxx \ + keycodes.hxx \ + r_cmds.hxx \ + res_type.hxx \ + $(CURDIR)/testtool.ini + +# vim: set ts=4 sw=4 noet: diff --git a/automation/source/testtool/makefile.mk b/automation/source/testtool/makefile.mk deleted file mode 100644 index d23069e7821d..000000000000 --- a/automation/source/testtool/makefile.mk +++ /dev/null @@ -1,107 +0,0 @@ -#************************************************************************* -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# Copyright 2000, 2010 Oracle and/or its affiliates. -# -# OpenOffice.org - a multi-platform office productivity suite -# -# This file is part of OpenOffice.org. -# -# OpenOffice.org is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License version 3 -# only, as published by the Free Software Foundation. -# -# OpenOffice.org is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License version 3 for more details -# (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 -# version 3 along with OpenOffice.org. If not, see -# <http://www.openoffice.org/license.html> -# for a copy of the LGPLv3 License. -# -#************************************************************************* - -PRJ=..$/.. - -PRJNAME=automation -TARGET=testtool - -# --- Settings ------------------------------------------------------------ - -.INCLUDE : settings.mk - -# --- Allgemein ------------------------------------------------------------ - -OBJFILES = \ - $(EXCEPTIONSFILES) \ - $(OBJ)$/cretstrm.obj \ - $(OBJ)$/httprequest.obj \ - - -EXCEPTIONSFILES= \ - $(OBJ)$/cmdstrm.obj \ - $(OBJ)$/comm_bas.obj \ - $(OBJ)$/objtest.obj \ - $(OBJ)$/tcommuni.obj - -HXXFILES = $(INCCOM)$/keycodes.hxx \ - $(INCCOM)$/classes.hxx \ - $(INCCOM)$/r_cmds.hxx \ - $(INCCOM)$/res_type.hxx - -.IF "$(GUI)" == "WNT" -OBJFILES += $(OBJ)$/sysdir_win.obj -OBJFILES += $(OBJ)$/registry_win.obj -.ENDIF -# --- Targets ------------------------------------------------------------ - -.INCLUDE : target.mk - - -$(OBJFILES) : $(HXXFILES) -$(HXXFILES) : $(MISC)$/xfilter.pl - - -$(INCCOM)$/keycodes.hxx : $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT)$/vcl$/keycodes.hxx \ - $(MISC)$/xfilter.pl - $(PERL) $(MISC)$/xfilter.pl $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT) vcl$/keycodes.hxx $(INCCOM)$/keycodes KEY_ - -$(INCCOM)$/classes.hxx : ..$/inc$/rcontrol.hxx \ - $(MISC)$/xfilter.pl - $(PERL) $(MISC)$/xfilter.pl ..$/inc rcontrol.hxx $(INCCOM)$/classes M_ - -$(INCCOM)$/r_cmds.hxx : ..$/inc$/rcontrol.hxx \ - $(MISC)$/xfilter.pl - $(PERL) $(MISC)$/xfilter.pl ..$/inc rcontrol.hxx $(INCCOM)$/r_cmds RC_ - -$(INCCOM)$/res_type.hxx : $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT)$/tools$/wintypes.hxx \ - $(MISC)$/xfilter.pl - $(PERL) $(MISC)$/xfilter.pl $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT) tools$/wintypes.hxx $(INCCOM)$/res_type WINDOW_ - - - -$(MISC)$/xfilter.pl : filter.pl - tr -d "\015" < filter.pl > $(MISC)$/xfilter.pl - chmod 664 $(MISC)$/xfilter.pl - - - -.IF "$(GUI)"=="UNX" -INIFILESUFFIX=rc -BRANDPATH=none -.ELIF "$(GUI)"=="WNT" -INIFILESUFFIX=.ini -BRANDPATH=.. -.END - -$(BIN)$/testtool$(INIFILESUFFIX): testtool.ini - $(SED) -e s/$(EMQ)!INIFILESUFFIX$(EMQ)!/$(INIFILESUFFIX)/ \ - -e s/$(EMQ)!BRANDPATH$(EMQ)!/$(BRANDPATH)/ < $< > $@ - -ALLTAR: \ - $(BIN)$/testtool$(INIFILESUFFIX) - diff --git a/automation/util/makefile.mk b/automation/util/makefile.mk deleted file mode 100644 index fbbe47454717..000000000000 --- a/automation/util/makefile.mk +++ /dev/null @@ -1,278 +0,0 @@ -#************************************************************************* -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# Copyright 2000, 2010 Oracle and/or its affiliates. -# -# OpenOffice.org - a multi-platform office productivity suite -# -# This file is part of OpenOffice.org. -# -# OpenOffice.org is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License version 3 -# only, as published by the Free Software Foundation. -# -# OpenOffice.org is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License version 3 for more details -# (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 -# version 3 along with OpenOffice.org. If not, see -# <http://www.openoffice.org/license.html> -# for a copy of the LGPLv3 License. -# -#************************************************************************* - -PRJ=.. - -PRJNAME=automation -TARGET=automation -TARGETTYPE=GUI - -# --- Settings --------------------------------------------------- - -.INCLUDE : settings.mk - -# --- Allgemein --------------------------------------------------- - -LIB1TARGET=$(SLB)$/$(TARGET).lib -LIB1FILES= \ - $(SLB)$/server.lib \ - $(SLB)$/simplecm.lib \ - $(SLB)$/communi.lib - -# --- sts library --------------------------------------------------- - -SHL1TARGET= sts$(DLLPOSTFIX) -SHL1IMPLIB= ists - -SHL1STDLIBS= \ - $(BASICLIB) \ - $(COMPHELPERLIB) \ - $(CPPUHELPERLIB) \ - $(CPPULIB) \ - $(SALLIB) \ - $(SOTLIB) \ - $(SVLLIB) \ - $(SVTLIB) \ - $(SVTOOLLIB) \ - $(TOOLSLIB) \ - $(UNOTOOLSLIB) \ - $(VCLLIB) \ - -.IF "$(GUI)"=="WNT" -SHL1STDLIBS+= \ - $(ADVAPI32LIB) \ - $(GDI32LIB) -.ENDIF - -SHL1DEF= $(MISC)$/$(SHL1TARGET).def -SHL1LIBS= $(SLB)$/$(TARGET).lib - -DEF1NAME =$(SHL1TARGET) -DEF1DEPN = \ - $(MISC)$/$(SHL1TARGET).flt - -DEFLIB1NAME =$(TARGET) -DEF1DES =TestToolServer - -# --- simple communication library (no vcl) --------------------------------------------------- - -SHL2TARGET= simplecm$(DLLPOSTFIX) -SHL2IMPLIB= isimplecm - -SHL2STDLIBS= \ - $(TOOLSLIB) \ - $(SALLIB) - - -SHL2DEF= $(MISC)$/$(SHL2TARGET).def -SHL2LIBS= $(SLB)$/simplecm.lib - -DEF2NAME =$(SHL2TARGET) -DEF2DEPN = \ - $(MISC)$/$(SHL2TARGET).flt - -DEFLIB2NAME =simplecm -DEF2DES =SimpleCommunication - -# --- communication library --------------------------------------------------- - -SHL3TARGET= communi$(DLLPOSTFIX) -SHL3IMPLIB= icommuni - -SHL3STDLIBS= \ - $(TOOLSLIB) \ - $(SVLLIB) \ - $(VCLLIB) \ - $(SALLIB) \ - $(SIMPLECMLIB) - - -.IF "$(GUI)"=="WNT" -SHL3STDLIBS+= \ - $(ADVAPI32LIB) \ - $(GDI32LIB) -.ENDIF - -SHL3DEF= $(MISC)$/$(SHL3TARGET).def -SHL3LIBS= $(SLB)$/communi.lib -SHL3DEPN=$(SHL2TARGETN) - -DEF3NAME =$(SHL3TARGET) -DEF3DEPN = \ - $(MISC)$/$(SHL3TARGET).flt - -DEFLIB3NAME =communi -DEF3DES =Communication - -# --- TESTTOOL IDE ------------------------------------------------------ - -APP1TARGET=testtool - -.IF "$(GUI)"=="UNX" || ("$(COM)"=="GCC" && "$(GUI)"=="WNT") -APP1DEPN+=$(SHL2TARGETN) $(SHL3TARGETN) -.ELSE -APP1DEPN+=$(SHL2IMPLIBN) $(SHL3IMPLIBN) -.ENDIF -APP1STDLIBS= \ - $(APP3RDLIB) \ - $(SAMPLE3RDLIB) - -APP1STDLIBS+= \ - $(CPPUHELPERLIB) \ - $(TOOLSLIB) \ - $(UNOTOOLSLIB) \ - $(SVTOOLLIB) \ - $(SVLLIB) \ - $(VCLLIB) \ - $(SALLIB) \ - $(UCBHELPERLIB) \ - $(COMPHELPERLIB) \ - $(BASICLIB) \ - $(SIMPLECMLIB) \ - $(COMMUNILIB) - -.IF "$(GUI)"=="UNX" -APP1STDLIBS+= \ - $(SALLIB) $(BASICLIB) -APP1STDLIBS+=$(CPPULIB) -.ENDIF -.IF "$(GUI)"=="WNT" || "$(COM)"=="GCC" -APP1STDLIBS+=$(CPPULIB) -.ENDIF - -.IF "$(GUI)"=="WNT" -APP1STDLIBS += \ - $(SHELL32LIB) \ - $(ADVAPI32LIB) -.ENDIF # "$(GUI)"=="WNT" - - - -.IF "$(OS)" == "SOLARIS" -APP1STDLIBS+= -lXm -.ENDIF - -.IF "$(GUI)" == "UNX" -.IF "$(OS)" == "LINUX" -APP1STDLIBS+= -lXext -lX11 -lSM -lICE -.ENDIF -.IF "$(OS)"=="MACOSX" -APP1STDLIBS+= -lapp -lsample -.ENDIF -.ENDIF - - - -APP1LIBS=\ - $(LB)$/testtool.lib - -APP1OBJS= $(OBJ)$/testbasi.obj \ - $(OBJ)$/cmdbasestream.obj \ - $(OBJ)$/svcommstream.obj - -# --- TESTTOOL MINIAPP ------------------------------------------------------ -# ressources are linked here - -RESLIB1NAME=tma -RESLIB1SRSFILES= \ - $(SRS)$/miniapp.srs - -APP3TARGET=miniapp -APP3STDLIBS= \ - $(CPPULIB) \ - $(CPPUHELPERLIB) \ - $(UCBHELPERLIB) \ - $(COMPHELPERLIB) \ - $(AUTOMATIONLIB) \ - $(SALLIB) \ - $(TOOLSLIB) \ - $(SVTOOLLIB) \ - $(VCLLIB) - -.IF "$(GUI)"=="UNX" -APP3STDLIBS+= \ - $(SALLIB) -.ENDIF -# $(AUTOMATIONLIB) is build in SHL1TARGET -.IF "$(GUI)"=="UNX" || ("$(COM)"=="GCC" && "$(GUI)"=="WNT") -APP3DEPN=$(SHL1TARGETN) -.ELSE -APP3DEPN=$(SHL1IMPLIBN) -.ENDIF - -APP3LIBS= \ - $(LB)$/miniapp.lib - -.IF "$(GUI)" != "UNX" -.IF "$(COM)" != "GCC" -# win16 braucht ein appobj -APP3OBJS= $(OBJ)$/testapp.obj -.ENDIF -.ENDIF - -# --- Targets ----------------------------------------------------------- - -.INCLUDE : target.mk - -# --- Basic-Filter-Datei --- - -$(MISC)$/$(SHL1TARGET).flt: makefile.mk - @echo ------------------------------ - @echo Making: $@ - @echo WEP > $@ - @echo LIBMAIN >> $@ - @echo LibMain >> $@ - @echo Sbi >> $@ - @echo exception >> $@ - @echo bad_alloc >> $@ - @echo __CT >> $@ - -$(MISC)$/$(SHL2TARGET).flt: makefile.mk - @echo ------------------------------ - @echo Making: $@ - @echo WEP > $@ - @echo LIBMAIN >> $@ - @echo LibMain >> $@ - @echo Sbi >> $@ - @echo exception >> $@ - @echo bad_alloc >> $@ - @echo __CT >> $@ - -$(MISC)$/$(SHL3TARGET).flt: makefile.mk - @echo ------------------------------ - @echo Making: $@ - @echo WEP > $@ - @echo LIBMAIN >> $@ - @echo LibMain >> $@ - @echo Sbi >> $@ - @echo exception >> $@ - @echo bad_alloc >> $@ - @echo __CT >> $@ - - -# ------------------------------------------------------------------------ - diff --git a/scp2/source/testtool/file_testtool.scp b/scp2/source/testtool/file_testtool.scp index 3b30c157fa36..4592f1dd05e1 100644 --- a/scp2/source/testtool/file_testtool.scp +++ b/scp2/source/testtool/file_testtool.scp @@ -30,20 +30,15 @@ STD_LIB_FILE( gid_File_Lib_Communi, communi ) STD_LIB_FILE( gid_File_Lib_Simplecm, simplecm ) -#if defined WNT -File gid_File_Exe_Testtool +File gid_File_Bin_Testtool BIN_FILE_BODY; Dir = gid_Dir_Program; Styles = (PACKED); +#if defined WNT Name = "testtool.exe"; -End +#else + Name = "testtool"; #endif - -File gid_File_Bin_Testtool - BIN_FILE_BODY; - Dir = gid_Dir_Program; - Styles = (PACKED); - Name = "testtool.bin"; End File gid_File_Config_Testtool @@ -66,6 +61,6 @@ Unixlink gid_Unixlink_Testtool Styles = (); Name = "testtool"; Dir = gid_Brand_Dir_Program; - Target = "../basis-link/program/testtool.bin"; + Target = "../basis-link/program/testtool"; End #endif diff --git a/scp2/source/testtool/module_testtool.scp b/scp2/source/testtool/module_testtool.scp index 1a6bc0d01484..a608d9140f2b 100644 --- a/scp2/source/testtool/module_testtool.scp +++ b/scp2/source/testtool/module_testtool.scp @@ -33,6 +33,6 @@ Module gid_Module_Optional_Testtool Sortkey = "650"; ParentID = gid_Module_Optional; Default = NO; - Files = (gid_File_Exe_Testtool, gid_File_Bin_Testtool, gid_File_Lib_Communi, gid_File_Lib_Simplecm, gid_File_Hid_Testtool, gid_File_Config_Testtool); + Files = (gid_File_Bin_Testtool, gid_File_Lib_Communi, gid_File_Lib_Simplecm, gid_File_Hid_Testtool, gid_File_Config_Testtool); Unixlinks = (gid_Unixlink_Testtool); End |