Skip to content

Commit ed3ee52

Browse files
committed
Add .bld directories to exported project
1 parent e4a40cd commit ed3ee52

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/project_api.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""" The new way of doing exports """
22
import sys
33
from os.path import join, abspath, dirname, exists
4-
from os.path import basename, relpath, normpath
4+
from os.path import basename, relpath, normpath, splitext
55
from os import makedirs, walk
66
ROOT = abspath(join(dirname(__file__), ".."))
77
sys.path.insert(0, ROOT)
@@ -125,6 +125,12 @@ def zip_export(file_name, prefix, resources, project_files, inc_repos):
125125
source,
126126
join(prefix, loc,
127127
relpath(source, res.file_basepath[source])))
128+
for source in res.lib_builds:
129+
target_dir, _ = splitext(source)
130+
dest = join(prefix, loc,
131+
relpath(target_dir, res.file_basepath[source]),
132+
".bld", "bldrc")
133+
zip_file.write(source, dest)
128134

129135

130136

0 commit comments

Comments
 (0)