Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / smoketest / Executable_libtest.mk
blobc1e33d35e10e9e3d3acea0ac103602814cbe42a3
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_Executable_Executable,libtest))
12 $(eval $(call gb_Executable_set_include,libtest,\
13 $$(INCLUDE) \
16 ifeq ($(OS),LINUX)
17 $(eval $(call gb_Executable_add_libs,libtest,\
18 -ldl \
20 endif
22 $(eval $(call gb_Executable_add_exception_objects,libtest,\
23 smoketest/libtest \
26 liblibreoffice_OWN_LD_PATH_DIR := $(INSTROOT)/program/libolib
27 liblibreoffice_OWN_LD_SO := $(liblibreoffice_OWN_LD_PATH_DIR)/$(call gb_Library__get_workdir_linktargetname,libreoffice)
29 $(liblibreoffice_OWN_LD_SO) : $(call gb_Library_get_target,libreoffice)
30 mkdir -p $(liblibreoffice_OWN_LD_PATH_DIR)/Library
31 cp -a $(call gb_Library_get_target,libreoffice) $(liblibreoffice_OWN_LD_SO)
33 run_libtest: $(liblibreoffice_OWN_LD_SO)
34 $(gb_Helper_LIBRARY_PATH_VAR)=$${$(gb_Helper_LIBRARY_PATH_VAR):+$$$(gb_Helper_LIBRARY_PATH_VAR):}":$(liblibreoffice_OWN_LD_PATH_DIR)/Library" \
35 $(WORKDIR)/LinkTarget/Executable/libtest \
36 $(INSTROOT)/program $(WORKDIR)/Zip/smoketestdoc.sxw \
38 # vim: set noet sw=4 ts=4: