11c25f252Sdamjan#************************************************************** 21c25f252Sdamjan# 31c25f252Sdamjan# Licensed to the Apache Software Foundation (ASF) under one 41c25f252Sdamjan# or more contributor license agreements. See the NOTICE file 51c25f252Sdamjan# distributed with this work for additional information 61c25f252Sdamjan# regarding copyright ownership. The ASF licenses this file 71c25f252Sdamjan# to you under the Apache License, Version 2.0 (the 81c25f252Sdamjan# "License"); you may not use this file except in compliance 91c25f252Sdamjan# with the License. You may obtain a copy of the License at 101c25f252Sdamjan# 111c25f252Sdamjan# http://www.apache.org/licenses/LICENSE-2.0 121c25f252Sdamjan# 131c25f252Sdamjan# Unless required by applicable law or agreed to in writing, 141c25f252Sdamjan# software distributed under the License is distributed on an 151c25f252Sdamjan# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 161c25f252Sdamjan# KIND, either express or implied. See the License for the 171c25f252Sdamjan# specific language governing permissions and limitations 181c25f252Sdamjan# under the License. 191c25f252Sdamjan# 201c25f252Sdamjan#************************************************************** 211c25f252Sdamjan 221c25f252Sdamjan 231c25f252Sdamjan# Name is changd to pyuno.so on all *nix systems in main/RepositoryFixes.mk 241c25f252Sdamjan# python expects modules without the lib prefix 251c25f252Sdamjan 261c25f252Sdamjan$(eval $(call gb_Library_Library,pyuno_loader)) 271c25f252Sdamjan 281c25f252Sdamjan$(eval $(call gb_Library_set_include,pyuno_loader,\ 291c25f252Sdamjan $$(INCLUDE) \ 301c25f252Sdamjan -I$(SRCDIR)/pyuno/inc \ 311c25f252Sdamjan)) 321c25f252Sdamjan 33d2576f7dSdamjanifeq ($(OS),LINUX) 34d2576f7dSdamjan$(eval $(call gb_Library_add_libs,pyuno_loader,-ldl)) 35b4c4c8f1Sjimelse ifeq ($(OS),SOLARIS) 36d2576f7dSdamjan$(eval $(call gb_Library_add_libs,pyuno_loader,-ldl)) 37b4c4c8f1Sjimelse ifeq ($(OS),MACOSX) 38d2576f7dSdamjan$(eval $(call gb_Library_add_libs,pyuno_loader,-ldl)) 39d2576f7dSdamjanendif 40d2576f7dSdamjan 41*29716487SDamjan Jovanovic$(call gb_Library_use_external,pyuno_loader,python) 42*29716487SDamjan Jovanovic 431c25f252Sdamjan$(eval $(call gb_Library_add_cobjects,pyuno_loader,\ 441c25f252Sdamjan pyuno/source/module/pyuno_dlopenwrapper \ 451c25f252Sdamjan)) 461c25f252Sdamjan 471c25f252Sdamjan 481c25f252Sdamjan# vim: set noet sw=4 ts=4: 49