File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 PREFIX="$(pwd)"/inst
2222 cmake -S . -B build -DCMAKE_PREFIX_PATH="$PREFIX" \
2323 -DLLAMA_OPENSSL=OFF -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_TOOLS=OFF \
24- -DLLAMA_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release
24+ -DLLAMA_BUILD_EXAMPLES=OFF -DLLAMA_BUILD_APP=OFF - DCMAKE_BUILD_TYPE=Release
2525 cmake --build build --config Release
2626 cmake --install build --prefix "$PREFIX" --config Release
2727
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ option(LLAMA_BUILD_TESTS "llama: build tests"
108108option (LLAMA_BUILD_TOOLS "llama: build tools" ${LLAMA_STANDALONE} )
109109option (LLAMA_BUILD_EXAMPLES "llama: build examples" ${LLAMA_STANDALONE} )
110110option (LLAMA_BUILD_SERVER "llama: build server example" ${LLAMA_STANDALONE} )
111- option (LLAMA_BUILD_APP "llama: build the unified binary" OFF )
111+ option (LLAMA_BUILD_APP "llama: build the unified binary" ON )
112112option (LLAMA_BUILD_UI "llama: build the embedded Web UI for server" ON )
113113option (LLAMA_USE_PREBUILT_UI "llama: use prebuilt UI from HF Bucket when available (requires LLAMA_BUILD_UI=ON)" ON )
114114
Original file line number Diff line number Diff line change 22
33set (TARGET llama-batched-bench-impl)
44
5- add_library (${TARGET} STATIC batched-bench.cpp )
5+ add_library (${TARGET} batched-bench.cpp )
6+ set_target_properties (${TARGET} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
67
78target_include_directories (${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR } )
89target_link_libraries (${TARGET} PUBLIC llama-common llama ${CMAKE_THREAD_LIBS_INIT} )
Original file line number Diff line number Diff line change 22
33set (TARGET llama-cli-impl)
44
5- add_library (${TARGET} STATIC cli.cpp )
5+ add_library (${TARGET} cli.cpp )
6+ set_target_properties (${TARGET} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
67
78target_include_directories (${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR } ../server )
89target_link_libraries (${TARGET} PUBLIC server-context llama-common ${CMAKE_THREAD_LIBS_INIT} )
Original file line number Diff line number Diff line change 22
33set (TARGET llama-completion-impl)
44
5- add_library (${TARGET} STATIC completion.cpp )
5+ add_library (${TARGET} completion.cpp )
6+ set_target_properties (${TARGET} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
67
78target_include_directories (${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR } )
89target_link_libraries (${TARGET} PUBLIC llama-common llama ${CMAKE_THREAD_LIBS_INIT} )
Original file line number Diff line number Diff line change 22
33set (TARGET llama-fit-params-impl)
44
5- add_library (${TARGET} STATIC fit-params.cpp )
5+ add_library (${TARGET} fit-params.cpp )
6+ set_target_properties (${TARGET} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
67
78target_include_directories (${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR } )
89target_link_libraries (${TARGET} PUBLIC llama-common llama ${CMAKE_THREAD_LIBS_INIT} )
Original file line number Diff line number Diff line change 22
33set (TARGET llama-bench-impl)
44
5- add_library (${TARGET} STATIC llama-bench.cpp )
5+ add_library (${TARGET} llama-bench.cpp )
6+ set_target_properties (${TARGET} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
67
78target_include_directories (${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR } )
89target_link_libraries (${TARGET} PUBLIC llama-common llama ${CMAKE_THREAD_LIBS_INIT} )
Original file line number Diff line number Diff line change 22
33set (TARGET llama-perplexity-impl)
44
5- add_library (${TARGET} STATIC perplexity.cpp )
5+ add_library (${TARGET} perplexity.cpp )
6+ set_target_properties (${TARGET} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
67
78target_include_directories (${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR } )
89target_link_libraries (${TARGET} PUBLIC llama-common llama ${CMAKE_THREAD_LIBS_INIT} )
Original file line number Diff line number Diff line change 22
33set (TARGET llama-quantize-impl)
44
5- add_library (${TARGET} STATIC quantize.cpp )
5+ add_library (${TARGET} quantize.cpp )
6+ set_target_properties (${TARGET} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
67
78target_include_directories (${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR } )
89target_link_libraries (${TARGET} PUBLIC llama-common llama ${CMAKE_THREAD_LIBS_INIT} )
Original file line number Diff line number Diff line change @@ -31,13 +31,14 @@ target_link_libraries(${TARGET} PUBLIC llama-common mtmd ${CMAKE_THREAD_LIBS_INI
3131
3232set (TARGET llama-server-impl)
3333
34- add_library (${TARGET} STATIC
34+ add_library (${TARGET}
3535 server.cpp
3636 server-http.cpp
3737 server-http.h
3838 server-models.cpp
3939 server-models.h
4040)
41+ set_target_properties (${TARGET} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
4142
4243target_include_directories (${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR } )
4344target_include_directories (${TARGET} PRIVATE ../mtmd ${CMAKE_SOURCE_DIR } )
You can’t perform that action at this time.
0 commit comments