// vim:ft=javascript noet ARG_WITH("perforce", "Perforce client support", "no"); if (PHP_PERFORCE != "no") { if (PHP_PERFORCE == "yes" || PHP_PERFORCE == "shared") { PHP_PERFORCE = PHP_PHP_BUILD; } var cflags = "/DOS_NT /DCASE_INSENSITIVE "; //cflags += (PHP_DEBUG == "yes") ? "/MTd" : "/MT"; ADD_FLAG("LDFLAGS_PERFORCE", "/nodefaultlib:libcmt"); if (CHECK_HEADER_ADD_INCLUDE("clientapi.h", "CFLAGS_PERFORCE", PHP_PERFORCE + "\\include\\p4") && CHECK_LIB("libclient.lib", "perforce", PHP_PERFORCE + "\\lib") && CHECK_LIB("librpc.lib", "perforce", PHP_PERFORCE + "\\lib") && CHECK_LIB("libsupp.lib", "perforce", PHP_PERFORCE + "\\lib")) { EXTENSION("perforce", "perforce.cpp", PHP_PERFORCE_SHARED, cflags); AC_DEFINE("HAVE_PERFORCE", 1); } else { WARNING("perforce not enabled; libraries and headers not found"); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 6277 | Jon_Parise | The Windows version of the extension can now be built as a shared DLL. | ||
#2 | 6064 | Jon_Parise | Updating the Win32 build configuration file for the latest P4API layout. | ||
#1 | 4324 | Jon_Parise |
Adding Win32 support. This includes the addition of a config.w32 Win32 build file, a handful of ZTS fixes, the extraction of the PHPClientUser class (and its p4api header dependency) to a separate header file, and the removal of the p4api_version.h auto-generated file (which may return should I figure out how to generate it using JScript). |