@@ -104,12 +104,13 @@ option(LLAMA_SANITIZE_UNDEFINED "llama: enable undefined sanitizer" OFF)
104104option (LLAMA_BUILD_COMMON "llama: build common utils library" ${LLAMA_STANDALONE} )
105105
106106# extra artifacts
107- option (LLAMA_BUILD_TESTS "llama: build tests" ${LLAMA_STANDALONE} )
108- option (LLAMA_BUILD_TOOLS "llama: build tools" ${LLAMA_STANDALONE} )
109- option (LLAMA_BUILD_EXAMPLES "llama: build examples" ${LLAMA_STANDALONE} )
110- option (LLAMA_BUILD_SERVER "llama: build server example" ${LLAMA_STANDALONE} )
111- option (LLAMA_BUILD_UI "llama: build the embedded Web UI for server" ON )
112- option (LLAMA_USE_PREBUILT_UI "llama: use prebuilt UI from HF Bucket when available (requires LLAMA_BUILD_UI=ON)" ON )
107+ option (LLAMA_BUILD_TESTS "llama: build tests" ${LLAMA_STANDALONE} )
108+ option (LLAMA_BUILD_TOOLS "llama: build tools" ${LLAMA_STANDALONE} )
109+ option (LLAMA_BUILD_EXAMPLES "llama: build examples" ${LLAMA_STANDALONE} )
110+ option (LLAMA_BUILD_SERVER "llama: build server example" ${LLAMA_STANDALONE} )
111+ option (LLAMA_BUILD_APP "llama: build the unified binary" OFF )
112+ option (LLAMA_BUILD_UI "llama: build the embedded Web UI for server" ON )
113+ option (LLAMA_USE_PREBUILT_UI "llama: use prebuilt UI from HF Bucket when available (requires LLAMA_BUILD_UI=ON)" ON )
113114
114115# Backward compat: when old var is set but new one isn't, forward the value
115116if (DEFINED LLAMA_BUILD_WEBUI)
@@ -120,8 +121,9 @@ if(DEFINED LLAMA_USE_PREBUILT_WEBUI)
120121 set (LLAMA_USE_PREBUILT_UI ${LLAMA_USE_PREBUILT_WEBUI} )
121122 message (DEPRECATION "LLAMA_USE_PREBUILT_WEBUI is deprecated, use LLAMA_USE_PREBUILT_UI instead" )
122123endif ()
123- option (LLAMA_TOOLS_INSTALL "llama: install tools" ${LLAMA_TOOLS_INSTALL_DEFAULT} )
124- option (LLAMA_TESTS_INSTALL "llama: install tests" ON )
124+
125+ option (LLAMA_TOOLS_INSTALL "llama: install tools" ${LLAMA_TOOLS_INSTALL_DEFAULT} )
126+ option (LLAMA_TESTS_INSTALL "llama: install tests" ON )
125127
126128# 3rd party libs
127129option (LLAMA_OPENSSL "llama: use openssl to support HTTPS" ON )
@@ -226,6 +228,10 @@ if (LLAMA_BUILD_COMMON AND LLAMA_BUILD_TOOLS)
226228 add_subdirectory (tools )
227229endif ()
228230
231+ if (LLAMA_BUILD_APP)
232+ add_subdirectory (app )
233+ endif ()
234+
229235# Automatically add all files from the 'licenses' directory
230236file (GLOB EXTRA_LICENSES "${CMAKE_SOURCE_DIR } /licenses/LICENSE-*" )
231237
0 commit comments