# PHP Cmake

- Thread: https://externals.io/message/39429
- Original archive: https://news-web.php.net/php.internals/39429
- Started by Alejandro Leiva on 2008-07-29T08:52:44+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #39429 — Alejandro Leiva — 2008-07-29T08:52:44+00:00

URL: https://externals.io/message/39429#39429

Hi,

	I'm working in porting php to cmake there is information in the wiki  
@ http://wiki.php.net/internals/cmake, now is compiling Zend, main,  
TSRM, ext/ctype, ext/date, ext/dom, ext/libxml, ext/phar, ext/standard  
and sapi/cli. I wrote a php script to convert automatically the  
information in config.m4 && config.w32 from extensions to CMake (now  
only take care of PHP_NEW_EXTENSION but is extensible) and a script to  
convert configure checks to CMake. I expect in one week to have a php  
cli compiling and linking. After that I'll implement CTest (for  
running php tests) and CPack (for automatic packaging) also finish to  
porting all the extensions and all the sapi.

	Also in two weeks I think that we can begin to test it and porting to  
Windows, now is working in Linux and MacOS platform (probably in all  
unix like platforms).

Cheers,
--
Alejandro Leiva

---

## #39431 — Brian J. France — 2008-07-29T13:13:57+00:00

URL: https://externals.io/message/39429#39431 · In reply to: #39429

> 	I'm working in porting php to cmake there is information in the  
> wiki @ http://wiki.php.net/internals/cmake, now is compiling Zend,  
> main, TSRM, ext/ctype, ext/date, ext/dom, ext/libxml, ext/phar, ext/ 
> standard and sapi/cli. I wrote a php script to convert automatically  
> the information in config.m4 && config.w32 from extensions to CMake  
> (now only take care of PHP_NEW_EXTENSION but is extensible) and a  
> script to convert configure checks to CMake. I expect in one week to  
> have a php cli compiling and linking. After that I'll implement  
> CTest (for running php tests) and CPack (for automatic packaging)  
> also finish to porting all the extensions and all the sapi.
>
> 	Also in two weeks I think that we can begin to test it and porting  
> to Windows, now is working in Linux and MacOS platform (probably in  
> all unix like platforms).


Building the core, one sapi and no extensions, then using phpize for  
building shared extension will still be a option, right?

Brian

---

## #39438 — Alejandro Leiva — 2008-07-29T15:23:19+00:00

URL: https://externals.io/message/39429#39438 · In reply to: #39431

El 29/07/2008, a las 15:13, Brian J. France escribió:

>
> 
> > […]
>
>
> Building the core, one sapi and no extensions, then using phpize for  
> building shared extension will still be a option, right?
>
> Brian

Hi Brian,

	It is mandatory to compile and linking some extensions to any sapi to  
obtain a working php executable/library (e.g. ext/standard) but normal  
extensions will be pluggable. Configure switchers will be supported,  
in the same way or in new way (dependent of CMake possibilities). I  
missed to remark that we'll implement phpize based on CMake (if is  
necesary).

cul8er,
--
Alejandro Leiva

---

## #39442 — Stanislav Malyshev — 2008-07-29T18:19:44+00:00

URL: https://externals.io/message/39429#39442 · In reply to: #39438

Hi!

> possibilities). I missed to remark that we'll implement phpize based on 
> CMake (if is necesary).

Some way to build an extension stand-alone - phpize or other - is 
definitely necessary.
-- 
Stanislav Malyshev, Zend Software Architect
stas@zend.com   http://www.zend.com/
(408)253-8829   MSN: stas@zend.com

---

## #39443 — Alejandro Leiva — 2008-07-29T18:44:26+00:00

URL: https://externals.io/message/39429#39443 · In reply to: #39442

> Hi!
>
> > […]
>
> Some way to build an extension stand-alone - phpize or other - is  
> definitely necessary.


Of course, what I try to say is that we'll implement a phpize above  
CMake if CMake by itself (with some macros) can't do the work.

cul8er,
--
Alejandro Leiva
