Kode / kmake

Meta build system
Other
12 stars 14 forks source link

Fixed `*` not working on absolutePaths. Fixed files not added when using absolutePaths. #48

Open mundusnine opened 1 year ago

mundusnine commented 1 year ago

case 1: image

case 2: image

RobDangerous commented 1 year ago

This treats just like , doesn't it? That's not correct - should match multiple directories and shouldn't. And what is that block doing that's trying to do something specifically with C-files? The matching-algo shouldn't do anything specific to particular file-types.

mundusnine commented 1 year ago

This treats just like , doesn't it? That's not correct - should match multiple directories and shouldn't. And what is that block doing that's trying to do something specifically with C-files? The matching-algo shouldn't do anything specific to particular file-types.

This code actually checks what folders to look in when current is undefined: https://github.com/Kode/kmake/blob/2b4b5a56a2424f0d8b402536d2282088d05445f4/kmake/src/Project.ts#L500C3-L527C4

What seems to happen is when an absolutePath is passed that ends with .c,/.h etc or * right now it doesn't take that into consideration and doesn't searchFiles in that directory. This doesn't do the same logic as for it only says search in the parent directory for includes ending with `and`. Same thing for .h/.c/etc.