To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=83636
                 Issue #|83636
                 Summary|Encapsulate extension packaging in makefiles
               Component|tools
                 Version|680m222
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|solenv
             Assigned to|hjs
             Reported by|np





------- Additional comments from [EMAIL PROTECTED] Wed Nov 14 13:15:45 +0000 
2007 -------
Example: makefile CWS 
/.../picom/SRC680/src.m222/filter/source/pdfimport/makefile.mk

There is a lengthy section entitled "Extension packaging"


# --- Extension packaging ------------------------------------------

common_build_zip=

DESCRIPTION:=$(MISC)$/pdfimport$/description.xml

.IF "$(GUI)" == "WIN" || "$(GUI)" == "WNT"
PACKLICS:=$(foreach,i,$(alllangiso)
$(MISC)$/pdfimport$/registration$/license_$i.txt)
.ELSE
PACKLICS:=$(foreach,i,$(alllangiso) 
$(MISC)$/pdfimport$/registration$/LICENSE_$i)
.ENDIF

COMPONENT_FILES= \
    $(MISC)$/pdfimport$/pdf_import_filter.xcu \
    $(MISC)$/pdfimport$/pdf_types.xcu

COMPONENT_MANIFEST= \
        $(MISC)$/pdfimport$/META-INF$/manifest.xml

COMPONENT_LIBRARY= \
    $(MISC)$/pdfimport$/$(SHL1TARGET)$(DLLPOST)

ZIP1DEPS=               $(PACKLICS) $(DESCRIPTION) $(COMPONENT_MANIFEST) 
$(COMPONENT_FILES)
$(COMPONENT_LIBRARY) makefile.mk
ZIP1TARGET=             pdfimport
ZIP1DIR=                $(MISC)$/pdfimport
ZIP1EXT=                .oxt
ZIP1FLAGS=-r
ZIP1LIST=               *


This section may lead to subtle build breaks, in the reported case, teh
developer editing the makefile was not aware that extension license files have
different case and file-extension for windows vs. unix.

To avoid such subtle errors and because this code seems to be quite similar for
all extensions, it would be helpful to encapsulate this code in a central
makefile, such that it is only necessary to write something like

EXTENSION=true
or
.INCLUDE extension.mk

instead of copying the whole stuff from another makefile.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to