mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-19 02:23:09 +00:00
Windows build (#29)
* Added build instruction updates for Windows to README * Added composer to requirements
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
$source = "php://stdin";
|
||||
if (isset($argv[1])) {
|
||||
$source = $argv[1];
|
||||
}
|
||||
|
||||
$input_lines = file($source);
|
||||
foreach ($input_lines as $line) {
|
||||
// Strip AWS_EXTERN_C_BEGIN/END
|
||||
if (preg_match('/AWS_EXTERN_C/', $line)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Strip macros/includes
|
||||
if (preg_match('/^#/', $line)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Strip visibility attributes
|
||||
$line = str_replace('AWS_CRT_API ', '', $line);
|
||||
|
||||
echo($line);
|
||||
}
|
||||
Reference in New Issue
Block a user