mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 22:45:34 +00:00
automate the task of including all the necessary files for openmw
This commit is contained in:
parent
4d29bdc85e
commit
19f732c4ee
1 changed files with 5 additions and 3 deletions
|
@ -51,10 +51,12 @@ except ImportError:
|
|||
|
||||
# Where breathe can find the source files
|
||||
openmw_path = os.path.join(project_root, "apps", "openmw")
|
||||
openmw_headers = insensitive_glob(os.path.join(openmw_path, "*.hpp")) + \
|
||||
insensitive_glob(os.path.join(openmw_path, "mwbase", "*.hpp")) + \
|
||||
insensitive_glob(os.path.join(openmw_path, "mwclass", "*.hpp"))
|
||||
openmw_sub_dirs = os.walk(openmw_path).next()[1]
|
||||
openmw_headers = insensitive_glob(os.path.join(openmw_path, "*.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]
|
||||
|
||||
breathe_projects_source = {
|
||||
|
|
Loading…
Reference in a new issue