Skip to content

Commit 217a74a

Browse files
Allan Sandfeld Jensenpatricia-gallardo
authored andcommitted
Handle frameworks after weak_frameworks addition
Change-Id: I78fda49f758020d617bc2bcbef0a7d9fbd80c097 Reviewed-by: Michal Klocek <[email protected]>
1 parent 847ac10 commit 217a74a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/3rdparty/gn/tools/gn/qmake_link_writer.cc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,22 @@ void QMakeLinkWriter::Run() {
242242
EscapeStringToStream(out_, lib_value, lib_escape_opts);
243243
}
244244
}
245+
const OrderedSet<std::string> all_frameworks = target_->all_frameworks();
246+
for (size_t i = 0; i < all_frameworks.size(); i++) {
247+
const std::string& lib_value = all_frameworks[i];
248+
out_ << " -framework ";
249+
EscapeStringToStream(
250+
out_, lib_value.substr(0, lib_value.size() - framework_ending.size()),
251+
lib_escape_opts);
252+
}
253+
const OrderedSet<std::string> weak_frameworks = target_->all_weak_frameworks();
254+
for (size_t i = 0; i < weak_frameworks.size(); i++) {
255+
const std::string& lib_value = weak_frameworks[i];
256+
out_ << " -weak_framework ";
257+
EscapeStringToStream(
258+
out_, lib_value.substr(0, lib_value.size() - framework_ending.size()),
259+
lib_escape_opts);
260+
}
245261
out_ << std::endl;
246262

247263
// solibs

0 commit comments

Comments
 (0)