Re: [Oorexx-devel] How about adding "rxSnippets" to the ooRexx distribution ? Also ad Windows: split "api" into "include" and "lib"? ((Re: How to build external functions using cmake

2019-03-22 Thread Gil Barmwater
To my knowledge, REXX_HOME is always set on a Windows install, but 
probably only if you run the NSIS installer.


Gil B.

On 3/22/2019 1:11 PM, Enrico Sorichetti via Oorexx-devel wrote:

Hello Rony

I just added

-DOOREXX_INCLUDE_DIR=...
-DOOREXX_LIB_DIR=...

handling

for the include/lib directories

e

P.S

If the REXX_HOME is an environment variable
I could pick up the info from there

Please let know and I will fix it


On 22 Mar 2019, at 17:34, Rony G. Flatscher > wrote:


It works (except for Windows) out of the box on Linux, Darwin, . The 
Windows part has currently the problem that the "include" and "lib" 
directories are folded into the "%REXX_HOME%\api" directory. 
Therefore I would suggest to remove "api" and split its contents 
accordingly into the new subdirectories "%REXX_HOME%\include" 
(containing the *.h files) and "%REXX_HOME%\lib" (containing the 
*.lib files).






___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


--
Gil Barmwater

___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] How about adding "rxSnippets" to the ooRexx distribution ? Also ad Windows: split "api" into "include" and "lib"? ((Re: How to build external functions using cmake

2019-03-22 Thread Rony G. Flatscher
Hi Enrico,

thank you for your update! The Windows installation of ooRexx indeed sets an 
environment variable
named "REXX_HOME" that points to the installation location, which depends on 
the bitness of ooRexx.
(And on Windows instead of using $REXX_HOME one needs to enclose the 
environment variable into
percent signs, hence %REXX_HOME% in some batch scripts.)

HTH,

---rony


On 22.03.2019 18:11, Enrico Sorichetti via Oorexx-devel wrote:
> Hello Rony
>
> I just added  
>
> -DOOREXX_INCLUDE_DIR=...
> -DOOREXX_LIB_DIR=...
>
> handling
>
> for the include/lib directories
>
> e
>
> P.S
>
> If the REXX_HOME is an environment variable 
> I could pick up the info from there 
>
> Please let know and I will fix it
>
>
>> On 22 Mar 2019, at 17:34, Rony G. Flatscher > > wrote:
>>
>> It works (except for Windows) out of the box on Linux, Darwin, . The Windows 
>> part has currently
>> the problem that the "include" and "lib" directories are folded into the 
>> "%REXX_HOME%\api"
>> directory. Therefore I would suggest to remove "api" and split its contents 
>> accordingly into the
>> new subdirectories "%REXX_HOME%\include" (containing the *.h files) and 
>> "%REXX_HOME%\lib"
>> (containing the *.lib files).
>>

___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] How about adding "rxSnippets" to the ooRexx distribution ? Also ad Windows: split "api" into "include" and "lib"? ((Re: How to build external functions using cmake

2019-03-22 Thread Enrico Sorichetti via Oorexx-devel
Hello Rony

I just added  

-DOOREXX_INCLUDE_DIR=...
-DOOREXX_LIB_DIR=...

handling

for the include/lib directories

e

P.S

If the REXX_HOME is an environment variable 
I could pick up the info from there 

Please let know and I will fix it


> On 22 Mar 2019, at 17:34, Rony G. Flatscher  wrote:
> It works (except for Windows) out of the box on Linux, Darwin, . The Windows 
> part has currently the problem that the "include" and "lib" directories are 
> folded into the "%REXX_HOME%\api" directory. Therefore I would suggest to 
> remove "api" and split its contents accordingly into the new subdirectories 
> "%REXX_HOME%\include" (containing the *.h files) and "%REXX_HOME%\lib" 
> (containing the *.lib files).
> 

___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


[Oorexx-devel] How about adding "rxSnippets" to the ooRexx distribution ? Also ad Windows: split "api" into "include" and "lib"? ((Re: How to build external functions using cmake

2019-03-22 Thread Rony G. Flatscher
Hi there,

Enrico's "rxSnippets" are just great, IMHO!

They provide a working CMake nutshell example that can be used to compile 
external Rexx function
libraries according to the SAA or the ooRexx native APIs *on all operating 
system platforms* from
*one* CMakeLists.txt!

It works (except for Windows) out of the box on Linux, Darwin, . The Windows 
part has currently the
problem that the "include" and "lib" directories are folded into the 
"%REXX_HOME%\api" directory.
Therefore I would suggest to remove "api" and split its contents accordingly 
into the new
subdirectories "%REXX_HOME%\include" (containing the *.h files) and 
"%REXX_HOME%\lib" (containing
the *.lib files).

Alternatively, one could probably add code to test on Windows only whether 
"include" and "lib"
exist, and if not, use "api" instead for both.

Any interested developer who wants to create external Rexx function libraries 
can see and learn the
gist of what is needed to do so. *Much* better than the existing examples on 
Windows in
"samples/api" which are restricted to Windows only.

So I would *love* to see Enrico's "rxSnippets" distributed with ooRexx to ease 
the creation of
external function packages considerably!

Also, as mentioned, it would be great IMHO if on Windows the "api" directory 
gets split up into
"include" and "lib" as then Enrico's CMakeLists.txt would work out of the box 
for Windows as well!

---rony



On 17.02.2019 19:09, Enrico Sorichetti via Oorexx-devel wrote:
>
> See here 
>
> git clone http://3...@bitbucket.org/3481/rxSnippets
>
>
> Have a good time 
>
> Tested only on Darwin 
>
> Working on the other platforms 
>
> I will keep You posted
>
> cheers
>
> E 

___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel