summaryrefslogtreecommitdiff
path: root/Meta
AgeCommit message (Collapse)Author
2021-12-30Meta: Add helper CMake function to link directly against LibUnicodeDataTimothy Flynn
Rather than each CMakeLists.txt needing to import unicode_data.cmake and check if Unicode data generation is enabled, add a helper method to do this.
2021-12-29Meta+Documentation: Don't rebuild disk image for every run on OpenBSDtuftedocelot
2021-12-29Meta: Add egcc as a GCC candidatetuftedocelot
egcc is the alias for the GCC compiler (since OpenBSD uses Clang by default). Toolchain/BuildIt.sh has the necessary adjustments, but the compiler check occurs before BuildIt.sh is called.
2021-12-29Build: Remove gzip -k usage in PCI/USB ID files and crypt for OpenBSDtuftedocelot
OpenBSD gzip does not have the -k flag to keep the original after extraction. Work around this by copying the original gzip to the dest and then extracting. A bit of a hack, but only needs to be done for the first-time or rebuilds OpenBSD provides crypt in libc, not libcrypt. Adjust if/else to check for either and proceed accordingly Remove outdated OpenBSD checks when building the toolchain
2021-12-28Meta: Add SSE3, SMAP and SMEP to our bochsrcAndreas Kling
- SSE3 makes LibM's trunc() not SIGILL (due to FISTTP). - SMAP and SMEP allow us to exercise more kernel security mechanisms.
2021-12-27Meta: Add link to awesome new meta-project from main website :^)Ben Wiederhake
2021-12-26Meta: Don't override SERENITY_KVM_SUPPORT if it is already setKelvium
I've seen how @awesomekling changes the script to disable KVM, so that's a useful thing to have. An example how to use it: SERENITY_KVM_SUPPORT='0' ./Meta/serenity.sh run x86_64 My first commit btw :^)
2021-12-24LibGL+LibSoftGPU: Move rendering related code to LibSoftGPU libraryStephan Unverwerth
This introduces a new library, LibSoftGPU, that incorporates all rendering related features that formerly resided within LibGL itself. Going forward we will make both libraries completely independent from each other allowing LibGL to load different, possibly accelerated, rendering backends.
2021-12-23LibC: Allow multiple includes of `<assert.h>`Michel Hermier
ISO C requires in section 7.2: The assert macro is redefined according to the current state of NDEBUG each time that <assert.h> is included. Also add tests for `assert` multiple inclusion accordingly.
2021-12-23Meta: Allow to skip `#pragma once` checkMichel Hermier
Some headers migth need to be reentered multiple times (eg. <assert.h>) so a mecanism to skip that check is necessary.
2021-12-22IPCCompiler: Default initialize all parameter member variablesBrian Gianforcaro
PVS Studio static analysis noticed we didn't initialize these in a bunch of cases. This change fixes that so we will always initialize these using universal initialization.
2021-12-22Meta: Add a cmake flag for building for compiler explorerAli Mohammad Pur
We don't need to build tests/binaries for CE.
2021-12-21LibUnicode: Remove now unused value-from-string generator overloadTimothy Flynn
The generate_value_from_string_for_dynamic_loading() overload was just temporary until all generates were switched over to dynamic loading.
2021-12-21LibUnicode: Dynamically load the generated UnicodeDateTimeFormat symbolsTimothy Flynn
2021-12-21LibUnicode: Dynamically load the generated UnicodeNumberFormat symbolsTimothy Flynn
2021-12-21LibUnicode: Dynamically load the generated UnicodeLocale symbolsTimothy Flynn
2021-12-21LibUnicode: Dynamically load the generated UnicodeData symbolsTimothy Flynn
The generated data for libunicodedata.so is quite large, and loading it is a price paid by nearly every application by way of depending on LibRegex. In order to defer this cost until an application actually uses one of the surrounding APIs, dynamically load the generated symbols. To be able to load the symbols dynamically, the generated methods must have demangled names. Typically, this is accomplished with `extern "C"` blocks. The clang toolchain complains about this here because the types returned from the generators are strictly C++ types. So to demangle the names, we use the asm() compiler directive to manually define a symbol name; the caveat is that we *must* be sure the symbols are unique. As an extra precaution, we prefix each symbol name with "unicode_". For more details, see: https://gcc.gnu.org/onlinedocs/gcc/Asm-Labels.html This symbol loader used in this implementation provides the additional benefit of removing many [[maybe_unused]] attributes from the LibUnicode methods. Internally, if ENABLE_UNICODE_DATABASE_DOWNLOAD is OFF, the loader is able to stub out the function pointers it returns. Note that as of this commit, LibUnicode is still directly linked against LibUnicodeData. This commit is just a first step towards removing that.
2021-12-21Meta: Add a fuzzer for the QOILoaderLinus Groh
2021-12-18Lagom: Bind `time_zone_list_index_type` in the generatorMichel Hermier
The variable `s_time_zone_list_index_type` seems to be unused (detected when compiling with clang), and it seems logical to bind it even it if it is not used for now.
2021-12-18Websites: Update the SerenityOS bug bounty program :^)Andreas Kling
Let's increase the reward since I have significantly improved funding over the last year! Merry haxmas! :^)
2021-12-15Lagom: Add argument `WORKING_DIRECTORY` to `lagom_test(...)`Simon Woertz
So far the working directory was set in some cases using `set_tests_properties(...)`, but this requires to know which name is picked by `lagom_test(...)` when calling `add_test(...)`. In case of adding multiple test cases using a globbing pattern this would require to duplicate code to construct the test name from the file name.
2021-12-14LibWeb: Add support for the BufferSource IDL parameter typeLinus Groh
2021-12-14LibWeb: Add the SubtleCrypto interfaceLinus Groh
Just some boilerplate code to get started :^) This adds both the SubtleCrypto constructor to the window object, as well as the crypto.subtle instance attribute.
2021-12-13LibUnicode: Generate unique list patterns and lists of list patternsTimothy Flynn
2021-12-13LibUnicode: Generate unique list of keyword valuesTimothy Flynn
2021-12-13LibUnicode: Generate unique lists of localized currenciesTimothy Flynn
2021-12-13LibUnicode: Generate unique lists of languages, territories, and scriptsTimothy Flynn
2021-12-13LibUnicode: Remove unused fields from generated structuresTimothy Flynn
A couple of structures held a string index that is unused. Removing them also removes the string values from the unique string list.
2021-12-13LibUnicode: Generate unique lists of hour cyclesTimothy Flynn
2021-12-13LibUnicode: Generate unique lists of time zone structuresTimothy Flynn
2021-12-13LibUnicode: Generate unique lists of day period structuresTimothy Flynn
2021-12-13LibUnicode: Generate unique day period structuresTimothy Flynn
2021-12-13LibUnicode: Generate unique time zone structuresTimothy Flynn
Each of the 374 locales contain 156 time zone structures. Of these 58,344 structures, 13,578 are unique.
2021-12-13LibUnicode: Generate unique calendar structuresTimothy Flynn
Of the 374 generated calendars, 173 are unique.
2021-12-13LibUnicode: Generate unique lists of calendar range patternsTimothy Flynn
Of the 374 range pattern lists and 374 range12 pattern lists, 230 are unique.
2021-12-13LibUnicode: Generate unique lists of calendar patternsTimothy Flynn
Of the 374 generated lists, 152 are unique. These lists have upwards of 1000 entries as well, so the de-duplication is particularly nice.
2021-12-13LibUnicode: Generate unique lists of calendar symbols structuresTimothy Flynn
Of the 374 generated lists, 120 are unique.
2021-12-13LibUnicode: Generate unique calendar symbols structuresTimothy Flynn
Each of the 374 generated calendars include 4 symbols structures. Of these 1496 structures, only 386 are unique.
2021-12-13LibUnicode: Generate CalendarSymbols in a predetermined orderTimothy Flynn
Similar to commit 2a7f36b392, this change moves the generated CalendarSymbol enumeration to the public LibUnicode/NumberFormat.h header with a pre-defined set of symbols that we need. This is to prepare for uniquely generating the CalendarSymbols structure.
2021-12-13LibUnicode: Generate unique lists of calendar symbolsTimothy Flynn
Each of the 374 generated calendars include 4 sets of symbols, each of which have 3 lists of symbols (narrow, short, long). Of these 4488 lists, only 819 are unique.
2021-12-13LibUnicode: Generate unique calendar format structuresTimothy Flynn
There are currently 374 calendars generated, each of which include 3 CalendarFormat structures. Of these 1122 instances, only 167 are unique.
2021-12-13LibUnicode: Define traits for a vector of integral/enum typesTimothy Flynn
Any generator which defines a unique storage instance for a list of numbers will need this.
2021-12-12Meta: Conditionally run QEMU with QMPNathan Ell
QMP is currently used with UNIX sockets, which can't be created on Windows hosts. Let's just not start QMP if using Windows QEMU.
2021-12-12LibWeb: Implement TextEncoder.prototype.encode()Linus Groh
2021-12-12LibWeb: Add the TextEncoder interfaceLinus Groh
This is from the Encoding Standard (https://encoding.spec.whatwg.org), and therefore gets its own namespace and subdirectory within LibWeb :^)
2021-12-11Everywhere: Fix -Winconsistent-missing-override warnings from ClangDaniel Bertalan
This option is already enabled when building Lagom, so let's enable it for the main build too. We will no longer be surprised by Lagom Clang CI builds failing while everything compiles locally. Furthermore, the stronger `-Wsuggest-override` warning is enabled in this commit, which enforces the use of the `override` keyword in all classes, not just those which already have some methods marked as `override`. This works with both GCC and Clang.
2021-12-11Meta: Run QEMU with QMP socketAndreas Kling
This allows external connections to the QEMU monitor via QMP.
2021-12-11LibUnicode: Generate unique unitsTimothy Flynn
2021-12-11LibUnicode: Generate unique number systemsTimothy Flynn
2021-12-11LibJS+LibUnicode: Generate unique numeric symbol listsTimothy Flynn
There are 443 number system objects generated, each of which held an array of number system symbols. Of those 443 arrays, only 39 are unique. To uniquely store these, this change moves the generated NumericSymbol enumeration to the public LibUnicode/NumberFormat.h header with a pre- defined set of symbols that we need. This is to ensure the generated, unique arrays are created in a known order with known symbols. While it is unfortunate to no longer discover these symbols at generation time, it does allow us to ignore unwanted symbols and perform less string-to- enumeration conversions at lookup time.