mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:57:44 +00:00
Build: Switch to CMake :^)
Closes https://github.com/SerenityOS/serenity/issues/2080
This commit is contained in:
parent
49727ffee4
commit
450a2a0f9c
236 changed files with 1774 additions and 2337 deletions
55
Libraries/LibJS/CMakeLists.txt
Normal file
55
Libraries/LibJS/CMakeLists.txt
Normal file
|
@ -0,0 +1,55 @@
|
|||
set(SOURCES
|
||||
AST.cpp
|
||||
Console.cpp
|
||||
Heap/Handle.cpp
|
||||
Heap/HeapBlock.cpp
|
||||
Heap/Heap.cpp
|
||||
Interpreter.cpp
|
||||
Lexer.cpp
|
||||
Parser.cpp
|
||||
Runtime/ArrayConstructor.cpp
|
||||
Runtime/Array.cpp
|
||||
Runtime/ArrayPrototype.cpp
|
||||
Runtime/BooleanConstructor.cpp
|
||||
Runtime/BooleanObject.cpp
|
||||
Runtime/BooleanPrototype.cpp
|
||||
Runtime/BoundFunction.cpp
|
||||
Runtime/Cell.cpp
|
||||
Runtime/ConsoleObject.cpp
|
||||
Runtime/DateConstructor.cpp
|
||||
Runtime/Date.cpp
|
||||
Runtime/DatePrototype.cpp
|
||||
Runtime/ErrorConstructor.cpp
|
||||
Runtime/Error.cpp
|
||||
Runtime/ErrorPrototype.cpp
|
||||
Runtime/Exception.cpp
|
||||
Runtime/FunctionConstructor.cpp
|
||||
Runtime/Function.cpp
|
||||
Runtime/FunctionPrototype.cpp
|
||||
Runtime/GlobalObject.cpp
|
||||
Runtime/LexicalEnvironment.cpp
|
||||
Runtime/MarkedValueList.cpp
|
||||
Runtime/MathObject.cpp
|
||||
Runtime/NativeFunction.cpp
|
||||
Runtime/NativeProperty.cpp
|
||||
Runtime/NumberConstructor.cpp
|
||||
Runtime/NumberObject.cpp
|
||||
Runtime/NumberPrototype.cpp
|
||||
Runtime/ObjectConstructor.cpp
|
||||
Runtime/Object.cpp
|
||||
Runtime/ObjectPrototype.cpp
|
||||
Runtime/PrimitiveString.cpp
|
||||
Runtime/Reference.cpp
|
||||
Runtime/ReflectObject.cpp
|
||||
Runtime/ScriptFunction.cpp
|
||||
Runtime/Shape.cpp
|
||||
Runtime/StringConstructor.cpp
|
||||
Runtime/StringObject.cpp
|
||||
Runtime/StringPrototype.cpp
|
||||
Runtime/Uint8ClampedArray.cpp
|
||||
Runtime/Value.cpp
|
||||
Token.cpp
|
||||
)
|
||||
|
||||
serenity_lib(LibJS js)
|
||||
target_link_libraries(LibJS LibM LibCore)
|
|
@ -1,60 +0,0 @@
|
|||
OBJS = \
|
||||
AST.o \
|
||||
Console.o \
|
||||
Heap/Handle.o \
|
||||
Heap/Heap.o \
|
||||
Heap/HeapBlock.o \
|
||||
Interpreter.o \
|
||||
Lexer.o \
|
||||
Parser.o \
|
||||
Runtime/Array.o \
|
||||
Runtime/ArrayConstructor.o \
|
||||
Runtime/ArrayPrototype.o \
|
||||
Runtime/BooleanConstructor.o \
|
||||
Runtime/BooleanObject.o \
|
||||
Runtime/BooleanPrototype.o \
|
||||
Runtime/BoundFunction.o \
|
||||
Runtime/Cell.o \
|
||||
Runtime/ConsoleObject.o \
|
||||
Runtime/Date.o \
|
||||
Runtime/DateConstructor.o \
|
||||
Runtime/DatePrototype.o \
|
||||
Runtime/Error.o \
|
||||
Runtime/ErrorConstructor.o \
|
||||
Runtime/ErrorPrototype.o \
|
||||
Runtime/Exception.o \
|
||||
Runtime/Function.o \
|
||||
Runtime/FunctionConstructor.o \
|
||||
Runtime/FunctionPrototype.o \
|
||||
Runtime/GlobalObject.o \
|
||||
Runtime/LexicalEnvironment.o \
|
||||
Runtime/MathObject.o \
|
||||
Runtime/MarkedValueList.o \
|
||||
Runtime/NativeFunction.o \
|
||||
Runtime/NativeProperty.o \
|
||||
Runtime/NumberConstructor.o \
|
||||
Runtime/NumberObject.o \
|
||||
Runtime/NumberPrototype.o \
|
||||
Runtime/Object.o \
|
||||
Runtime/ObjectConstructor.o \
|
||||
Runtime/ObjectPrototype.o \
|
||||
Runtime/PrimitiveString.o \
|
||||
Runtime/Reference.o \
|
||||
Runtime/ReflectObject.o \
|
||||
Runtime/ScriptFunction.o \
|
||||
Runtime/Shape.o \
|
||||
Runtime/StringConstructor.o \
|
||||
Runtime/StringObject.o \
|
||||
Runtime/StringPrototype.o \
|
||||
Runtime/Uint8ClampedArray.o \
|
||||
Runtime/Value.o \
|
||||
Token.o
|
||||
|
||||
LIBRARY = libjs.a
|
||||
|
||||
install:
|
||||
mkdir -p $(SERENITY_BASE_DIR)/Root/usr/include/LibJS/
|
||||
cp *.h $(SERENITY_BASE_DIR)/Root/usr/include/LibJS/
|
||||
cp $(LIBRARY) $(SERENITY_BASE_DIR)/Root/usr/lib/
|
||||
|
||||
include ../../Makefile.common
|
|
@ -3,7 +3,7 @@
|
|||
if [ "$(uname)" = "SerenityOS" ]; then
|
||||
js_program=/bin/js
|
||||
else
|
||||
[ -z "$js_program" ] && js_program="$SERENITY_ROOT/Meta/Lagom/build/js"
|
||||
[ -z "$js_program" ] && js_program="$SERENITY_ROOT/Build/Meta/Lagom/js"
|
||||
|
||||
# Enable back traces if sanitizers are enabled
|
||||
export UBSAN_OPTIONS=print_stacktrace=1
|
Loading…
Add table
Add a link
Reference in a new issue