Commit Graph

33 Commits

Author SHA1 Message Date
darobs
c78caf0b34 win,build: keep cwd when setting build environment
Fixes: https://github.com/libuv/libuv/issues/1545
PR-URL: https://github.com/libuv/libuv/pull/1546
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
2017-09-20 17:37:50 +02:00
Saúl Ibarra Corretgé
01b23314cc win,build: fix building from Windows SDK or VS console
Introduced in
2f6d4b4b58 and accidentally undone in
19c896dd08.

PR-URL: https://github.com/libuv/libuv/pull/1415
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Refael Ackermann <refack@gmail.com>
2017-07-22 18:22:40 +02:00
Refael Ackermann
8807fd371d win,build: fix appveyor properly
Refs: https://github.com/appveyor/ci/issues/1649
Refs: https://github.com/libuv/libuv/pull/1284
Refs: https://github.com/libuv/libuv/pull/1405
PR-URL: https://github.com/libuv/libuv/pull/1418
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2017-07-13 14:18:16 -04:00
Refael Ackermann
87ae1b490e build: workaround AppVeyor quirk
This commit fixes the AppVeyor issues seen while trying to
release v1.13.0 on Windows.

Refs: https://github.com/libuv/libuv/issues/1397
Refs: https://github.com/libuv/libuv/pull/1284
PR-URL: https://github.com/libuv/libuv/pull/1405
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2017-07-06 18:33:18 -04:00
Refael Ackermann
19c896dd08 win,build: support building with VS2017
Detection is attempted with `vswhere`.

PR-URL: https://github.com/libuv/libuv/pull/1284
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2017-07-04 22:36:50 +02:00
João Reis
11e93aaf53 build,win: rename platform to msbuild_platform
This variable is used to select 32 or 64 bit builds when invoking
MSBuild. The Visual C++ Build Tools also use the `platform` variable
name, resulting in a conflict when vcvarsall.bat is called. Thus, it
is necessary to rename it.

Ref: https://github.com/libuv/libuv/issues/839
PR-URL: https://github.com/libuv/libuv/pull/868
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2016-05-12 19:14:12 +02:00
Saúl Ibarra Corretgé
af4c489e0a build,win: print the Visual Studio version in use
PR-URL: https://github.com/libuv/libuv/pull/698
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2016-01-26 12:31:16 +01:00
Jason Williams
b8354c19d2 windows: Add VS2015 support to vcbuild.bat
gyp supports MSVC 2015, added a check for %VS140COMNTOOLS% and set
GYP_MSVS_VERSION=2015.

PR-URL: https://github.com/libuv/libuv/pull/341
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2015-05-19 11:24:16 +02:00
Stephen von Takach
5abb33dd7b build: update the location of gyp
Google moved the repository

PR-URL: https://github.com/libuv/libuv/pull/240
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2015-03-03 10:13:14 +01:00
Saúl Ibarra Corretgé
570caf04db Merge branch 'v0.10'
Conflicts:
	ChangeLog
	build.mk
	src/unix/darwin.c
	src/unix/getaddrinfo.c
	src/version.c
	test/test-list.h
2014-06-25 10:31:21 +02:00
Jay Satiro
90e4afd4fa windows: fix PYTHON environment variable usage
- (README.md) The PYTHON environment variable should point to python.exe
not the python directory.

- (vcvars.bat) The PYTHON environment variable should be quoted on
expansion in case there's spaces in the path.
2014-06-11 23:01:32 +02:00
Timothy J Fontaine
4a67d8cc0e build: add vc-set-2012 label 2014-04-14 10:07:33 -07:00
Marc Schlaich
cd6db8bbef build, windows: do not fail on Windows SDK Prompt
Backported from master 2f6d4b4
2014-03-20 23:15:06 +01:00
Marc Schlaich
aa2fbb364a build, windows: fixed x64 configuration issue
Backported from master 8010bf9
2014-03-20 23:11:11 +01:00
Marc Schlaich
2f6d4b4b58 build, windows: do not fail on Windows SDK Prompt 2014-02-26 16:50:43 +01:00
Marc Schlaich
8010bf9dd2 build, windows: fixed x64 configuration issue 2014-02-18 10:02:05 +01:00
Brian White
b738d315fb build: skip vcvarsall if already set up
Without this, running vcbuild repeatedly for some time will cause errors with msbuild saying the command line is too long (due to concatenation happening in vcvarsall).
2014-02-10 23:13:35 +01:00
Fedor Indutny
7301d21e46 gyp: qualify library variable
Use prefixed variable name for better control over dependencies.
2014-02-05 21:29:25 +04:00
Sean Farrell
a762934aa8 build: add support for VS2013 2013-12-17 09:15:16 +01:00
Geert Jansen
991409e461 build: fix windows smp build with gyp
Gyp will try a parallel build if it detect the system has >1 processor.
This functionality depends on the Python "multiprocessing" package. The
multiprocessing package on Windows requires that the top-level module is
importable as a module, see:

  http://docs.python.org/2/library/multiprocessing.html#windows

This fixes issue #984.

This is a back-port of commit 2445467 from the master branch.
2013-11-05 14:32:45 +01:00
Geert Jansen
2445467810 build: fix windows smp build with gyp
Gyp will try a parallel build if it detect the system has >1 processor.
This functionality depends on the Python "multiprocessing" package. The
multiprocessing package on Windows requires that the top-level module is
importable as a module, see:

  http://docs.python.org/2/library/multiprocessing.html#windows

This fixes issue #984.
2013-11-05 14:28:10 +01:00
Nicholas Vavilov
bc5fa794b9 build: add support for Visual Studio 2012
Closes #722
2013-04-10 16:13:32 +02:00
Marc Schlaich
0ad46bdb56 build, windows: return an error code on failure 2013-02-28 16:18:54 +01:00
Marc Schlaich
85124d7eb5 build, windows: allow override of python executable
Fixes #723.
2013-02-27 19:26:47 +01:00
Marc Schlaich
ce1a266c05 build: fix misleading vcbuild.bat error message 2013-02-25 16:01:55 +01:00
Saúl Ibarra Corretgé
5fa690397a win: Avoid using subversion to download gyp 2013-02-06 23:03:09 +01:00
saghul
61ecb3415d win: support compilation with Visual Studio 2008 2012-10-23 22:55:25 +02:00
Shannen Saez
8afd71a128 windows: fix vcbuild.bat issue
gyp_uv was complaining because it never receives a value for which type
of library to build (static vs shared). This makes vcbuild.bat set the
default to build a static library.
2012-09-26 13:41:19 +02:00
Luigi Grilli
5bfb7c917b windows: build system improvements
* Add shared/static library option
* Add x86/x64 target option
* Improve Visual Studio detection
* Set GYP_MSVS_VERSION to pick VS2010 over VS2008

Closes GH-504
Closes GH-514
2012-09-21 00:53:55 +02:00
Bert Belder
7b83b99fdc Windows: try to set up vc environment when not running from vs command prompt 2012-01-31 14:28:21 +01:00
Igor Zinkovsky
e954b4cd99 merge create_msvs_files.bat and vcbuild.bat into vcbuild.bat 2011-08-26 03:15:54 -07:00
Igor Zinkovsky
7cafd8b105 update vcbuild.bat with correct sln file 2011-08-15 14:48:52 -07:00
Igor Zinkovsky
da4e864684 vcbuild.bat for building libuv with msbuild 2011-08-13 12:30:32 -07:00