Skip to content

Commit 7f6cd8f

Browse files
committed
added modeling_private submodule with cmake files change.
Signed-off-by: Zhang, Xiaolin <xiaolin.zhang@intel.com>
1 parent 6b26ab1 commit 7f6cd8f

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "thirdparty/openvino_tokenizers"]
22
path = thirdparty/openvino_tokenizers
33
url = https://github.com/openvinotoolkit/openvino_tokenizers.git
4+
[submodule "src/cpp/src/modeling_private"]
5+
path = src/cpp/src/modeling_private
6+
url = https://github.com/xipingyan/modeling_private

cmake/features.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ option(ENABLE_TOOLS "Enable tools build" ON)
1111
option(ENABLE_GGUF "Enable support for GGUF format" ON)
1212
option(ENABLE_SAFETENSORS "Enable support for Safetensors format" ON)
1313
option(ENABLE_XGRAMMAR "Enable support for structured output generation with xgrammar backend" ON)
14+
option(ENABLE_MODELING_PRIVATE "Enable support for private models features" OFF)
1415

1516
# Disable building samples for NPM package
1617
if(CPACK_GENERATOR STREQUAL "NPM")

src/cpp/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
file(GLOB_RECURSE SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/*.c")
66
file(GLOB modeling_samples_src "${CMAKE_CURRENT_SOURCE_DIR}/src/modeling/samples/*.cpp")
77
list(REMOVE_ITEM SOURCE_FILES ${modeling_samples_src})
8+
file(GLOB modeling_private_samples_src "${CMAKE_CURRENT_SOURCE_DIR}/src/modeling_private/samples/*.cpp")
9+
list(REMOVE_ITEM SOURCE_FILES ${modeling_private_samples_src})
810
list(FILTER SOURCE_FILES EXCLUDE REGEX ".*/safetensors_utils/.*")
911
if(NOT ENABLE_MODELING_PRIVATE)
1012
list(FILTER SOURCE_FILES EXCLUDE REGEX ".*/modeling_private/.*")

src/cpp/src/modeling_private

Submodule modeling_private added at 94e3f54

0 commit comments

Comments
 (0)