mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-22 16:20:58 +00:00
automate the task of including all the necessary files for openmw
This commit is contained in:
parent
4d29bdc85e
commit
19f732c4ee
@ -51,10 +51,12 @@ except ImportError:
|
|||||||
|
|
||||||
# Where breathe can find the source files
|
# Where breathe can find the source files
|
||||||
openmw_path = os.path.join(project_root, "apps", "openmw")
|
openmw_path = os.path.join(project_root, "apps", "openmw")
|
||||||
openmw_headers = insensitive_glob(os.path.join(openmw_path, "*.hpp")) + \
|
openmw_sub_dirs = os.walk(openmw_path).next()[1]
|
||||||
insensitive_glob(os.path.join(openmw_path, "mwbase", "*.hpp")) + \
|
openmw_headers = insensitive_glob(os.path.join(openmw_path, "*.hpp"))
|
||||||
insensitive_glob(os.path.join(openmw_path, "mwclass", "*.hpp"))
|
for dir in openmw_sub_dirs:
|
||||||
|
openmw_headers += insensitive_glob(os.path.join(openmw_path, dir, "*.hpp"))
|
||||||
|
|
||||||
|
# massage the headers to get the relative path needed
|
||||||
openmw_headers = [os.path.relpath(x, openmw_path) for x in openmw_headers]
|
openmw_headers = [os.path.relpath(x, openmw_path) for x in openmw_headers]
|
||||||
|
|
||||||
breathe_projects_source = {
|
breathe_projects_source = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user