xref: /aoo41x/main/avmedia/source/macavf/makefile.mk (revision 4ba16609)
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
22PRJ=..$/..
23PRJNAME=avmedia
24TARGET=avmediaMacAVF
25
26.IF "$(GUIBASE)" != "aqua"
27dummy:
28	@echo " Nothing to build for GUIBASE=$(GUIBASE)"
29.ELSE
30
31# --- Settings ----------------------------------
32
33.INCLUDE :  	settings.mk
34
35.IF "$(verbose)"!="" || "$(VERBOSE)"!=""
36CDEFS+= -DVERBOSE
37.ENDIF
38
39# --- Files ----------------------------------
40
41CFLAGSCXX+=$(OBJCXXFLAGS)
42
43SLOFILES= \
44		$(SLO)$/macavf_uno.obj           \
45		$(SLO)$/macavf_framegrabber.obj  \
46		$(SLO)$/macavf_manager.obj       \
47		$(SLO)$/macavf_window.obj        \
48		$(SLO)$/macavf_player.obj
49
50EXCEPTIONSFILES= \
51		$(SLO)$/macavf_framegrabber.obj \
52		$(SLO)$/macavf_uno.obj
53
54SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
55
56SHL1STDLIBS= \
57             $(CPPULIB) \
58             $(SALLIB)  \
59             $(COMPHELPERLIB) \
60             $(CPPUHELPERLIB) \
61             $(TOOLSLIB) \
62             $(VCLLIB)
63
64SHL1STDLIBS+= \
65             -framework Cocoa \
66             -framework AVFoundation \
67             -framework CoreMedia
68
69# build DLL
70SHL1LIBS=$(SLB)$/$(TARGET).lib
71SHL1IMPLIB=i$(TARGET)
72SHL1DEF=$(MISC)$/$(SHL1TARGET).def
73
74SHL1VERSIONMAP=$(SOLARENV)/src/component.map
75
76# --- Targets ------------------------------------------------------
77
78.INCLUDE : target.mk
79
80.ENDIF
81
82ALLTAR : $(MISC)/avmediaMacAVF.component
83
84$(MISC)/avmediaMacAVF.component .ERRREMOVE : \
85        $(SOLARENV)/bin/createcomponent.xslt avmediaMacAVF.component
86    $(XSLTPROC) --nonet --stringparam uri \
87        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
88        $(SOLARENV)/bin/createcomponent.xslt avmediaMacAVF.component
89
90