mirror of
https://github.com/LibreOffice/core.git
synced 2026-01-20 08:28:21 +00:00
After commit 295c988cad
(Rust Bindings: Improve library linking for rust_uno-example, 2025-11-25).
Change-Id: I2d79ebfbb47bbbf2fc4e7d1a3cca710b1d9eabda
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194545
Code-Style: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
50 lines
1.5 KiB
Makefile
50 lines
1.5 KiB
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t; fill-column: 100 -*-
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
|
|
$(eval $(call gb_Library_Library,rust_uno-example))
|
|
|
|
$(eval $(call gb_Library_add_exception_objects,rust_uno-example, \
|
|
rust_uno/example/example \
|
|
))
|
|
|
|
$(eval $(call gb_Library_set_componentfile,rust_uno-example,rust_uno/example/example,rust_uno-example))
|
|
|
|
$(eval $(call gb_Library_set_external_code,rust_uno-example))
|
|
|
|
$(eval $(call gb_Library_use_externals,rust_uno-example, \
|
|
boost_headers \
|
|
))
|
|
|
|
$(eval $(call gb_Library_use_libraries,rust_uno-example, \
|
|
cppu \
|
|
cppuhelper \
|
|
sal \
|
|
))
|
|
|
|
$(eval $(call gb_Library_use_sdk_api,rust_uno-example))
|
|
|
|
$(call gb_Library_get_target,rust_uno-example): $(call gb_CustomTarget_get_target,rust_uno/cargo)
|
|
|
|
ifneq ($(filter WNT,$(OS_FOR_BUILD)),)
|
|
# Windows-specific flags
|
|
$(eval $(call gb_Library_add_libs,rust_uno-example,\
|
|
$(SRCDIR)/rust_uno/target/release/rust_uno.dll.lib \
|
|
))
|
|
else
|
|
# Unix/Linux with RPATH
|
|
$(eval $(call gb_Library_add_ldflags,rust_uno-example,\
|
|
-Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN \
|
|
))
|
|
$(eval $(call gb_Library_add_libs,rust_uno-example,\
|
|
-L$(SRCDIR)/rust_uno/target/release -lrust_uno \
|
|
))
|
|
endif
|
|
|
|
# vim: set noet sw=4 ts=4:
|