1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 11:07:45 +00:00
serenity/Libraries/LibJS/Makefile
Andreas Kling 3163929990 LibJS: Add a mechanism for callback-based object properties
This patch adds NativeProperty, which can be used to implement object
properties that have C++ getters and/or setters.

Use this to move String.prototype.length to its correct place. :^)
2020-03-15 19:31:00 +01:00

29 lines
573 B
Makefile

OBJS = \
AST.o \
Cell.o \
Function.o \
GlobalObject.o \
Heap.o \
HeapBlock.o \
Interpreter.o \
Lexer.o \
NativeFunction.o \
NativeProperty.o \
Object.o \
ObjectPrototype.o \
Parser.o \
PrimitiveString.o \
ScriptFunction.o \
StringObject.o \
StringPrototype.o \
Token.o \
Value.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