Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / smoketest / Executable_libtest.mk
blob4ba29eef20dae1c59165b81eff9b31e352a63449
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 $(eval $(call gb_Executable_use_libraries,libtest,\
17 $(gb_UWINAPI) \
20 ifeq ($(OS),LINUX)
21 $(eval $(call gb_Executable_add_libs,libtest,\
22 -ldl \
23 -pthread \
25 endif
27 $(eval $(call gb_Executable_add_exception_objects,libtest,\
28 smoketest/libtest \
31 liblibreoffice_OWN_LD_PATH_DIR := $(INSTROOT)/program/libolib
32 liblibreoffice_OWN_LD_SO := $(liblibreoffice_OWN_LD_PATH_DIR)/$(call gb_Library__get_workdir_linktargetname,libreoffice)
34 $(liblibreoffice_OWN_LD_SO) : $(call gb_Library_get_target,libreoffice)
35 mkdir -p $(liblibreoffice_OWN_LD_PATH_DIR)/Library
36 cp -a $(call gb_Library_get_target,libreoffice) $(liblibreoffice_OWN_LD_SO)
38 run_libtest: $(liblibreoffice_OWN_LD_SO)
39 $(gb_Helper_LIBRARY_PATH_VAR)=$${$(gb_Helper_LIBRARY_PATH_VAR):+$$$(gb_Helper_LIBRARY_PATH_VAR):}":$(liblibreoffice_OWN_LD_PATH_DIR)/Library" \
40 $(WORKDIR)/LinkTarget/Executable/libtest \
41 $(INSTROOT)/program $(WORKDIR)/Zip/smoketestdoc.sxw \
43 # vim: set noet sw=4 ts=4: