mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 01:57:13 +00:00
fix win build (#72)
This commit is contained in:
@@ -51,6 +51,13 @@ C:\php-sdk\php-<version>\vc15\x64\php-src
|
|||||||
$ nmake test-awscrt
|
$ nmake test-awscrt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note: for VS2017, Cmake will default to build for Win32, refer to [here](https://cmake.org/cmake/help/latest/generator/Visual%20Studio%2015%202017.html). If you are building for x64 php, you can set environment variable as follow to let cmake pick x64 compiler.
|
||||||
|
|
||||||
|
```bat
|
||||||
|
set CMAKE_GENERATOR=Visual Studio 15 2017
|
||||||
|
set CMAKE_GENERATOR_PLATFORM=x64
|
||||||
|
```
|
||||||
|
|
||||||
## Debugging
|
## Debugging
|
||||||
Using [PHPBrew](https://github.com/phpbrew/phpbrew) to build/manage multiple versions of PHP is helpful.
|
Using [PHPBrew](https://github.com/phpbrew/phpbrew) to build/manage multiple versions of PHP is helpful.
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ if (PHP_AWSCRT != "no") {
|
|||||||
ADD_MAKEFILE_FRAGMENT();
|
ADD_MAKEFILE_FRAGMENT();
|
||||||
DEFINE('CFLAGS_AWSCRT', '/I ' + configure_module_dirname + '\\build\\install\\include');
|
DEFINE('CFLAGS_AWSCRT', '/I ' + configure_module_dirname + '\\build\\install\\include');
|
||||||
DEFINE('LIBS_AWSCRT', '/LIBPATH:' + configure_module_dirname + '\\build\\install\\lib ' +
|
DEFINE('LIBS_AWSCRT', '/LIBPATH:' + configure_module_dirname + '\\build\\install\\lib ' +
|
||||||
'aws-crt-ffi.lib aws-c-auth.lib aws-c-http.lib aws-c-io.lib aws-c-cal.lib aws-c-compression.lib aws-c-common.lib ' +
|
'aws-crt-ffi.lib aws-c-auth.lib aws-c-http.lib aws-c-io.lib aws-c-cal.lib aws-c-compression.lib aws-checksums.lib aws-c-common.lib ' +
|
||||||
'ncrypt.lib Secur32.lib Crypt32.lib Shlwapi.lib');
|
'ncrypt.lib Secur32.lib Crypt32.lib Shlwapi.lib');
|
||||||
DEFINE('AWSCRT_DIR', configure_module_dirname);
|
DEFINE('AWSCRT_DIR', configure_module_dirname);
|
||||||
EXTENSION("awscrt", "ext\\awscrt.c", PHP_AWSCRT_SHARED);
|
EXTENSION("awscrt", "ext\\awscrt.c", PHP_AWSCRT_SHARED);
|
||||||
|
|||||||
Reference in New Issue
Block a user