-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add options to sphinx' cmake adapter
- Loading branch information
Showing
7 changed files
with
145 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from pathlib import Path | ||
|
||
CMAKE_SOURCE_DIR = Path("@CMAKE_SOURCE_DIR@") | ||
CMAKE_BINARY_DIR = Path("@CMAKE_BINARY_DIR@") | ||
STAGE_DIR = CMAKE_BINARY_DIR / "documentation/stage" | ||
APIDOC_DIR = CMAKE_BINARY_DIR / "documentation/apidoc" | ||
|
||
project = "@PROJECT_NAME@" | ||
|
||
for name, typ, value in [@ | ||
foreach(name ${_MAUD_ALL_OPTIONS}) | ||
get_property(typ CACHE ${name} PROPERTY TYPE) | ||
string_escape("${${name}}" value) | ||
render("\n ('${name}', '${typ}', \"${value}\"),") | ||
endforeach() | ||
@]: | ||
if typ == "BOOL": | ||
globals()[name] = (value == "ON") | ||
elif "PATH" in typ: | ||
globals()[name] = Path(value) | ||
else: | ||
globals()[name] = value | ||
|
||
def setup(app): | ||
print("set up maud extension") | ||
|
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 was deleted.
Oops, something went wrong.
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