internals:cmake

CMake Migration

Cmake Migration projects is a GSoC project mentored by Pierre A. Joye and developed by Alejandro Leiva. More info.

Introduction

In PHP context CMake should do the PHP developer's life easier and more productive.

  • Uniform language in many platforms.
  • Automatic generation of native workspaces and projects (XCode, Visual Studio, Borland, Makefile, ...)
  • The ability to automatically search for programs, libraries and header files.
  • Macro support.
  • The ability to generate native projects formats.
  • Cross-compiling support.

Supported Platforms

  • Linux
  • Solaris / SunOS
  • IRIX
  • HPUX
  • AIX
  • Mac OS X > 10.2
  • FreeBSD
  • OSF
  • Windows 98/ME/NT/2K/XP
  • Windows Cygwin
  • Windows Mingw

Development

How to track it

You can get acces to web interfaces for the project accesing to: http://svn.php.net/viewvc/php/cmake/

How to get it

You can get the current development code (trunk) with anonymous access from svn using this command:

// anonymous login
svn co http://svn.php.net/repository/php/cmake/trunk php.cmake
// <username> login
svn co --username <username> http://svn.php.net/repository/php/cmake/trunk php.cmake

Note: If you want to add some patches you can send it or request an account to gloob@php.net

How to test it

Currently we support php-src/trunk source code, added as a svn external property.unk/cmake/) to your php checkouted copy.

I suggest you that use an out-the-source compiling strategy. Move to another directory and execute cmake <php_source_dir> after that you'll have a Makefile file (in make platforms), execute make (or load the project file generated)

You can use too the build_src.sh script (i.e. ./build_src <php_source_dir>)

Linux and MacOS X

  • Copy ./cmake dir to src/php5 and cmake'it to ./build directory and make'it
dendrita:php.cmake/trunk $ ./build_src.sh src/php5/     

Windows

  • TbD

Other Platforms

  • TbD
internals/cmake.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1