xref: /aoo42x/main/pyuno/Package_python_bin.mk (revision 58c70741)
1*58c70741SJim Jagielski#**************************************************************
2*58c70741SJim Jagielski#
3*58c70741SJim Jagielski#  Licensed to the Apache Software Foundation (ASF) under one
4*58c70741SJim Jagielski#  or more contributor license agreements.  See the NOTICE file
5*58c70741SJim Jagielski#  distributed with this work for additional information
6*58c70741SJim Jagielski#  regarding copyright ownership.  The ASF licenses this file
7*58c70741SJim Jagielski#  to you under the Apache License, Version 2.0 (the
8*58c70741SJim Jagielski#  "License"); you may not use this file except in compliance
9*58c70741SJim Jagielski#  with the License.  You may obtain a copy of the License at
10*58c70741SJim Jagielski#
11*58c70741SJim Jagielski#    http://www.apache.org/licenses/LICENSE-2.0
12*58c70741SJim Jagielski#
13*58c70741SJim Jagielski#  Unless required by applicable law or agreed to in writing,
14*58c70741SJim Jagielski#  software distributed under the License is distributed on an
15*58c70741SJim Jagielski#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*58c70741SJim Jagielski#  KIND, either express or implied.  See the License for the
17*58c70741SJim Jagielski#  specific language governing permissions and limitations
18*58c70741SJim Jagielski#  under the License.
19*58c70741SJim Jagielski#
20*58c70741SJim Jagielski#**************************************************************
21*58c70741SJim Jagielski
22*58c70741SJim Jagielski$(eval $(call gb_Package_Package,pyuno_python_bin,$(WORKDIR)/CustomTarget/pyuno/zipcore))
23*58c70741SJim Jagielski
24*58c70741SJim Jagielski$(eval $(call gb_Package_add_file,pyuno_python_bin,bin/python.bin,python.bin))
25*58c70741SJim Jagielski
26*58c70741SJim Jagielski$(WORKDIR)/CustomTarget/pyuno/zipcore/python.bin : $(OUTDIR)/bin/python
27*58c70741SJim Jagielski	mkdir -p $(dir $@) && \
28*58c70741SJim Jagielski	cp $^ $@ && \
29*58c70741SJim Jagielski	$(if $(filter-out MACOSX,$(OS)),strip $@ &&) \
30*58c70741SJim Jagielski	chmod +x $@
31*58c70741SJim Jagielski
32