
Received: by with SMTP id i26so1186840qtr.10ĭKIM-Signature: v=1 a=rsa-sha256 c=relaxed/relaxed Received: from ( )īy mail.wl. (Postfix) with ESMTP id 498BE28984 X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED,ĭKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham X-Spam-Checker-Version: SpamAssassin 3.3.1 () on Received: by mail.wl. (Postfix, from userid 486) Received: from mail.wl. (localhost )īy mail.wl. (Postfix) with ESMTP id 9E29828984 Build PHP with the tidy-html5 libraryĭue to API changes in the PHP source, buffio.h needs to be renamed to tidybuffio.h in the file ext/tidy/tidy.c in PHP's source.Received: from mail.wl. (īy (Postfix) with ESMTP id AF01F1398

See the CMakeLists.txt file for other CMake options offered. The static library is always built and linked with the command line tool for convenience in Windows, and so the binary can be run as part of the man page build without the shared library being installed in unix. add the command -DBUILD_SHARED_LIB:BOOL=OFF. If you do not need the tidy library built as a 'shared' (DLL) library, then in 2. After the build the tidy.exe is in the Release directory, and can be copied to any directory in your PATH environment variable for global use. In Windows the default install is to C:\Program Files\tidy, or C:/Program Files (x86)/tidy, which is not very useful. This is normally added in windows build for the Release config. This adds a -DNDEBUG macro to the compile switches. above use -DCMAKE_INSTALL_PREFIX=/usr.Īlso, in Unix if you want to build the release library without any debug assert in the code then add -DCMAKE_BUILD_TYPE=Release in step 2. If you wanted the binary in say /usr/bin instead, then in 2. config Release -target INSTALL Unix/OS X: make installīy default cmake sets the install path to /usr/local/bin in Unix.

Again below only the command line use of MSVC is shown, but the tidy solution (*.sln) file can be loaded into the MSVC IDE, and the building done in there. In Windows CMake offers various versions for MSVC. For sure one of the common ones is "Unix Makefiles", which needs autotools make installed, but many other generators are supported. Running cmake -help should list the generators available on that platform. But that is one of the great features of CMake, it can generate variuous 'native' build files. The build commands below are only for command line use.Īlso the actual build tools vary for each platform.

Some installations only install one or the other, but sometimes both. the xsltproc tool is required to build and install the tidy.1 man page on Unix-like platforms.ĬMake comes in two forms - command line and GUI.appropriate build tools for the platform.
