mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
CMake: Rename option to enable the Clang tool based header generator
`SAPI_ENABLE_GENERATOR` => `SAPI_ENABLE_CLANG_TOOL` This prepares further changes in this area. PiperOrigin-RevId: 531201213 Change-Id: I56bd450e6ed2dd1dbbf45db2825a75c56d277037
This commit is contained in:
parent
4ec1c6be64
commit
bfa0186f72
|
@ -152,7 +152,7 @@ function(add_sapi_library)
|
|||
"--sapi_functions=${_sapi_funcs}"
|
||||
"--sapi_ns=${_sapi_NAMESPACE}"
|
||||
)
|
||||
if(SAPI_ENABLE_GENERATOR)
|
||||
if(SAPI_ENABLE_CLANG_TOOL)
|
||||
list(APPEND _sapi_generator_command
|
||||
sapi_generator_tool
|
||||
-p "${CMAKE_CURRENT_BINARY_DIR}"
|
||||
|
|
|
@ -95,7 +95,7 @@ endif()
|
|||
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
if(NOT SAPI_ENABLE_GENERATOR)
|
||||
if(NOT SAPI_ENABLE_CLANG_TOOL)
|
||||
# Find Python 3 and add its location to the cache so that its available in
|
||||
# the add_sapi_library() macro in embedding projects.
|
||||
find_package(Python3 COMPONENTS Interpreter REQUIRED)
|
||||
|
|
|
@ -51,8 +51,8 @@ option(SAPI_BUILD_TESTING
|
|||
# Disabled by default, as this will download a lot of extra content.
|
||||
option(SAPI_CONTRIB_BUILD_TESTING "Build tests for sandboxes in 'contrib'" OFF)
|
||||
|
||||
option(SAPI_ENABLE_GENERATOR
|
||||
"Build Clang based code generator from source" OFF
|
||||
option(SAPI_ENABLE_CLANG_TOOL
|
||||
"Use the new Clang tool based header generator" OFF
|
||||
)
|
||||
|
||||
# This flag should be only enabled for embedded and resource-constrained
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
add_subdirectory(tools/filewrapper)
|
||||
add_subdirectory(sandbox2)
|
||||
add_subdirectory(util)
|
||||
if(SAPI_ENABLE_GENERATOR)
|
||||
if(SAPI_ENABLE_CLANG_TOOL)
|
||||
add_subdirectory(tools/clang_generator)
|
||||
endif()
|
||||
add_subdirectory(examples)
|
||||
|
|
Loading…
Reference in New Issue
Block a user