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
)
15 testtools_BATCHSUFFIX
:= .bat
17 testtools_BATCHSUFFIX
:=
20 $(call gb_CustomTarget_get_target
,testtools
/bridgetest
) : \
21 $(testtools_BRIDGEDIR
)/bridgetest_server
$(testtools_BATCHSUFFIX
) \
22 $(testtools_BRIDGEDIR
)/bridgetest_client
$(testtools_BATCHSUFFIX
) \
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
"$(call gb_Executable_get_target_for_build,uno)" \
31 "-s com.sun.star.test.bridge.CppTestObject" \
32 "-u 'uno:socket$(COMMA)host=127.0.0.1$(COMMA)port=2002;urp;test'" \
34 "-env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_outdir_target,uno_services))" \
35 "-env:URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb)" \
37 $(if
$(filter-out WNT
,$(OS
)),chmod
+x
$@
)
40 testtools_MY_CLASSPATH
:= $(OUTDIR
)/bin
/ridl.jar
$(gb_CLASSPATHSEP
)$(OUTDIR
)/bin
/java_uno.jar
$(gb_CLASSPATHSEP
)$(OUTDIR
)/bin
/jurt.jar
$(gb_CLASSPATHSEP
)$(OUTDIR
)/bin
/juh.jar
42 $(testtools_BRIDGEDIR
)/bridgetest_javaserver
$(testtools_BATCHSUFFIX
) :|
$(testtools_BRIDGEDIR
)/.
dir
43 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
44 $(call gb_Helper_abbreviate_dirs
,\
46 "URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_outdir_target,uno_services))" \
47 "URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb)" \
49 "-classpath $(testtools_MY_CLASSPATH)$(gb_CLASSPATHSEP)$(OUTDIR)/bin/testComponent.jar" \
50 "com.sun.star.comp.bridge.TestComponentMain" \
51 \""uno:socket$(COMMA)host=127.0.0.1$(COMMA)port=2002;urp;test"\" \
54 $(if
$(filter-out WNT
,$(OS
)),chmod
+x
$@
)
56 $(testtools_BRIDGEDIR
)/bridgetest_inprocess_java
$(testtools_BATCHSUFFIX
) :|
$(testtools_BRIDGEDIR
)/.
dir
57 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
58 $(call gb_Helper_abbreviate_dirs
,\
59 echo
"JAVA_HOME=$(JAVA_HOME)" \
60 "LD_LIBRARY_PATH=$(OUTDIR)/lib" \
61 "$(call gb_Executable_get_target_for_build,uno)" \
62 "-s com.sun.star.test.bridge.BridgeTest" \
63 "-env:URE_INTERNAL_JAVA_DIR=file://$(OUTDIR)/bin" \
64 "-env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_outdir_target,uno_services))" \
65 "-env:URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb)" \
66 "-- com.sun.star.test.bridge.JavaTestObject noCurrentContext" \
68 $(if
$(filter-out WNT
,$(OS
)),chmod
+x
$@
)
70 $(testtools_BRIDGEDIR
)/bridgetest_client
$(testtools_BATCHSUFFIX
) :|
$(testtools_BRIDGEDIR
)/.
dir
71 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
72 $(call gb_Helper_abbreviate_dirs
,\
73 echo
"$(call gb_Executable_get_target_for_build,uno)" \
74 "-s com.sun.star.test.bridge.BridgeTest --" \
75 "-u 'uno:socket$(COMMA)host=127.0.0.1$(COMMA)port=2002;urp;test'" \
76 "-env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_outdir_target,uno_services))" \
77 "-env:URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb)" \
79 $(if
$(filter-out WNT
,$(OS
)),chmod
+x
$@
)
81 # vim: set noet sw=4 ts=4: