summaryrefslogtreecommitdiff
path: root/win32/build
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-11-11 00:38:37 +0100
committerAnatol Belski <ab@php.net>2014-11-11 00:38:37 +0100
commitd509e79d70bfe43c782437b0dbd7dee1501acb6a (patch)
tree71bc2babed5b0655d582e5a43e55d8d3483b3165 /win32/build
parent64c081f347b177d11b1083a6f13efa744884ff98 (diff)
downloadphp-git-d509e79d70bfe43c782437b0dbd7dee1501acb6a.tar.gz
further fixes to win build
- fixed pdb generation with vs - made object-out-dir to use an absolute path, that fixes path issues with x86/x64 and nmake snap
Diffstat (limited to 'win32/build')
-rw-r--r--win32/build/Makefile7
-rw-r--r--win32/build/config.w3213
-rw-r--r--win32/build/config.w32.phpize.in13
-rw-r--r--win32/build/confutils.js25
4 files changed, 27 insertions, 31 deletions
diff --git a/win32/build/Makefile b/win32/build/Makefile
index 90f02d2494..d6a22c162c 100644
--- a/win32/build/Makefile
+++ b/win32/build/Makefile
@@ -158,19 +158,14 @@ build-dist: $(BUILD_DIR)\deplister.exe
$(BUILD_DIR)\php.exe -d date.timezone=UTC -n -dphar.readonly=0 win32/build/mkdist.php "$(BUILD_DIR)" "$(PHP_BUILD)" "$(PHPDLL)" "$(SAPI_TARGETS)" "$(EXT_TARGETS) $(PHP_EXTRA_DIST_FILES)" "$(PECL_TARGETS) $(PECL_EXTRA_DIST_FILES)" "$(SNAPSHOT_TEMPLATE)"
cd $(BUILD_DIR)\php-$(PHP_VERSION_STRING)
-$(ZIP) -9 -q -r ..\php-$(PHP_VERSION_STRING)$(PHP_ZTS_ARCHIVE_POSTFIX)-Win32-$(PHP_COMPILER_SHORT)-$(PHP_ARCHITECTURE).zip .
- cd ..\..
cd $(BUILD_DIR)\pecl-$(PHP_VERSION_STRING)
-$(ZIP) -9 -q -r ..\pecl-$(PHP_VERSION_STRING)$(PHP_ZTS_ARCHIVE_POSTFIX)-Win32-$(PHP_COMPILER_SHORT)-$(PHP_ARCHITECTURE).zip .
- cd ..\..
cd $(BUILD_DIR)\php-test-pack-$(PHP_VERSION_STRING)
-$(ZIP) -9 -q -r ..\php-test-pack-$(PHP_VERSION_STRING).zip .
- cd ..\..
cd $(BUILD_DIR)
-$(ZIP) -9 -q php-debug-pack-$(PHP_VERSION_STRING)$(PHP_ZTS_ARCHIVE_POSTFIX)-Win32-$(PHP_COMPILER_SHORT)-$(PHP_ARCHITECTURE).zip *.pdb
- cd
- cd
-$(ZIP) -9 -q -r php-devel-pack-$(PHP_VERSION_STRING)$(PHP_ZTS_ARCHIVE_POSTFIX)-Win32-$(PHP_COMPILER_SHORT)-$(PHP_ARCHITECTURE).zip $(BUILD_DIR_DEV_NAME)
- cd ..\..
+ cd $(BUILD_DIR)
dist: all build-dist
snap: build-snap build-devel build-dist
diff --git a/win32/build/config.w32 b/win32/build/config.w32
index 43ff038062..85a96f1694 100644
--- a/win32/build/config.w32
+++ b/win32/build/config.w32
@@ -27,18 +27,7 @@ toolset_setup_project_tools();
// stick objects somewhere outside of the source tree
ARG_ENABLE('object-out-dir', 'Alternate location for binary objects during build', '');
-if (PHP_OBJECT_OUT_DIR.length) {
- PHP_OBJECT_OUT_DIR = FSO.GetAbsolutePathName(PHP_OBJECT_OUT_DIR);
- if (!FSO.FolderExists(PHP_OBJECT_OUT_DIR)) {
- ERROR('you chosen output directory ' + PHP_OBJECT_OUT_DIR + ' does not exist');
- }
- PHP_OBJECT_OUT_DIR += '\\';
-} else if (X64) {
- if (!FSO.FolderExists("x64")) {
- FSO.CreateFolder("x64");
- }
- PHP_OBJECT_OUT_DIR = 'x64\\';
-}
+object_out_dir_option_handle();
ARG_ENABLE('debug', 'Compile with debugging symbols', "no");
ARG_ENABLE('debug-pack', 'Release binaries with external debug symbols (--enable-debug must not be specified)', 'no');
diff --git a/win32/build/config.w32.phpize.in b/win32/build/config.w32.phpize.in
index e2860e3a96..52947c1ace 100644
--- a/win32/build/config.w32.phpize.in
+++ b/win32/build/config.w32.phpize.in
@@ -27,18 +27,7 @@ toolset_setup_project_tools();
// stick objects somewhere outside of the source tree
ARG_ENABLE('object-out-dir', 'Alternate location for binary objects during build', '');
-if (PHP_OBJECT_OUT_DIR.length) {
- PHP_OBJECT_OUT_DIR = FSO.GetAbsolutePathName(PHP_OBJECT_OUT_DIR);
- if (!FSO.FolderExists(PHP_OBJECT_OUT_DIR)) {
- ERROR('you chosen output directory ' + PHP_OBJECT_OUT_DIR + ' does not exist');
- }
- PHP_OBJECT_OUT_DIR += '\\';
-} else if (X64) {
- if (!FSO.FolderExists("x64")) {
- FSO.CreateFolder("x64");
- }
- PHP_OBJECT_OUT_DIR = 'x64\\';
-}
+object_out_dir_option_handle();
ARG_ENABLE('debug', 'Compile with debugging symbols', "no");
ARG_ENABLE('debug-pack', 'Release binaries with external debug symbols (--enable-debug must not be specified)', 'no');
diff --git a/win32/build/confutils.js b/win32/build/confutils.js
index bad5f1322e..c73ae6b2fd 100644
--- a/win32/build/confutils.js
+++ b/win32/build/confutils.js
@@ -1439,7 +1439,10 @@ function ADD_SOURCES(dir, file_list, target, obj_dir)
sub_build += d;
- DEFINE(bd_flags_name, " /Fp" + sub_build + " /FR" + sub_build + " ");
+ DEFINE(bd_flags_name, "/Fp" + sub_build + " /FR" + sub_build + " ");
+ if (VS_TOOLSET) {
+ ADD_FLAG(bd_flags_name, "/Fd" + sub_build);
+ }
for (i in file_list) {
src = file_list[i];
@@ -2617,3 +2620,23 @@ function toolset_setup_build_mode()
}
}
+function object_out_dir_option_handle()
+{
+ if (PHP_OBJECT_OUT_DIR.length) {
+ PHP_OBJECT_OUT_DIR = FSO.GetAbsolutePathName(PHP_OBJECT_OUT_DIR);
+ if (!FSO.FolderExists(PHP_OBJECT_OUT_DIR)) {
+ ERROR('you chosen output directory ' + PHP_OBJECT_OUT_DIR + ' does not exist');
+ }
+ PHP_OBJECT_OUT_DIR += '\\';
+ } else {
+ PHP_OBJECT_OUT_DIR = FSO.GetAbsolutePathName(".");
+
+ if (X64) {
+ PHP_OBJECT_OUT_DIR += '\\x64\\';
+ if (!FSO.FolderExists(PHP_OBJECT_OUT_DIR)) {
+ FSO.CreateFolder(PHP_OBJECT_OUT_DIR);
+ }
+ }
+ }
+}
+