Commit Graph
116 Commits
Author SHA1 Message Date
Justin Boswell 5eaaa70cf1 Added aws_error* functions to native extension (#12)
* Added aws_crt_error_str and test, removed awscrt_version test function

* Added aws_crt_error_name

* Added aws_crt_error_debug_str

* Use PHP's own tools to generate arginfo

* Only re-generate arginfo on php7+

* Added a definition for ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX for php5

* Ignore generated files for clang-format
2021-02-24 10:16:32 -08:00
Justin Boswell 778eafcf05 Initial skeleton to make extension support CRT FFI API (#11)
* Fixed build issues with static CRT, separated ffi target

* Fixed makefile for test-ffi target
2021-02-22 15:55:15 -08:00
Justin Boswell c30c1486fe Organized modules, added indirection for FFI vs extension loading (#10)
* mv src -> ext, lib -> src to be more in line with PHP module expectations

* Fixed dependency for ffi test

* Fixed path in format-check to C source

* CRT will now try the extension first, then FFI
2021-02-16 10:31:42 -08:00
Justin Boswell aee57a929d Added test-ffi target, use it in CI (#9)
* Added test-ffi target, use it in CI

* Added clang-format config, fixed RETURN_STRING API mismatch

* Skip installing php and packages on the PHP docker images

* Removed al2 job that was never going to work, and compiler tests

* Fixed basic test for extension loading

* Cleaned up lib structure, fixed tests

* use test-ci target to conditionally test in GitHub

* Use v0.8.1 of builder
2021-02-15 09:47:32 -08:00
Justin Boswell 7b5ccfd55a Unit tests and I/O bindings (#8)
* Added composer config, added IO/error tests using phpunit

* Added ApiGen doc comments

* Added test to ensure last_error is not set from loading up the CRT
2021-02-09 10:26:41 -08:00
Justin Boswell 3fed547551 Imported CRT FFI lib (#7)
* Added php7 library skeleton

* Re-worked Makefile.frag to use paths correctly

* Added gitignore for lib

* clang-format

* Remove symlinked api.h

* Copy api.h into lib/ as part of build
2021-01-29 13:44:55 -08:00
Justin Boswell c6fac2d99f Added recursive clone instructions 2021-01-27 11:27:30 -08:00
Justin Boswell ab9a841a71 Updated readme with build instructions 2021-01-27 11:13:30 -08:00
Justin Boswell 0b1b368a8f Imported aws-crt-ffi as submodule (#6)
* Removed direct submodules

* Added aws-crt-ffi as submodule

*  updated makefile to build aws-crt-ffi
2021-01-22 09:35:39 -08:00
Justin Boswell f090511213 Initial Tests & CI (#5)
* Added awscrt_version() and test for it

* Added builder.json for CI

* Added github actions

* Added format-check.sh

* Force php5.6 on ubuntu

* Updated submodules
2021-01-13 13:33:30 -08:00
Justin Boswell 20309ea977 added phpize to readme build steps 2021-01-12 22:43:42 +00:00
Justin Boswell af799ffab3 Updated README (#4) 2020-11-17 15:11:34 -08:00
Justin Boswell 2934fc63fe Added CRT submodules, updated autoconf (#3)
* Added CRT submodules

* Added automake config

* Use Makefile.frag
2020-10-27 14:26:35 -07:00
Justin Boswell ee1448f560 Initial skeleton of extension (#2)
* Added .gitignore

* Added initial attempt at autoconf config

* Skeleton C source
2020-10-22 13:55:27 -07:00
KaibaLopez faa2348d47 issue templates and stale bot action 2020-09-29 13:01:08 -07:00
Amazon GitHub Automation 628760c7a7 Initial commit 2020-09-23 15:43:36 -07:00