summaryrefslogtreecommitdiffhomepage
path: root/file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'file.cpp')
-rw-r--r--file.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/file.cpp b/file.cpp
index d4c3f54..6211471 100644
--- a/file.cpp
+++ b/file.cpp
@@ -117,6 +117,11 @@ bool is_static_lib(const std::filesystem::path& p)
return p.extension() == ".a";
}
+bool is_external_lib(const std::filesystem::path& p)
+{
+ return !(is_static_lib(p) || is_dynamic_lib(p) || is_dynamic_lib_link(p));
+}
+
std::filesystem::path simplified_path(const std::filesystem::path& p)
{
if (p.string().substr(0, 2) == "./") {