Le mardi 25 mai 2010, Ariel Constenla-Haile a écrit :
> Hello Patrick,
>
> On Monday 24 May 2010, 13:54, Patrick Bernard wrote:
> > Hi
> >
> > The page DevGuide/Extensions/Target_Platform
>
> I guess you're referring to
> http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Extensions/
>Target_Platform
>
> > states that the information
> > about the operating system and the architecture, that is necessary to
> > generate the platform string for an extension, can be found in
> > rtlbootstrap.mk. However, I couldn't find this file in my OpenOffice.org
> > installation (version 3.2.0 on Ubuntu).
>
> http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Extensions/
>Target_Platform#Generating_the_Platform_String_in_the_Build_Environment that
> explanation is for "Generating the Platform String in the Build
> Environment" where OOo is built, that is: if you build OOo yourself and
> develop an extension in the OOo build environment.
>
> You won't find this file in the OOo installation, it's just generated in
> sal/unxlngx6/inc/rtlbootstrap.mk and delivered to
> solver/300/unxlngx6/inc/rtlbootstrap.mk for use inside the build
> environment.
>
> as you are writing to dev@api.openoffice.org I assume you are not dealing
> with OOo source nor build environment.
>
> > Instead, the file
> > sdk/settings/settings.mk contains two variables : PLATFORM and PROCTYPE.
> > Do I have to use these variables to generate the platform string ?
>
> in some cases this is valid, in others not; look at the UNOPKG_PLATFORM
> variable, it is NOT simply made out of $(PLATFORM)_$(PROCTYPE) for every
> case.
>
> cf. the table at
> http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Extensions/
>Target_Platform#Platform_Tokens
>
> may be some more info may help: what kind of extension are you developing?
> what build environment do you use? can't you simply take the value from the
> Platform_Tokens table and hard code it, or you need something more
> portable?
>
> Regards

Hi


I'm developing an extension in C++ on Ubuntu with the OOo sdk, make and g++ as 
build environment. The extension will be available for several platforms 
(Windows, Mac OS X, Ubuntu), but not at the same time. There will be a 
version of the extension for each platform. As you can see in 
DevGuide/Extensions/Extension_Identifiers, the identifier used for the 
extension must be unique, even among extensions that are logically the same 
but support different platforms. Besides, the file description.xml must 
contain a platform element with the platform token. I thought that this token 
could be obtained automatically from the sdk, to avoid setting it manually. 
If it is not possible, I would like to know why.


Thanks

Patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to