* libgpiod: update test code
* libgpiod: create port file
* libgpiod: fix add_headerfiles
* libgpiod: add version defines
* libgpiod: print version
* libgpiod: fix version matching
* libgpiod: separate tools & fix program_invocation_name & version
* libgpiod: create on_load
* libgpiod: use before_build
* libgpiod: use add_defines
* libgpiod: use target:add
* libgpiod: add tools-common files
* libgpiod: ignore tools-common on its own
* libgpiod: add quotations around define program_invocation_name
* libgpiod: add configvar_check_csnippets
* libgpiod: make program_invocation_short_name same as program_invocation_name
* libgpiod: add quotations around GPIOD_VERSION_STR
* libgpiod: only get direct cxx files in bindings/cxx
* libgpiod: separate c and cxx bindings
* libgpiod: add options
* libgpiod: on_test use config
* libgpiod: test older version
* libgpiod: make `%[` & `%]` optional
* libgpiod: update test
* libgpiod: fix cxx test
* libgpiod: dont delete chip ptr
* libgpiod: set kind
* libgpiod: add patch for `v1.6.4`
* libgpiod: fix patch hash
* libgpiod: update patch
* libgpiod: set_languages("c89") & move deps
* libgpiod: use c99
* libgpiod: use C++11
* libgpiod: add io.replace
* libgpiod: update patch
* libgpiod: comment set_languages
* libgpiod: move add_includedirs
* libgpiod: set kind to shared if version under v1.6.4
* libgpiod: move includedirs
* libgpiod: remove `delete`
* libgpiod: add link
* libgpiod: use same methods for other deps
* libgpiod: remove libgpiod_cxx
* libgpiod: use add_deps
* libgpiod: add cxx17
* libgpiod: remove before_build
* libgpiod: readd addenv PATH
* libgpiod: test old version
* libgpiod: undo
* libgpiod: remove set config to shared for v1.6.4 static
* libgpiod: add target gpiodcxx
* libgpiod: remove duplicate before_build
* libgpiod: readd versions
* libgpiod: use c11
* libgpiod: use cxx11
* libgpiod: fix target name
* libgpiod: fix add_deps
* libgpiod: set target for tool's language to cxx11
* libsdl_ttf: add .zip download sources on Windows
sdl_ttf cannot be installed without using precompiled.
I think xmake should disable symlink extraction (there's the same problem with sfml)
```
=> download https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.20.2/SDL2_ttf-2.20.2.tar.gz .. failed
C:\Program Files\xmake\winenv\bin\7z x -y SDL2_ttf-2.20.2.tar.gz -oC:\Users\lynix\AppData\Local\Temp\.xmake\230918\_B21627892EB948108F44065483A74B70.tar
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive for archives:
1 file, 13161592 bytes (13 MiB)
Extracting archive: SDL2_ttf-2.20.2.tar.gz
--
Path = SDL2_ttf-2.20.2.tar.gz
Type = gzip
Headers Size = 10
Everything is Ok
Size: 42510336
Compressed: 13161592
C:\Program Files\xmake\winenv\bin\7z x -y C:\Users\lynix\AppData\Local\Temp\.xmake\230918\_B21627892EB948108F44065483A74B70.tar\SDL2_ttf-2.20.2.tar -osource.tmp
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive for archives:
1 file, 42510336 bytes (41 MiB)
Extracting archive: C:\Users\lynix\AppData\Local\Temp\.xmake\230918\_B21627892EB948108F44065483A74B70.tar\SDL2_ttf-2.20.2.tar
--
Path = C:\Users\lynix\AppData\Local\Temp\.xmake\230918\_B21627892EB948108F44065483A74B70.tar\SDL2_ttf-2.20.2.tar
Type = tar
Physical Size = 42510336
Headers Size = 800768
Code Page = UTF-8
ERROR: Can not create symbolic link : Le client ne dispose pas d'un privilège nécessaire. : source.tmp\SDL2_ttf-2.20.2\Xcode\macOS\SDL2.framework\Resources
ERROR: Can not create symbolic link : Le client ne dispose pas d'un privilège nécessaire. : source.tmp\SDL2_ttf-2.20.2\Xcode\macOS\SDL2.framework\Headers
ERROR: Can not create symbolic link : Le client ne dispose pas d'un privilège nécessaire. : source.tmp\SDL2_ttf-2.20.2\Xcode\macOS\SDL2.framework\SDL2
ERROR: Can not create symbolic link : Le client ne dispose pas d'un privilège nécessaire. : source.tmp\SDL2_ttf-2.20.2\Xcode\macOS\SDL2.framework\Versions\Current
Sub items Errors: 4
Archives with Errors: 1
Sub items Errors: 4
tar -xf C:\Users\lynix\AppData\Local\Temp\.xmake\230918\_B21627892EB948108F44065483A74B70.tar\SDL2_ttf-2.20.2.tar
SDL2_ttf-2.20.2/Xcode/macOS/SDL2.framework/Resources: Can't create '\\\\?\\C:\\Users\\lynix\\AppData\\Local\\.xmake\\cache\\packages\\2309\\l\\libsdl_ttf\\2.20.2\\source.tmp\\SDL2_ttf-2.20.2\\Xcode\\macOS\\SDL2.framework\\Resources'
SDL2_ttf-2.20.2/Xcode/macOS/SDL2.framework/Headers: Can't create '\\\\?\\C:\\Users\\lynix\\AppData\\Local\\.xmake\\cache\\packages\\2309\\l\\libsdl_ttf\\2.20.2\\source.tmp\\SDL2_ttf-2.20.2\\Xcode\\macOS\\SDL2.framework\\Headers'
SDL2_ttf-2.20.2/Xcode/macOS/SDL2.framework/SDL2: Can't create '\\\\?\\C:\\Users\\lynix\\AppData\\Local\\.xmake\\cache\\packages\\2309\\l\\libsdl_ttf\\2.20.2\\source.tmp\\SDL2_ttf-2.20.2\\Xcode\\macOS\\SDL2.framework\\SDL2'
SDL2_ttf-2.20.2/Xcode/macOS/SDL2.framework/Versions/Current: Can't create '\\\\?\\C:\\Users\\lynix\\AppData\\Local\\.xmake\\cache\\packages\\2309\\l\\libsdl_ttf\\2.20.2\\source.tmp\\SDL2_ttf-2.20.2\\Xcode\\macOS\\SDL2.framework\\Versions\\Current'
tar: Error exit delayed from previous errors.
error: ...modules\private\action\require\impl\actions\download.lua:213: cannot extract SDL2_ttf-2.20.2.tar.gz, maybe missing extractor or invalid package file!
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:921]:
[...modules\private\action\require\impl\actions\download.lua:213]: in function '_download'
[...modules\private\action\require\impl\actions\download.lua:325]:
=> download https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.20.2.tar.gz .. failed
we can also download these packages manually:
- https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.20.2/SDL2_ttf-2.20.2.tar.gz
- https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.20.2.tar.gz
to the local search directories:
- libsdl_ttf-2.20.2.tar.gz, SDL2_ttf-2.20.2.tar.gz
and we can run `xmake g --pkg_searchdirs=/xxx` to set the search directories.
error: @programdir\modules\private\async\runjobs.lua:256: ...modules\private\action\require\impl\actions\download.lua:378:
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:921]:
[...modules\private\action\require\impl\actions\download.lua:378]: in function 'catch'
[@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
[...modules\private\action\require\impl\actions\download.lua:298]:
[...modules\private\action\require\impl\install_packages.lua:472]: in function 'jobfunc'
[@programdir\modules\private\async\runjobs.lua:232]:
stack traceback:
[C]: in function 'error'
@programdir\core\base\os.lua:921: in function 'os.raiselevel'
(...tail calls...)
@programdir\modules\private\async\runjobs.lua:256: in field 'catch'
@programdir\core\sandbox\modules\try.lua:123: in global 'try'
@programdir\modules\private\async\runjobs.lua:218: in upvalue 'cotask'
@programdir\core\base\scheduler.lua:404: in function <@programdir\core\base\scheduler.lua:397>
```
* Update xmake.lua