Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
33d7528c
Commit
33d7528c
authored
Mar 27, 2017
by
François Grisez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a custom Doxygen command to notfy wrapper generators to do not wrap functions or structs
parent
bdde8f88
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
coreapi/help/Doxyfile.in
coreapi/help/Doxyfile.in
+2
-1
tools/genapixml.py
tools/genapixml.py
+5
-0
wrappers/cpp/CMakeLists.txt
wrappers/cpp/CMakeLists.txt
+8
-1
No files found.
coreapi/help/Doxyfile.in
View file @
33d7528c
...
...
@@ -228,7 +228,8 @@ TAB_SIZE = 8
# "Side Effects:". You can put \n's in the value part of an alias to insert
# newlines.
ALIASES = "bctbx_list{1}=A list of \ref \1 objects. \xmlonly <bctbxlist>\1</bctbxlist> \endxmlonly"
ALIASES = bctbx_list{1}="A list of \ref \1 objects. \xmlonly <bctbxlist>\1</bctbxlist> \endxmlonly"
ALIASES += donotwrap="\xmlonly <donotwrap /> \endxmlonly"
# This tag can be used to specify a number of word-keyword mappings (TCL only).
# A mapping has the form "name=value". For example adding "class=itcl::class"
...
...
tools/genapixml.py
View file @
33d7528c
...
...
@@ -304,6 +304,9 @@ class Project:
descriptionNode
.
tag
=
'description'
descriptionNode
.
attrib
=
{}
return
descriptionNode
def
__canBeWrapped
(
self
,
node
):
return
node
.
find
(
'./detaileddescription//donotwrap'
)
is
None
def
__discoverClasses
(
self
):
for
td
in
self
.
__typedefs
:
...
...
@@ -491,6 +494,8 @@ class Project:
self
.
add
(
td
)
def
__parseCFunctionMemberdef
(
self
,
node
):
if
not
Project
.
__canBeWrapped
(
self
,
node
):
return
None
internal
=
node
.
find
(
"./detaileddescription/internal"
)
if
internal
is
not
None
:
return
None
...
...
wrappers/cpp/CMakeLists.txt
View file @
33d7528c
...
...
@@ -22,7 +22,14 @@
add_custom_command
(
OUTPUT include/linphone++/linphone.hh src/linphone++.cc
COMMAND
${
PYTHON_EXECUTABLE
}
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/genwrapper.py"
"
${
PROJECT_BINARY_DIR
}
/coreapi/help/doc/xml"
DEPENDS abstractapi.py genwrapper.py class_header.mustache class_impl.mustache enums_header.mustache main_header.mustache linphone-doc
DEPENDS
${
PROJECT_SOURCE_DIR
}
/tools/genapixml.py
abstractapi.py
genwrapper.py
class_header.mustache
class_impl.mustache
enums_header.mustache
main_header.mustache
linphone-doc
"
${
PROJECT_BINARY_DIR
}
/coreapi/help/doc/xml/index.xml"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment