5f34cb34b2
scriptvalue.h/.c holds the scriptvalue_t tagged-union type and its JS<->C decode/encode helpers; scriptdef.h/.c holds the declarative scriptfuncdef_t/scriptpropdef_t definitions, the binding registry, and the JerryScript trampolines. Lets a module declare its JS-facing methods/properties/globals as typed data instead of hand-writing argument-checking boilerplate per method. Framework only for now -- no existing module has been migrated onto it yet.
16 lines
336 B
CMake
16 lines
336 B
CMake
# Copyright (c) 2026 Dominic Masters
|
|
#
|
|
# This software is released under the MIT License.
|
|
# https://opensource.org/licenses/MIT
|
|
|
|
include(dusktest)
|
|
|
|
dusktest(test_modulerequire.c)
|
|
|
|
dusktest(test_scriptdef.c)
|
|
|
|
dusktest(test_overworldscene.c)
|
|
target_compile_definitions(test_overworldscene PRIVATE
|
|
DUSK_ASSETS_DIR="${DUSK_ASSETS_DIR}"
|
|
)
|