1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24$(eval $(call gb_Library_Library,avmediaMacAVF))
25
26$(eval $(call gb_Library_add_package_headers,avmediaMacAVF,avmedia_inc))
27
28$(eval $(call gb_Library_set_componentfile,avmediaMacAVF,avmedia/source/macavf/avmediaMacAVF))
29
30$(eval $(call gb_Library_set_include,avmediaMacAVF,\
31        $$(INCLUDE) \
32	-I$(SRCDIR)/avmedia/inc \
33	-I$(SRCDIR)/avmedia/source/inc \
34))
35
36ifeq ($(OS),MACOSX)
37$(eval $(call gb_Library_add_cxxflags,avmediaMacAVF,\
38    -x objective-c++ \
39))
40endif
41
42$(eval $(call gb_Library_add_api,avmediaMacAVF,\
43	offapi \
44	udkapi \
45))
46
47$(eval $(call gb_Library_add_linked_libs,avmediaMacAVF,\
48	comphelper \
49	cppuhelper \
50	cppu \
51	sal \
52	tl \
53	vcl \
54	$(gb_STDLIBS) \
55))
56
57$(eval $(call gb_Library_add_libs,avmediaMacAVF,\
58	-framework Cocoa \
59	-framework AVFoundation \
60	-framework CoreMedia \
61))
62
63$(eval $(call gb_Library_add_noexception_objects,avmediaMacAVF,\
64	avmedia/source/macavf/macavf_manager \
65	avmedia/source/macavf/macavf_player \
66	avmedia/source/macavf/macavf_window \
67))
68
69$(eval $(call gb_Library_add_exception_objects,avmediaMacAVF,\
70	avmedia/source/macavf/macavf_framegrabber \
71	avmedia/source/macavf/macavf_uno \
72))
73
74# vim: set noet sw=4 ts=4:
75