Scroll to navigation

HPHPIZE(1) General Commands Manual HPHPIZE(1)

NAME

hphpize - prepare an HHVM extension for compiling DSOs.

SYNPOSIS

hphpize

DESCRIPTION

hphpize(1) is a shell script to prepare an HHVM extension for compiling a dynamically shared object (DSO).

hphpize(1) requires, at a minimum, a PHP|Hack|C++ extension and a config.cmake file that contains the build information for cmake.

config.cmake must contain at least the following two lines:

HHVM_EXTENSION(${extension_name} ${filestobuild})
HHVM_SYSTEMLIB(${extension_name} ${PHPfiletobuild})

specifying the C++ source file(s) to build and one PHP file to embed in the DSO as a system library (systemlib).

config.cmake can contain other information as well, such as links to other libraries, etc.

EXAMPLE

https://github.com/hhvm/extension-example

VERSION INFORMATION

This manpage describes hphpize(1), version 3.0 and greater

COPYRIGHT

HHVM is licensed under the PHP and Zend licenses except as otherwise noted. The full license can be found at: https://github.com/facebook/hhvm

SEE ALSO

hhvm(1)
https://github.com/facebook/hhvm/wiki/extension-api
https://github.com/hhvm/extension-example
http://docs.hhvm.com