-
Notifications
You must be signed in to change notification settings - Fork 817
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add auto options for maxmind_acl, stek_share, and uri_signing plugins (…
…#10741) This helps clean up the dependency management and gives fine grained control over whether these plugins are built. I am planning to add all the experimental plugins, but I want to get these changes in quickly because we are still in the middle of fixing the plugins, and other PRs can build on these changes. BUILD_EXPERIMENTAL_PLUGINS determines whether these plugins are OFF or AUTO on the first configuration. Changing the value of BUILD_EXPERIMENTAL_PLUGINS subsequently will not change whether those plugins are built, because their enabled/disabled state is cached separately. I have not come up with a good way to fix this. Suggestions welcome.
- Loading branch information
Showing
6 changed files
with
94 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
####################### | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor license | ||
# agreements. See the NOTICE file distributed with this work for additional information regarding | ||
# copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License | ||
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
# or implied. See the License for the specific language governing permissions and limitations under | ||
# the License. | ||
# | ||
####################### | ||
|
||
# These are all the auto options for experimental plugins. They are contained in a | ||
# module instead of a subdirectory because auto_options added in a subdirectory are | ||
# not visible to their parent directories. | ||
|
||
# Note that this default only works on the first run before the options are cached. | ||
# Once the options are cached they must be adjusted manually. | ||
if(BUILD_EXPERIMENTAL_PLUGINS) | ||
set(_DEFAULT AUTO) | ||
else() | ||
set(_DEFAULT OFF) | ||
endif() | ||
|
||
auto_option( | ||
MAXMIND_ACL | ||
FEATURE_VAR | ||
BUILD_MAXMIND_ACL | ||
WITH_SUBDIRECTORY | ||
plugins/experimental/maxmind_acl | ||
PACKAGE_DEPENDS | ||
maxminddb | ||
DEFAULT | ||
${_DEFAULT} | ||
) | ||
auto_option( | ||
STEK_SHARE | ||
FEATURE_VAR | ||
BUILD_STEK_SHARE | ||
WITH_SUBDIRECTORY | ||
plugins/experimental/stek_share | ||
PACKAGE_DEPENDS | ||
nuraft | ||
DEFAULT | ||
${_DEFAULT} | ||
) | ||
auto_option( | ||
URI_SIGNING | ||
FEATURE_VAR | ||
BUILD_URI_SIGNING | ||
WITH_SUBDIRECTORY | ||
plugins/experimental/uri_signing | ||
PACKAGE_DEPENDS | ||
cjose | ||
jansson | ||
DEFAULT | ||
${_DEFAULT} | ||
) | ||
|
||
unset(_DEFAULT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters