summaryrefslogtreecommitdiffstats
path: root/profile
Commit message (Collapse)AuthorAgeFilesLines
* Add meson as a secondary build systemRyan Lucia2024-04-201-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will bring back a first-party buildsystem for MSVC after the previous solution https://github.com/libass/libass-msvc was retired and make it easier to use libass as a subproject in other meson projects. It does not currently support all of our utilities nor testing and fuzzing infrastructure and x86_32 assembly is always built in PIC mode. Due to meson deficiencies shared libraries lack symbol export control and it is not possible to build x32 assembly. However, for packaging and downstream use it is feature complete on Windows and static-only builds are sufficient for subproject use on any platform, so it brings a net positive and keeping this level of support up alongside autotools is expected to be barely any effort. And ofc future meson versions and patches to this build setup might improve it further. The port was initially brought up by Ryan Lucia (CoffeeFlux) and later further adapted and polished for merge by arch1t3cht and torque, but several more people contributed bits and pieces. They are listed in the following. Reviewed-by: Eli Schwartz <eschwartz93@gmail.com> Reviewed-by: Oneric <oneric@oneric.stub> Co-authored-by: arch1t3cht <arch1t3cht@gmail.com> Co-authored-by: torque <torque@users.noreply.github.com> Co-authored-by: Luni-4 <luni-4@hotmail.it> Co-authored-by: Funami580 <Funami580@users.noreply.github.com> Co-authored-by: woclass <5158738+inkydragon@users.noreply.github.com> Co-authored-by: line0 <line0@inbox.lv> Co-authored-by: Myaamori <myaamori1993@gmail.com> Co-authored-by: Xavier Claessens <xavier.claessens@collabora.com>
* Switch to non-recursive MakefileOneric2022-05-121-7/+0
| | | | | | | | | | | | | | Non-recursive Makefiles allow better and more robust automatic dependency resolution and higher parallelism for shorter build-times. This change keeps all locations of the non-installed targets unchanged for minimal firction. Calling make from subdirectories no longer works, but instead the specific build targets can be invoked directly from the toplevel. If we bumped the required Automake version to 1.13+, the library fragment could use %reldir% or %D% to be unaffected by potential future directory moves, but it is unlikely we'll ever change the location or name of the libass directory.
* Avoid passing NULL to printf's %s if argc == 0Oneric2022-05-071-1/+2
| | | | This is undefined behaviour even if most libcs handle it gracefully.
* profile, test: set storage size before renderingOneric2022-05-071-0/+1
| | | | | | | | | | | | | | As programs provided with the library's source code they also serve as examples for how to correctly use the API, which usually means setting a storage size. compare already sets the storage size. profile can continue using a fixed size, it never outputs the rendering. test already had issues before if either the guessed storage size was incorrect or the frame size didn't match the intended aspect ratio. To fix both, add new optional arguments for storage and frame size.
* Fix embedded and memory fontsOneric2021-04-221-0/+1
| | | | | | | | | | | Previously only both only worked when ass_set_fonts was called after all embedded and memory fonts were already added. Especially for embedded fonts this meant it won't work for most users, except mpv, including our own utilities, even if extract_fonts was set. Now that it works, enable extract_fonts in our utilities. GitHub: fixes #266
* profile: Document end time betterrcombs2020-07-051-3/+3
| | | | | | | | | | [ Oneric <oneric@oneric.de>: This commit was already present in the pr adding profile.c (#11, 31 Dec 2013, by rcombs <rcombs@rcombs.me>) but seems to have been forgotten. Adjusted to apply on current version. ]
* Style-Nit: Adjust whitespacesOneric2020-07-051-3/+3
| | | | | | | - Convert tabs to spaces - Ensure one space between keywords and parenthesis - Ensure space between ')' and '{' - Trim trailing whitespace
* Update names in copyright headersrcombs2020-05-291-1/+1
|
* Fixed headers in profile and testRodger Combs2014-04-261-1/+1
|
* Test/Profile: Support out-of-tree builds11rcombs2014-01-251-2/+2
|
* Added profile program and corresponding configure options11rcombs2014-01-252-0/+106