bump product version to 4.2.0.1
[LibreOffice.git] / smoketest / Executable_libtest.mk
blob9f965b6c0f3d3a55deb603fc82d100a175961590
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) \
14 -I$(SRCDIR)/desktop/inc \
17 $(eval $(call gb_Executable_use_libraries,libtest,\
18 $(gb_UWINAPI) \
21 $(eval $(call gb_Executable_use_static_libraries,libtest,\
22 libreoffice \
25 $(eval $(call gb_Executable_add_libs,libtest,\
26 -ldl \
27 -pthread \
30 $(eval $(call gb_Executable_add_exception_objects,libtest,\
31 smoketest/libtest \
34 liblibreoffice_OWN_LD_PATH_DIR := $(INSTROOT)/program/libolib
35 liblibreoffice_OWN_LD_SO := $(liblibreoffice_OWN_LD_PATH_DIR)/$(call gb_Library__get_workdir_linktargetname,libreoffice)
37 $(liblibreoffice_OWN_LD_SO) : $(call gb_Library_get_target,libreoffice)
38 mkdir -p $(liblibreoffice_OWN_LD_PATH_DIR)/Library
39 cp -a $(call gb_Library_get_target,libreoffice) $(liblibreoffice_OWN_LD_SO)
41 run_libtest: $(liblibreoffice_OWN_LD_SO)
42 $(gb_Helper_LIBRARY_PATH_VAR)=$${$(gb_Helper_LIBRARY_PATH_VAR):+$$$(gb_Helper_LIBRARY_PATH_VAR):}":$(liblibreoffice_OWN_LD_PATH_DIR)/Library" \
43 $(WORKDIR)/LinkTarget/Executable/libtest \
44 $(INSTROOT)/program $(WORKDIR)/Zip/smoketestdoc.sxw \
46 # vim: set noet sw=4 ts=4: