-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rearrange tree #489
rearrange tree #489
Conversation
1ecba54
to
33f6a72
Compare
meson.build
Outdated
@@ -181,7 +182,7 @@ cc_warning_flags = cc.get_supported_arguments(cc_warning_flags_test) | |||
cc_flags = [cc_debug_flags, cc_os_flags, cc_warning_flags] | |||
add_project_arguments(cc_flags, language : 'c') | |||
|
|||
incdir = include_directories('src/includes') | |||
incdir = include_directories('src/common') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think collapsing includes/ into common/ is a good pattern. having a dir dedicated to headers for APIs that are meant to be reused across the codebase helps enforce good boundaries. when the dir mixes such "exported" APIs with internal headers, it's hard for other dirs to know what's "internal", and what should be kept that way.
basically, the existence of a header file in a dir should not be a signal by itself that it's OK for reuse outside of the dir.
src/common/meson.build
Outdated
@@ -1,6 +1,35 @@ | |||
rc_misc_c = files([ | |||
'rc-misc.c', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since these files are in common/ now, do they still really need the rc-
prefix on the filename ?
@@ -0,0 +1,9 @@ | |||
executable('checkpath', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm having a hard time seeing why per-program subdirs is an improvement
@@ -201,7 +201,6 @@ subdir('init.d') | |||
subdir('local.d') | |||
subdir('man') | |||
subdir('pkgconfig') | |||
subdir('scripts') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as the compiled code ... having a hard time seeing this as improvement and not just a lot of busywork
3a9b0ef
to
c939c39
Compare
@vapier I'm having a11y issues with the individual review comments, so I'll respond here.
|
@vapier @thesamesam I would like to merge this farely soon, so can you take a look and comment? |
prob want to go through all open comment threads and close them out i don't see anything wrong with the changes other than the existing high level feedback i left already |
c939c39
to
9108caa
Compare
- drop old build system - move shared include and source files to common directory - drop "rc-" prefix from shared include and source files - move executable-specific code to individual directories under src - adjust top-level .gitignore file for new build system
This PR does several things to streamline the source tree.
All of this should not result in any user facing changes. Please review.
@vapier @thesamesam