To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=88578
                 Issue #|88578
                 Summary|Extend $_OS and _ARCH
               Component|framework
                 Version|DEV300m9
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|cmc
             Reported by|jl





------- Additional comments from [EMAIL PROTECTED] Tue Apr 22 08:37:50 +0000 
2008 -------
Since DEV300 m9 the extensions can define the platforms where they can run. (see
wiki at
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Extensions/Target_Platform
)

This mechanism is based on the bootstrap variables _OS and _ARCH. One can use
the rtl Bootstrap class to get the values. For example:

 OUString arch( RTL_CONSTASCII_USTRINGPARAM("$_ARCH") );
  ::rtl::Bootstrap::expandMacros( arch );

The Bootstrap code uses the file sal/rtl/source/macro.hxx to determine the
values, which are set by the preprocessor. That is, at build - time  the
architecture and platform must be defined. This needs probably done somewhere in
the configure script or build environment.


The currently unsupported architectures are:

PowerPC_64
ARM_EABI
ARM_OABI
MIPS_EL
MIPS_EB
S390x 

 ARM and MIPS are already defined in macro.hxx. I assume that they could be
replaced by the more specific ones without risking to break much code. Otherwise
we could later put ARM and MIPS back in after the more specific ones. For 
example:

#elif defined ARM_EABI
#define THIS_ARCH "ARM_EABI"
#elif defined ARM
#define THIS_ARCH "ARM"

As I said, we should do this only if there are people really affected.


I already prepared the Extension Manager to use these architectures and also
provided test extensions at
desktop/test/deployment/update/platform

Here is a link to the mail thread

http://porting.openoffice.org/servlets/BrowseList?list=dev&by=thread&from=1984649

jl->cmc: Would you take care of this?

---------------------------------------------------------------------
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