extension_post.mk (7871dc3e) extension_post.mk (77f0f650)
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

--- 41 unchanged lines hidden (view full) ---

50 $(GNUCOPY) $< $@
51
52.IF "$(COMPONENT_FILES)"!=""
53COMPONENT_FILES_SRC*=./
54# ugly hacking to workaround prepended first source path - also hits
55# here in case of "just copied" .xcu files
56$(COMPONENT_FILES) : $$(@:s|$(fixme2)|$(MISC)|:s|$(EXTENSIONDIR)/|$(COMPONENT_FILES_SRC)|)
57 @@-$(MKDIRHIER) $(@:s|$(fixme2)|$(MISC)|:d)
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

--- 41 unchanged lines hidden (view full) ---

50 $(GNUCOPY) $< $@
51
52.IF "$(COMPONENT_FILES)"!=""
53COMPONENT_FILES_SRC*=./
54# ugly hacking to workaround prepended first source path - also hits
55# here in case of "just copied" .xcu files
56$(COMPONENT_FILES) : $$(@:s|$(fixme2)|$(MISC)|:s|$(EXTENSIONDIR)/|$(COMPONENT_FILES_SRC)|)
57 @@-$(MKDIRHIER) $(@:s|$(fixme2)|$(MISC)|:d)
58 $(COMMAND_ECHO)$(COPY) $< $(@:s|$(fixme2)|$(MISC)|)
58 $(COMMAND_ECHO)$(COPY) $< $(@:s|$(fixme2)|$(MISC)|)
59.ENDIF # "$(COMPONENT_FILES)"!=""
60
61.IF "$(COMPONENT_JARFILES)"!=""
62$(COMPONENT_JARFILES) : $(CLASSDIR)/$$(@:f)
63 @@-$(MKDIRHIER) $(@:d)
59.ENDIF # "$(COMPONENT_FILES)"!=""
60
61.IF "$(COMPONENT_JARFILES)"!=""
62$(COMPONENT_JARFILES) : $(CLASSDIR)/$$(@:f)
63 @@-$(MKDIRHIER) $(@:d)
64 $(COMMAND_ECHO)$(COPY) $< $@
64 $(COMMAND_ECHO)$(COPY) $< $@
65.ENDIF # "$(COMPONENT_JARFILES)"!=""
66
67.IF "$(COMPONENT_LIBRARIES)"!=""
68PACK_RUNTIME!:=TRUE
69# TODO(Q3): strip the binary?
70$(COMPONENT_LIBRARIES) : $(DLLDEST)/$$(@:f)
71 @@-$(MKDIRHIER) $(@:d)
65.ENDIF # "$(COMPONENT_JARFILES)"!=""
66
67.IF "$(COMPONENT_LIBRARIES)"!=""
68PACK_RUNTIME!:=TRUE
69# TODO(Q3): strip the binary?
70$(COMPONENT_LIBRARIES) : $(DLLDEST)/$$(@:f)
71 @@-$(MKDIRHIER) $(@:d)
72 $(COMMAND_ECHO)$(COPY) $< $@
72 $(COMMAND_ECHO)$(COPY) $< $@
73.ENDIF # "$(COMPONENT_LIBRARIES)"!=""
74
75.IF "$(PACK_RUNTIME)"!=""
76PACK_RUNTIME_FLAG:=$(MISC)/$(TARGET)_pack_runtime.flag
77$(EXTENSION_TARGET) : $(PACK_RUNTIME_FLAG)
78
79$(EXTENSIONDIR) :
80 @@-$(MKDIRHIER) $(@:d)

--- 68 unchanged lines hidden (view full) ---

149
150 $(COMMAND_ECHO)$(TYPE) $@.2.$(EXTNAME) | sed s/UPDATED_IDENTIFIER/$(IMPLEMENTATION_IDENTIFIER)/ > $@.3.$(EXTNAME)
151 @@-$(RM) $@.2.$(EXTNAME)
152
153 $(COMMAND_ECHO)$(TYPE) $@.3.$(EXTNAME) | sed s/UPDATED_SUPPORTED_PLATFORM/$(PLATFORMID)/ > $@
154 @@-$(RM) $@.3.$(EXTNAME)
155
156.ENDIF # "$(DESCRIPTION)"!=""
73.ENDIF # "$(COMPONENT_LIBRARIES)"!=""
74
75.IF "$(PACK_RUNTIME)"!=""
76PACK_RUNTIME_FLAG:=$(MISC)/$(TARGET)_pack_runtime.flag
77$(EXTENSION_TARGET) : $(PACK_RUNTIME_FLAG)
78
79$(EXTENSIONDIR) :
80 @@-$(MKDIRHIER) $(@:d)

--- 68 unchanged lines hidden (view full) ---

149
150 $(COMMAND_ECHO)$(TYPE) $@.2.$(EXTNAME) | sed s/UPDATED_IDENTIFIER/$(IMPLEMENTATION_IDENTIFIER)/ > $@.3.$(EXTNAME)
151 @@-$(RM) $@.2.$(EXTNAME)
152
153 $(COMMAND_ECHO)$(TYPE) $@.3.$(EXTNAME) | sed s/UPDATED_SUPPORTED_PLATFORM/$(PLATFORMID)/ > $@
154 @@-$(RM) $@.3.$(EXTNAME)
155
156.ENDIF # "$(DESCRIPTION)"!=""
157# default OOo license text!!!
157
158# default license text for Apache OpenOffice extensions is the Apache Licence 2
158# may not fit...
159.IF "$(CUSTOM_LICENSE)"==""
159# may not fit...
160.IF "$(CUSTOM_LICENSE)"==""
160.IF "$(GUI)" == "WNT"
161PACKLICDEPS=$(SOLARBINDIR)/osl/license$$(@:b:s/_/./:e:s/./_/)$$(@:e)
162.ELSE # "$(GUI)" == "WNT"
163PACKLICDEPS=$(SOLARBINDIR)/osl/LICENSE$$(@:b:s/_/./:e:s/./_/)$$(@:e)
164.ENDIF # "$(GUI)" == "WNT"
161PACKLICDEPS=$(SOLARBINDIR)/osl/LICENSE_ALv2
165.ELSE # "$(CUSTOM_LICENSE)" == ""
166PACKLICDEPS=$(CUSTOM_LICENSE)
167.ENDIF # "$(CUSTOM_LICENSE)" == ""
168.IF "$(PACKLICS)"!=""
169$(PACKLICS) : $(PACKLICDEPS)
170 @@-$(MKDIRHIER) $(@:d)
171 $(COMMAND_ECHO)$(GNUCOPY) $< $@
172.ENDIF # "$(PACKLICS)"!=""

--- 13 unchanged lines hidden ---
162.ELSE # "$(CUSTOM_LICENSE)" == ""
163PACKLICDEPS=$(CUSTOM_LICENSE)
164.ENDIF # "$(CUSTOM_LICENSE)" == ""
165.IF "$(PACKLICS)"!=""
166$(PACKLICS) : $(PACKLICDEPS)
167 @@-$(MKDIRHIER) $(@:d)
168 $(COMMAND_ECHO)$(GNUCOPY) $< $@
169.ENDIF # "$(PACKLICS)"!=""

--- 13 unchanged lines hidden ---