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=..$/..$/..
25PRJNAME=odk
26TARGET=copying
27
28#----------------------------------------------------------------
29.INCLUDE: settings.mk
30.INCLUDE: $(PRJ)$/util$/makefile.pmk
31#----------------------------------------------------------------
32
33#----------------------------------------------------
34# this makefile is only used for copying the example
35# files into the SDK
36#----------------------------------------------------
37
38DESTJOBSADDON=$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/Addons$/JobsAddon
39JOBSADDON_FILES=\
40	$(DESTJOBSADDON)$/Addons.xcu \
41	$(DESTJOBSADDON)$/AsyncJob.java \
42	$(DESTJOBSADDON)$/Jobs.xcu \
43	$(DESTJOBSADDON)$/Makefile
44
45DESTPROTOCOLHANDLERADDONCPP=$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/Addons$/ProtocolHandlerAddon_cpp
46PROTOCOLHANLDERADDONCPP_FILES=\
47	$(DESTPROTOCOLHANDLERADDONCPP)$/addon.cxx \
48	$(DESTPROTOCOLHANDLERADDONCPP)$/addon.hxx \
49	$(DESTPROTOCOLHANDLERADDONCPP)$/Addons.xcu \
50	$(DESTPROTOCOLHANDLERADDONCPP)$/component.cxx \
51	$(DESTPROTOCOLHANDLERADDONCPP)$/Makefile \
52	$(DESTPROTOCOLHANDLERADDONCPP)$/ProtocolHandler.xcu \
53	$(DESTPROTOCOLHANDLERADDONCPP)$/ProtocolHandlerAddon_cpp.uno.xml
54
55DESTPROTOCOLHANDLERADDONJAVA=$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/Addons$/ProtocolHandlerAddon_java
56PROTOCOLHANLDERADDONJAVA_FILES=\
57	$(DESTPROTOCOLHANDLERADDONJAVA)$/Addons.xcu \
58	$(DESTPROTOCOLHANDLERADDONJAVA)$/Makefile \
59	$(DESTPROTOCOLHANDLERADDONJAVA)$/ProtocolHandler.xcu \
60	$(DESTPROTOCOLHANDLERADDONJAVA)$/ProtocolHandlerAddon.java \
61	$(DESTPROTOCOLHANDLERADDONJAVA)$/ProtocolHandlerAddon_java.uno.xml
62
63CPPCOMPONENT_FILES=\
64	$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/CppComponent$/CppComponent.uno.xml \
65	$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/CppComponent$/Makefile \
66	$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/CppComponent$/service1_impl.cxx \
67	$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/CppComponent$/service2_impl.cxx \
68	$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/CppComponent$/TestCppComponent.cxx \
69	$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/CppComponent$/SimpleComponent.odt \
70	$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/CppComponent$/some.idl
71
72JAVACOMPONENT_FILES=\
73	$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/JavaComponent$/Makefile \
74	$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/JavaComponent$/TestComponentA.java \
75	$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/JavaComponent$/TestComponentB.java \
76	$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/JavaComponent$/TestServiceProvider.java \
77	$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/JavaComponent$/TestJavaComponent.java \
78	$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/JavaComponent$/XSomethingA.idl \
79	$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/JavaComponent$/XSomethingB.idl \
80	$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/JavaComponent$/SomethingA.idl \
81	$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/JavaComponent$/SomethingB.idl
82
83DESTTHUMBS=$(DESTDIRDEVGUIDEEXAMPLES)$/Components$/Thumbs
84THUMBS_FILES=\
85	$(DESTTHUMBS)$/org$/openoffice$/comp$/test$/ImageShrink.java \
86	$(DESTTHUMBS)$/org$/openoffice$/comp$/test$/Thumbs.java \
87	$(DESTTHUMBS)$/org$/openoffice$/comp$/test$/Makefile \
88	$(DESTTHUMBS)$/org$/openoffice$/test$/ImageShrink.idl \
89	$(DESTTHUMBS)$/org$/openoffice$/test$/XImageShrink.idl \
90	$(DESTTHUMBS)$/org$/openoffice$/test$/XImageShrinkFilter.idl \
91	$(DESTTHUMBS)$/org$/openoffice$/test$/Makefile \
92	$(DESTTHUMBS)$/thumbs.mk \
93	$(DESTTHUMBS)$/Makefile
94
95
96DIR_FILE_LIST= \
97	$(JOBSADDON_FILES) \
98	$(PROTOCOLHANLDERADDONCPP_FILES) \
99	$(PROTOCOLHANLDERADDONJAVA_FILES) \
100	$(CPPCOMPONENT_FILES) \
101	$(JAVACOMPONENT_FILES) \
102	$(THUMBS_FILES)
103
104DIR_DIRECTORY_LIST=$(uniq $(DIR_FILE_LIST:d))
105DIR_CREATE_FLAG=$(MISC)$/devguide_components_dirs_created.txt
106DIR_FILE_FLAG=$(MISC)$/devguide_components.txt
107
108#--------------------------------------------------
109# TARGETS
110#--------------------------------------------------
111all : \
112	$(DIR_FILE_LIST) \
113	$(DIR_FILE_FLAG)
114
115#--------------------------------------------------
116# use global rules
117#--------------------------------------------------
118.INCLUDE: $(PRJ)$/util$/odk_rules.pmk
119
120