xref: /aoo41x/main/avmedia/source/java/makefile.mk (revision 9e937a48)
12407af08SAndrew Rist#**************************************************************
2*9e937a48SAriel Constenla-Haile#
32407af08SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
42407af08SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
52407af08SAndrew Rist#  distributed with this work for additional information
62407af08SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
72407af08SAndrew Rist#  to you under the Apache License, Version 2.0 (the
82407af08SAndrew Rist#  "License"); you may not use this file except in compliance
92407af08SAndrew Rist#  with the License.  You may obtain a copy of the License at
10*9e937a48SAriel Constenla-Haile#
112407af08SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*9e937a48SAriel Constenla-Haile#
132407af08SAndrew Rist#  Unless required by applicable law or agreed to in writing,
142407af08SAndrew Rist#  software distributed under the License is distributed on an
152407af08SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
162407af08SAndrew Rist#  KIND, either express or implied.  See the License for the
172407af08SAndrew Rist#  specific language governing permissions and limitations
182407af08SAndrew Rist#  under the License.
19*9e937a48SAriel Constenla-Haile#
202407af08SAndrew Rist#**************************************************************
212407af08SAndrew Rist
22*9e937a48SAriel Constenla-Haile
23cdf0e10cSrcweir
24cdf0e10cSrcweir# Builds the Java Canvas implementation.
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME = avmedia
27cdf0e10cSrcweirPRJ     = ..$/..
28cdf0e10cSrcweirTARGET  = avmedia
29cdf0e10cSrcweirPACKAGE = avmedia
30cdf0e10cSrcweir
31cdf0e10cSrcweir# --- Settings -----------------------------------------------------
32cdf0e10cSrcweir
33cdf0e10cSrcweir.INCLUDE: settings.mk
34cdf0e10cSrcweir
35cdf0e10cSrcweir.IF "$(GUIBASE)"=="javamedia"
36cdf0e10cSrcweir
37cdf0e10cSrcweirJAVAFILES  = \
38cdf0e10cSrcweir    Manager.java            \
39cdf0e10cSrcweir    Player.java             \
40cdf0e10cSrcweir    PlayerWindow.java       \
41cdf0e10cSrcweir    WindowAdapter.java      \
42cdf0e10cSrcweir    MediaUno.java           \
43cdf0e10cSrcweir    FrameGrabber.java       \
44cdf0e10cSrcweir    x11$/SystemWindowAdapter.java
45cdf0e10cSrcweir
46cdf0e10cSrcweirJARFILES        = jurt.jar unoil.jar ridl.jar juh.jar java_uno.jar jmf.jar
47cdf0e10cSrcweirJAVACLASSFILES  = $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:s/.java//).class)
48cdf0e10cSrcweir
49cdf0e10cSrcweirJARTARGET               = $(TARGET).jar
50cdf0e10cSrcweirJARCOMPRESS             = TRUE
51cdf0e10cSrcweirCUSTOMMANIFESTFILE      = manifest
52cdf0e10cSrcweir
53cdf0e10cSrcweir.ENDIF     # "$(GUIBASE)"=="javamedia"
54cdf0e10cSrcweir
55cdf0e10cSrcweir# --- Targets ------------------------------------------------------
56cdf0e10cSrcweir
57cdf0e10cSrcweir.INCLUDE: target.mk
58cdf0e10cSrcweir
59cdf0e10cSrcweirALLTAR : $(MISC)/avmedia.jar.component
60cdf0e10cSrcweir
61cdf0e10cSrcweir$(MISC)/avmedia.jar.component .ERRREMOVE : \
62cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt avmedia.jar.component
63cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
64cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_JAVA)avmedia.jar' -o $@ \
65cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt avmedia.jar.component
66