@@ -9,7 +9,8 @@ TEST_TARGETS = \
9
9
tests/test-llama-grammar tests/test-grammar-parser tests/test-double-float tests/test-grad0 tests/test-opt \
10
10
tests/test-quantize-fns tests/test-quantize-perf tests/test-sampling tests/test-tokenizer-0-llama \
11
11
tests/test-tokenizer-0-falcon tests/test-tokenizer-1-llama tests/test-tokenizer-1-bpe tests/test-rope \
12
- tests/test-backend-ops tests/test-model-load-cancel tests/test-autorelease
12
+ tests/test-backend-ops tests/test-model-load-cancel tests/test-autorelease \
13
+ tests/test-json-schema-to-grammar
13
14
14
15
# Code coverage output files
15
16
COV_TARGETS = *.gcno tests/*.gcno *.gcda tests/*.gcda *.gcov tests/*.gcov lcov-report gcovr-report
@@ -666,6 +667,9 @@ console.o: common/console.cpp common/console.h
666
667
grammar-parser.o : common/grammar-parser.cpp common/grammar-parser.h
667
668
$(CXX ) $(CXXFLAGS ) -c $< -o $@
668
669
670
+ json-schema-to-grammar.o : common/json-schema-to-grammar.cpp common/json-schema-to-grammar.h
671
+ $(CXX ) $(CXXFLAGS ) -c $< -o $@
672
+
669
673
train.o : common/train.cpp common/train.h
670
674
$(CXX ) $(CXXFLAGS ) -c $< -o $@
671
675
@@ -745,7 +749,7 @@ save-load-state: examples/save-load-state/save-load-state.cpp ggml.o llama.o $(C
745
749
$(CXX ) $(CXXFLAGS ) -c $< -o $(call GET_OBJ_FILE, $< )
746
750
$(CXX ) $(CXXFLAGS ) $(filter-out % .h $< ,$^ ) $(call GET_OBJ_FILE, $< ) -o $@ $(LDFLAGS )
747
751
748
- server : examples/server/server.cpp examples/server/utils.hpp examples/server/httplib.h examples/server/ json.hpp examples/server/index.html.hpp examples/server/index.js.hpp examples/server/completion.js.hpp common/stb_image.h ggml.o llama.o $(COMMON_DEPS ) grammar-parser.o $(OBJS )
752
+ server : examples/server/server.cpp examples/server/utils.hpp examples/server/httplib.h common/ json.hpp examples/server/index.html.hpp examples/server/index.js.hpp examples/server/completion.js.hpp json-schema-to-grammar.o common/stb_image.h ggml.o llama.o $(COMMON_DEPS ) grammar-parser.o $(OBJS )
749
753
$(CXX ) $(CXXFLAGS ) -c $< -o $(call GET_OBJ_FILE, $< )
750
754
$(CXX ) $(CXXFLAGS ) $(filter-out % .h % .hpp $< ,$^ ) -Iexamples/server $(call GET_OBJ_FILE, $< ) -o $@ $(LDFLAGS ) $(LWINSOCK2 )
751
755
@@ -865,6 +869,10 @@ tests/test-double-float: tests/test-double-float.cpp ggml.o $(OBJS)
865
869
$(CXX ) $(CXXFLAGS ) -c $< -o $(call GET_OBJ_FILE, $< )
866
870
$(CXX ) $(CXXFLAGS ) $(filter-out % .h $< ,$^ ) $(call GET_OBJ_FILE, $< ) -o $@ $(LDFLAGS )
867
871
872
+ tests/test-json-schema-to-grammar : tests/test-json-schema-to-grammar.cpp json-schema-to-grammar.o ggml.o llama.o grammar-parser.o $(OBJS )
873
+ $(CXX ) $(CXXFLAGS ) -Iexamples/server -c $< -o $(call GET_OBJ_FILE, $< )
874
+ $(CXX ) $(CXXFLAGS ) $(filter-out % .h $< ,$^ ) $(call GET_OBJ_FILE, $< ) -o $@ $(LDFLAGS )
875
+
868
876
tests/test-grad0 : tests/test-grad0.cpp ggml.o $(OBJS )
869
877
$(CXX ) $(CXXFLAGS ) -c $< -o $(call GET_OBJ_FILE, $< )
870
878
$(CXX ) $(CXXFLAGS ) $(filter-out % .h $< ,$^ ) $(call GET_OBJ_FILE, $< ) -o $@ $(LDFLAGS )
0 commit comments