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
24PRJ = ..$/..
25TARGET  = EmbedContFrame
26PRJNAME = embeddedobj
27PACKAGE = embeddedobj$/test
28
29# --- Settings -----------------------------------------------------
30.INCLUDE: settings.mk
31
32# EXEC_CLASSPATH_TMP = \
33# 	$(foreach,i,$(JARFILES) $(SOLARBINDIR)$/$i)$(PATH_SEPERATOR)
34# EXEC_CLASSPATH = \
35# 	$(strip $(subst,!,$(PATH_SEPERATOR) $(EXEC_CLASSPATH_TMP:s/ /!/)))
36
37#----- compile .java files -----------------------------------------
38
39JARFILES        = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar
40
41JAVAFILES  = \
42	EmbedContApp.java\
43	EmbedContFrame.java\
44	NativeView.java\
45	WindowHelper.java\
46	JavaWindowPeerFake.java\
47	BitmapPainter.java\
48	PaintThread.java
49
50CLASSFILES = $(patsubst %.java,$(OUT_COMP_CLASS)/%.class,$(JAVAFILES))
51
52
53# --- Targets ------------------------------------------------------
54
55.INCLUDE: target.mk
56
57ALL : $(OUT)$/slo$/nativeview.obj
58    JavaStorageTestExample
59
60JavaStorageTestExample : $(CLASSFILES)
61	@echo --------------------------------------------------------------------------------
62	@echo "Please use following command to execute the example!"
63	@echo ------
64	@echo "dmake run"
65	@echo --------------------------------------------------------------------------------
66
67# $(OUT)$/slo$/nativeview.obj:
68	# cd nativelib; dmake debug=t; cd ..
69
70# echo $(SOLARBINDIR)
71# echo $(EXEC_CLASSPATH)
72
73run: $(CLASSFILES)
74	+set PATH=$(PATH)$(PATH_SEPERATOR)$(JDK14PATH)$/jre$/bin && \
75	java -classpath "$(OUT)$/class;$(OUT)$/lib;$(OUT)$/bin;$(JDK14PATH)$/jre$/bin;$(JDK14PATH)$/jre$/lib;$(CLASSPATH)" embeddedobj.test.EmbedContFrame
76
77debug: $(CLASSFILES)
78	+set PATH=$(PATH)$(PATH_SEPERATOR)$(JDK14PATH)$/jre$/bin && \
79	jdb -classpath "$(OUT)$/class;$(OUT)$/lib;$(OUT)$/bin;$(CLASSPATH)" embeddedobj.test.EmbedContFrame
80
81clean :
82	-$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_CLASS))
83
84