mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 01:57:13 +00:00
more fix
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
# ignore generated files
|
# ignore generated files
|
||||||
ext/api.h
|
ext/api.h
|
||||||
ext/*_arginfo.h
|
ext/*_arginfo.h
|
||||||
src/api.h
|
|
||||||
|
|||||||
+2
-6
@@ -55,12 +55,8 @@ ifeq ($(GENERATE_STUBS),1)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# transform/install api.h from FFI lib
|
# transform/install api.h from FFI lib
|
||||||
src/api.h: crt/aws-crt-ffi/src/api.h
|
ext/api.h : crt/aws-crt-ffi/src/api.h
|
||||||
php gen_api.php crt/aws-crt-ffi/src/api.h > src/api.h
|
php gen_api.php crt/aws-crt-ffi/src/api.h > ext/api.h
|
||||||
|
|
||||||
# install api.h to ext/ as well
|
|
||||||
ext/api.h : src/api.h
|
|
||||||
cp -v src/api.h ext/api.h
|
|
||||||
|
|
||||||
ext/php_aws_crt.h: ext/awscrt_arginfo.h ext/api.h
|
ext/php_aws_crt.h: ext/awscrt_arginfo.h ext/api.h
|
||||||
|
|
||||||
|
|||||||
+2
-6
@@ -22,12 +22,8 @@ $(BUILD_DIR)\php_awscrt.dll: $(AWSCRT_DIR)\ext\awscrt.c
|
|||||||
$(AWSCRT_DIR)\ext\awscrt.c: $(AWSCRT_DIR)\build\libaws-crt-ffi.lib $(AWSCRT_DIR)\ext\api.h $(AWSCRT_DIR)\ext\awscrt_arginfo.h
|
$(AWSCRT_DIR)\ext\awscrt.c: $(AWSCRT_DIR)\build\libaws-crt-ffi.lib $(AWSCRT_DIR)\ext\api.h $(AWSCRT_DIR)\ext\awscrt_arginfo.h
|
||||||
|
|
||||||
# transform\install api.h from FFI lib
|
# transform\install api.h from FFI lib
|
||||||
$(AWSCRT_DIR)\src\api.h: $(AWSCRT_DIR)\crt\aws-crt-ffi\src\api.h
|
$(AWSCRT_DIR)\ext\api.h: $(AWSCRT_DIR)\crt\aws-crt-ffi\src\api.h
|
||||||
php $(AWSCRT_DIR)\gen_api.php $(AWSCRT_DIR)\crt\aws-crt-ffi\src\api.h > $(AWSCRT_DIR)\src\api.h
|
php $(AWSCRT_DIR)\gen_api.php $(AWSCRT_DIR)\crt\aws-crt-ffi\src\api.h > $(AWSCRT_DIR)\ext\api.h
|
||||||
|
|
||||||
# install api.h to ext/ as well
|
|
||||||
$(AWSCRT_DIR)\ext\api.h : $(AWSCRT_DIR)\src\api.h
|
|
||||||
copy $(AWSCRT_DIR)\src\api.h $(AWSCRT_DIR)\ext\api.h
|
|
||||||
|
|
||||||
# Use PHPUnit to run tests
|
# Use PHPUnit to run tests
|
||||||
test-awscrt: install $(AWSCRT_DIR)\src\api.h $(BUILD_DIR)\php_awscrt.dll
|
test-awscrt: install $(AWSCRT_DIR)\src\api.h $(BUILD_DIR)\php_awscrt.dll
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ doc_ext='(md|json|html|dot|graphml|png|gn|sha1|css|rst|)'
|
|||||||
special_docs='(LICENSE*|NOTICE|changelog.txt|CHANGELOG|THIRD-PARTY|README*|readme|METADATA|CONTRIBUTORS|UPDATING|doc.config|THIRD-PARTY-LICENSES.txt)'
|
special_docs='(LICENSE*|NOTICE|changelog.txt|CHANGELOG|THIRD-PARTY|README*|readme|METADATA|CONTRIBUTORS|UPDATING|doc.config|THIRD-PARTY-LICENSES.txt)'
|
||||||
special_tests='(ci-test.sh|format-check.sh|run_tests*|sanitizer-blacklist.txt|run-clang-tidy.sh|benchmark-build-run.sh|break-tests.sh|generate-coverage.sh|test.xml)'
|
special_tests='(ci-test.sh|format-check.sh|run_tests*|sanitizer-blacklist.txt|run-clang-tidy.sh|benchmark-build-run.sh|break-tests.sh|generate-coverage.sh|test.xml)'
|
||||||
special_src='(gen_api.php|gen_stub.php|CMakeLists.txt|post.sh|postun.sh|Makefile*|build-buildspec.sh|build-deps.sh|objects.txt|go.*|BUILD*|DEPS|install_and_run.sh|codemod.sh|requirements.txt)'
|
special_src='(gen_api.php|gen_stub.php|CMakeLists.txt|post.sh|postun.sh|Makefile*|build-buildspec.sh|build-deps.sh|objects.txt|go.*|BUILD*|DEPS|install_and_run.sh|codemod.sh|requirements.txt)'
|
||||||
skip_files='(package.xml*|prepare_release.sh|codereview.settings|*.o|*.a|*.obj|*.lib|break-tests-android.sh|whitespace.txt|prepare_package_xml.sh|crypto_test_data.cc|*.pdf|*.svg|*.docx|cbmc-proof.txt|codecov*|litani*|*.toml|module.modulemap)'
|
skip_files='(package.xml*|prepare_release.sh|codereview.settings|*.o|*.a|*.obj|*.lib|break-tests-android.sh|whitespace.txt|prepare_package_xml.sh|crypto_test_data.cc|*.pdf|*.svg|*.docx|cbmc-proof.txt|codecov*|litani*|*.toml|module.modulemap|cleanup.sh)'
|
||||||
|
|
||||||
special_scripts='(awscrt.stub.php)'
|
special_scripts='(awscrt.stub.php)'
|
||||||
|
|
||||||
@@ -136,6 +136,12 @@ do
|
|||||||
echo '</dir>'
|
echo '</dir>'
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
# skip the src directory as it is not part of the native extension
|
||||||
|
if [[ ${a} == 'src' ]]
|
||||||
|
then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -f ${a} ]]
|
if [[ -f ${a} ]]
|
||||||
then process_file "${a}"
|
then process_file "${a}"
|
||||||
else process_dir "${a}"
|
else process_dir "${a}"
|
||||||
|
|||||||
Reference in New Issue
Block a user