diff options
| author | ruki <[email protected]> | 2020-12-24 00:35:32 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-24 00:35:32 +0800 |
| commit | 243ddec82d865010efcc35d0989c5fdffb0dff84 (patch) | |
| tree | 0e4c44ea58779b43347a784569a0bec447313d12 /xmake/modules/private/tools/rc | |
| parent | b64f0d5aa9b93b03505acaf050edb6bd422f2aa7 (diff) | |
improve parse header deps
Diffstat (limited to 'xmake/modules/private/tools/rc')
| -rw-r--r-- | xmake/modules/private/tools/rc/parse_deps.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xmake/modules/private/tools/rc/parse_deps.lua b/xmake/modules/private/tools/rc/parse_deps.lua index a31ce4588..778f7b03f 100644 --- a/xmake/modules/private/tools/rc/parse_deps.lua +++ b/xmake/modules/private/tools/rc/parse_deps.lua @@ -24,17 +24,15 @@ import("core.base.hashset") -- normailize path of a dependecy function _normailize_dep(dep, projectdir) - - -- tranlate dep path if path.is_absolute(dep) then dep = path.translate(dep) else dep = path.absolute(dep, projectdir) end - - -- save it if belong to the project if dep:startswith(projectdir) then return path.relative(dep, projectdir) + else + return deps end end |
