Re: Re: Re: [dev] CMake module for finding OpenOffice.org SDK installation

2010-05-25 Thread Konstantin Tokarev
>  > Actually, this script is not "OOo side" integration.
>  
>  Wrong. It is. It is a file for loooking where OOos SDK is.

Yes, but it couldn't be called "OOo side" integration now because it needs to 
be included into client's project, and it searches for OOo installations in the 
system, not belonging to any of it. Proper "OOo side" integration should 
include some information for CMake what files to include

>  Err., last I looked cmake had a dir where it looked for .cmake files:

Yes, but it's not fair to install files into other project's prefix :)

>  >  Alternatively, it could be submitted to CMake, placed in its directory it
>  > will be available without copying to project.
>  
>  I don't think that's a good idea. Such stuff belongs to the project
>  wheere it#s supposed to check for (so it can be adapted there for changes)
>  Like stuff for the < 3 SDKs won't work with >= 3 SDKs.

It was just an idea. Actually, CMake already contains "Find" modules for lots 
of libraries and other software. My script is already able to extract OOo 
version (build number and other info could be extracted similarly)
  

-- 
Regards,
Konstantin

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



Re: Re: [dev] CMake module for finding OpenOffice.org SDK installation

2010-05-25 Thread Rene Engelhard
[ please follow Netiquette and wrote proper lines with proper linebreaks ]

Hi,

On Tue, May 25, 2010 at 05:20:49PM +0400, Konstantin Tokarev wrote:
> >  Actually, no, I disagree. As it's just a data file, we can just include
> >  it in the SDK.
> 
> Actually, this script is not "OOo side" integration.

Wrong. It is. It is a file for loooking where OOos SDK is.

> It's intended to be included into projects using CMake, it will not work
> from from SDK location (as, for example, pkg-config files work).

Err., last I looked cmake had a dir where it looked for .cmake files:

r...@frodo:/usr/share/cmake-2.8$ ls -la
insgesamt 80
drwxr-xr-x   5 root root  4096 20. Nov 2009  .
drwxr-xr-x 416 root root 12288 24. Mai 23:52 ..
drwxr-xr-x   2 root root  4096 17. Mai 12:59 include
drwxr-xr-x   6 root root 53248 17. Mai 12:59 Modules
drwxr-xr-x   2 root root  4096 17. Mai 12:59 Templates

What about this?

>  Alternatively, it could be submitted to CMake, placed in its directory it
> will be available without copying to project.

I don't think that's a good idea. Such stuff belongs to the project
wheere it#s supposed to check for (so it can be adapted there for changes)
Like stuff for the < 3 SDKs won't work with >= 3 SDKs.

> Of course, I can provide an example of usage, but if you want to include
> CMake integration into SDK, it will require a bit more effort.

A bit, not much. (And yeah, I don't believe that without tight system
integration it will work, but if you read closer, I didn't claim that
anyways)

> Also, I'd like to add that this file could be potentially used not only for
> extensions, but for any project which needs OpenOffice.org files for any
> purpose (but it may require some improvements in it).

Exactly. One more point why it should be in SDK (and be it for reference
or for copying it in your tree - like the infamous unowinreg.dll)
Grüße/Regards,

René

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



Re: Re: [dev] CMake module for finding OpenOffice.org SDK installation

2010-05-25 Thread Konstantin Tokarev
>  Actually, no, I disagree. As it's just a data file, we can just include
>  it in the SDK.

Actually, this script is not "OOo side" integration. It's intended to be 
included into projects using CMake, it will not work from from SDK location 
(as, for example, pkg-config files work). Alternatively, it could be submitted 
to CMake, placed in its directory it will be available without copying to 
project.

Of course, I can provide an example of usage, but if you want to include CMake 
integration into SDK, it will require a bit more effort. Maybe I'll take it 
later.

Also, I'd like to add that this file could be potentially used not only for 
extensions, but for any project which needs OpenOffice.org files for any 
purpose (but it may require some improvements in it).

-- 
Regards,
Konstantin

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



Re: [dev] CMake module for finding OpenOffice.org SDK installation

2010-05-25 Thread Juergen Schmidt

On 5/25/10 2:01 PM, Rene Engelhard wrote:

Hi,

On Tue, May 25, 2010 at 01:46:12PM +0200, Juergen Schmidt wrote:

Once you have created such a page it would make sense to reference it
from http://wiki.services.openoffice.org/wiki/Extensions_development


Actually, no, I disagree. As it's just a data file, we can just include
it in the SDK.
that can be done also but we need a documentation and an example anyway. 
Before we include it in the SDK we should document it and should get 
some feedback.


Juergen



"Of course" it probably won't work out of the box for your as it's "hidden"
in /opt/openoffice.org/basis3.2/sdk but distros can just put it in/link it from
wherever cmake searches for them :-)

Grüße/Regards,

René

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




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



Re: [dev] CMake module for finding OpenOffice.org SDK installation

2010-05-25 Thread Rene Engelhard
Hi,

On Tue, May 25, 2010 at 01:46:12PM +0200, Juergen Schmidt wrote:
> Once you have created such a page it would make sense to reference it  
> from http://wiki.services.openoffice.org/wiki/Extensions_development

Actually, no, I disagree. As it's just a data file, we can just include
it in the SDK.

"Of course" it probably won't work out of the box for your as it's "hidden"
in /opt/openoffice.org/basis3.2/sdk but distros can just put it in/link it from
wherever cmake searches for them :-)

Grüße/Regards,

René

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



Re: [dev] CMake module for finding OpenOffice.org SDK installation

2010-05-25 Thread Juergen Schmidt

Hi Konstantin,

it sounds interesting and i would suggest that you create a wiki page 
where you document it in detail. Ideally with an example.


Once you have created such a page it would make sense to reference it 
from http://wiki.services.openoffice.org/wiki/Extensions_development


Juergen


On 5/25/10 11:59 AM, Konstantin Tokarev wrote:

Hi all!
I've written cmake module which finds installation of OpenOffice.org
SDK. Both distribution-supplied and "official" OOo installation are
supported. Script will choose first OOo installation where SDK is
present. It sets paths to different directories of OOo, which could be
easily used in CMake project

Personally I use CMake as configurator for my extension in Java (built
with ant) to simplify building on different machines/Linux distros

File is attached. License is BSD. Any fixes/addition are welcomed.




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



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



Re: [dev] CMake module for finding OpenOffice.org SDK installation

2010-05-25 Thread Rene Engelhard
On Tue, May 25, 2010 at 01:59:56PM +0400, Konstantin Tokarev wrote:
> File is attached. License is BSD. Any fixes/addition are welcomed.

No. ;)

(And you better file an issue with the patch anyway)

Grüße/Regards,

René

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



[dev] CMake module for finding OpenOffice.org SDK installation

2010-05-25 Thread Konstantin Tokarev
Hi all!
I've written cmake module which finds installation of OpenOffice.org
SDK. Both distribution-supplied and "official" OOo installation are
supported. Script will choose first OOo installation where SDK is
present. It sets paths to different directories of OOo, which could be
easily used in CMake project

Personally I use CMake as configurator for my extension in Java (built
with ant) to simplify building on different machines/Linux distros

File is attached. License is BSD. Any fixes/addition are welcomed.

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