tdf#111306: Hide background widget in sidebar in master and notes view
[LibreOffice.git] / testtools / CustomTarget_bridgetest.mk
blobd090146ec411a1b530d3baf1f59606ed905d8951
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval $(call gb_CustomTarget_CustomTarget,testtools/bridgetest))
12 testtools_BRIDGEDIR := $(call gb_CustomTarget_get_workdir,testtools/bridgetest)
14 ifeq ($(OS),WNT)
15 testtools_BATCHSUFFIX := .bat
16 else
17 testtools_BATCHSUFFIX :=
18 endif
20 $(call gb_CustomTarget_get_target,testtools/bridgetest) : \
21 $(testtools_BRIDGEDIR)/bridgetest_server$(testtools_BATCHSUFFIX) \
22 $(testtools_BRIDGEDIR)/bridgetest_client$(testtools_BATCHSUFFIX) \
23 $(if $(ENABLE_JAVA),\
24 $(testtools_BRIDGEDIR)/bridgetest_javaserver$(testtools_BATCHSUFFIX) \
25 $(testtools_BRIDGEDIR)/bridgetest_inprocess_java$(testtools_BATCHSUFFIX))
27 $(testtools_BRIDGEDIR)/bridgetest_server$(testtools_BATCHSUFFIX) :| $(testtools_BRIDGEDIR)/.dir
28 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
29 $(call gb_Helper_abbreviate_dirs,\
30 echo \
31 "$(call gb_Executable_get_target_for_build,uno)" \
32 "-s com.sun.star.test.bridge.CppTestObject" \
33 "-u 'uno:socket$(COMMA)host=127.0.0.1$(COMMA)port=2002;urp;test'" \
34 "--singleaccept" \
35 "-env:LO_BUILD_LIB_DIR=$(call gb_Helper_make_url,$(gb_Library_WORKDIR_FOR_BUILD))" \
36 "-env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_target,uno_services))" \
37 "-env:URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb)" \
38 > $@)
39 $(if $(filter-out WNT,$(OS)),chmod +x $@)
42 testtools_MY_CLASSPATH := $(call gb_Jar_get_target,ridl)$(gb_CLASSPATHSEP)$(call gb_Jar_get_target,java_uno)$(gb_CLASSPATHSEP)$(call gb_Jar_get_target,jurt)$(gb_CLASSPATHSEP)$(call gb_Jar_get_target,juh)
44 $(testtools_BRIDGEDIR)/bridgetest_javaserver$(testtools_BATCHSUFFIX) :| $(testtools_BRIDGEDIR)/.dir
45 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
46 $(call gb_Helper_abbreviate_dirs,\
47 echo \
48 "URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_target,uno_services))" \
49 "URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb)" \
50 "java" \
51 "-classpath $(testtools_MY_CLASSPATH)$(gb_CLASSPATHSEP)$(call gb_Jar_get_target,testComponent)" \
52 "com.sun.star.comp.bridge.TestComponentMain" \
53 \""uno:socket$(COMMA)host=127.0.0.1$(COMMA)port=2002;urp;test"\" \
54 "singleaccept" \
55 > $@)
56 $(if $(filter-out WNT,$(OS)),chmod +x $@)
58 $(testtools_BRIDGEDIR)/bridgetest_inprocess_java$(testtools_BATCHSUFFIX) :| $(testtools_BRIDGEDIR)/.dir
59 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
60 $(call gb_Helper_abbreviate_dirs,\
61 echo "JAVA_HOME=$(JAVA_HOME)" \
62 "$(call gb_Executable_get_target_for_build,uno)" \
63 "-s com.sun.star.test.bridge.BridgeTest" \
64 "-env:LO_BUILD_LIB_DIR=$(call gb_Helper_make_url,$(gb_Library_WORKDIR_FOR_BUILD))" \
65 "-env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_target,uno_services))" \
66 "-env:URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb)" \
67 "-- com.sun.star.test.bridge.JavaTestObject noCurrentContext" \
68 > $@)
69 $(if $(filter-out WNT,$(OS)),chmod +x $@)
71 $(testtools_BRIDGEDIR)/bridgetest_client$(testtools_BATCHSUFFIX) :| $(testtools_BRIDGEDIR)/.dir
72 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
73 $(call gb_Helper_abbreviate_dirs,\
74 echo \
75 "$(call gb_Executable_get_target_for_build,uno)" \
76 "-s com.sun.star.test.bridge.BridgeTest --" \
77 "-u 'uno:socket$(COMMA)host=127.0.0.1$(COMMA)port=2002;urp;test'" \
78 "-env:LO_BUILD_LIB_DIR=$(call gb_Helper_make_url,$(gb_Library_WORKDIR_FOR_BUILD))" \
79 "-env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_target,uno_services))" \
80 "-env:URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb)" \
81 > $@)
82 $(if $(filter-out WNT,$(OS)),chmod +x $@)
84 # vim: set noet sw=4 ts=4: