ADD_FLAG("CFLAGS", '/I "' + php_usual_include_suspects + '" ');
ADD_FLAG("LDFLAGS", '/libpath:"' + php_usual_lib_suspects + '" ');
-// Poke around for some headers
-function probe_basic_headers()
-{
- var p;
-
- if (PHP_PHP_BUILD != "no") {
- php_usual_include_suspects += ";" + PHP_PHP_BUILD + "\\include";
- php_usual_lib_suspects += ";" + PHP_PHP_BUILD + "\\lib";
- }
-}
-
-function add_extra_dirs()
-{
- var path, i, f;
-
- if (PHP_EXTRA_INCLUDES.length) {
- path = PHP_EXTRA_INCLUDES.split(';');
- for (i = 0; i < path.length; i++) {
- f = FSO.GetAbsolutePathName(path[i]);
- if (FSO.FolderExists(f)) {
- ADD_FLAG("CFLAGS", '/I "' + f + '" ');
- }
- }
- }
- if (PHP_EXTRA_LIBS.length) {
- path = PHP_EXTRA_LIBS.split(';');
- for (i = 0; i < path.length; i++) {
- f = FSO.GetAbsolutePathName(path[i]);
- if (FSO.FolderExists(f)) {
- if (VS_TOOLSET && VCVERS <= 1200 && f.indexOf(" ") >= 0) {
- ADD_FLAG("LDFLAGS", '/libpath:"\\"' + f + '\\"" ');
- } else {
- ADD_FLAG("LDFLAGS", '/libpath:"' + f + '" ');
- }
- }
- }
- }
-
-}
-
probe_basic_headers();
add_extra_dirs();
ADD_FLAG("CFLAGS", '/I "' + php_usual_include_suspects + '" ');\r
ADD_FLAG("LDFLAGS", '/libpath:"\\"' + php_usual_lib_suspects + '\\"" ');\r
\r
-// Poke around for some headers\r
-function probe_basic_headers()\r
-{\r
- var p;\r
-\r
- if (PHP_PHP_BUILD != "no") {\r
- php_usual_include_suspects += ";" + PHP_PHP_BUILD + "\\include";\r
- php_usual_lib_suspects += ";" + PHP_PHP_BUILD + "\\lib";\r
- }\r
-}\r
-\r
-function add_extra_dirs()\r
-{\r
- var path, i, f;\r
-\r
- if (PHP_EXTRA_INCLUDES.length) {\r
- path = PHP_EXTRA_INCLUDES.split(';');\r
- for (i = 0; i < path.length; i++) {\r
- f = FSO.GetAbsolutePathName(path[i]);\r
- if (FSO.FolderExists(f)) {\r
- ADD_FLAG("CFLAGS", '/I "' + f + '" ');\r
- }\r
- }\r
- }\r
- if (PHP_EXTRA_LIBS.length) {\r
- path = PHP_EXTRA_LIBS.split(';');\r
- for (i = 0; i < path.length; i++) {\r
- f = FSO.GetAbsolutePathName(path[i]);\r
- if (FSO.FolderExists(f)) {\r
- if (VCVERS <= 1200 && f.indexOf(" ") >= 0) {\r
- ADD_FLAG("LDFLAGS", '/libpath:"\\"' + f + '\\"" ');\r
- } else {\r
- ADD_FLAG("LDFLAGS", '/libpath:"' + f + '" ');\r
- }\r
- }\r
- }\r
- }\r
-\r
-}\r
-\r
probe_basic_headers();\r
add_extra_dirs();\r
\r
STDOUT.WriteLine("Build dir: " + get_define('BUILD_DIR'));\r
STDOUT.WriteLine("PHP Core: " + get_define('PHPDLL') + " and " + get_define('PHPLIB'));\r
\r
-\r
/* XXX inspect this for other toolsets */\r
if (VS_TOOLSET && VCVERS == 1200) {\r
AC_DEFINE('ZEND_DVAL_TO_LVAL_CAST_OK', 1);\r
DEFINE("PHP_BUILD", PHP_PHP_BUILD);
}
+// Poke around for some headers
+function probe_basic_headers()
+{
+ var p;
+
+ if (PHP_PHP_BUILD != "no") {
+ php_usual_include_suspects += ";" + PHP_PHP_BUILD + "\\include";
+ php_usual_lib_suspects += ";" + PHP_PHP_BUILD + "\\lib";
+ }
+}
+
+function add_extra_dirs()
+{
+ var path, i, f;
+
+ if (PHP_EXTRA_INCLUDES.length) {
+ path = PHP_EXTRA_INCLUDES.split(';');
+ for (i = 0; i < path.length; i++) {
+ f = FSO.GetAbsolutePathName(path[i]);
+ if (FSO.FolderExists(f)) {
+ ADD_FLAG("CFLAGS", '/I "' + f + '" ');
+ }
+ }
+ }
+ if (PHP_EXTRA_LIBS.length) {
+ path = PHP_EXTRA_LIBS.split(';');
+ for (i = 0; i < path.length; i++) {
+ f = FSO.GetAbsolutePathName(path[i]);
+ if (FSO.FolderExists(f)) {
+ if (VS_TOOLSET && VCVERS <= 1200 && f.indexOf(" ") >= 0) {
+ ADD_FLAG("LDFLAGS", '/libpath:"\\"' + f + '\\"" ');
+ } else {
+ ADD_FLAG("LDFLAGS", '/libpath:"' + f + '" ');
+ }
+ }
+ }
+ }
+
+}
+