move workaround for old build system to other workarounds
[LibreOffice.git] / automation / Executable_testtool.mk
blob0d782c7fb949f793cbbcc9294c91ade5b79c8224
1 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
3 # The contents of this file are subject to the Mozilla Public License Version
4 # 1.1 (the "License"); you may not use this file except in compliance with
5 # the License or as specified alternatively below. You may obtain a copy of
6 # the License at http://www.mozilla.org/MPL/
8 # Software distributed under the License is distributed on an "AS IS" basis,
9 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
10 # for the specific language governing rights and limitations under the
11 # License.
13 # Major Contributor(s):
14 # Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer)
16 # All Rights Reserved.
18 # For minor contributions see the git repository.
20 # Alternatively, the contents of this file may be used under the terms of
21 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
22 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
23 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
24 # instead of those above.
26 $(eval $(call gb_Executable_Executable,testtool))
28 $(eval $(call gb_Executable_set_targettype_gui,testtool,YES))
30 $(eval $(call gb_Executable_add_package_headers,testtool,\
31 automation_testtool \
34 $(eval $(call gb_Executable_add_precompiled_header,testtool,automation/inc/pch/precompiled_automation.hxx))
36 $(eval $(call gb_Executable_set_include,testtool,\
37 $$(INCLUDE) \
38 -I$(call gb_CustomTarget_get_workdir,automation/source/testtool) \
39 -I$(SRCDIR)/automation/inc/pch \
40 -I$(SRCDIR)/automation/inc \
41 -I$(SRCDIR)/automation/source/inc \
44 $(eval $(call gb_Executable_add_api,testtool,\
45 offapi \
46 udkapi \
49 $(eval $(call gb_Executable_add_linked_libs,testtool,\
50 comphelper \
51 communi \
52 cppu \
53 cppuhelper \
54 sal \
55 sb \
56 simplecm \
57 sts \
58 svl \
59 svt \
60 tl \
61 ucbhelper \
62 utl \
63 vcl \
64 $(if $(findstring WNT,$(GUI)),\
65 advapi32 \
66 shell32 \
67 ) \
70 $(eval $(call gb_Executable_add_linked_static_libs,testtool,\
71 app \
72 vclmain \
73 sample \
76 ifeq ($(OS),SOLARIS)
78 $(eval $(call gb_Executable_add_libs,testtool,\
79 -lXm
82 endif
84 ifeq ($(GUI) $(OS),UNX LINUX)
86 $(eval $(call gb_Executable_add_libs,testtool,\
87 -lXext \
88 -lX11 \
89 -lSM \
90 -lICE \
93 endif
95 $(eval $(call gb_Executable_add_noexception_objects,testtool,\
96 automation/source/app/testbasi \
97 automation/source/testtool/cretstrm \
98 automation/source/testtool/httprequest \
101 $(eval $(call gb_Executable_add_exception_objects,testtool,\
102 automation/source/testtool/cmdstrm \
103 automation/source/testtool/comm_bas \
104 automation/source/testtool/objtest \
105 automation/source/testtool/tcommuni \
108 ifeq ($(GUI),WNT)
110 $(eval $(call gb_Executable_add_noexception_objects,testtool,\
111 automation/source/testtool/registry_win \
112 automation/source/testtool/sysdir_win \
115 endif
117 # vim: set ts=4 sw=4 et: