Skip to content

Conversation

@patrick96
Copy link
Member

I completed some refactoring tasks in a single PR, so this is going to be rebased.

I used a single PR because it would take a lot longer to open 5 PRs and have them reviewed and the changes are small enough for them not to interfere with each other too much.
So here's what I did:

  • Made Release the default build type. This reduces the filesize from over 100M to 3. Fixes Size of polybar binary on Ubuntu Cosmic #1497
  • Removed the C compiler from the project because we don't actually use it, but it's still present in many scripts adding complexity
  • Cleaned up gitignore so that each directory that has some ignored files has its own .gitignore
  • Removed the useless Makefile from the project root
  • Completely removed icon_t because it's the same as label_t

If you'd rather have each change in its own PR, let me know.

@patrick96
Copy link
Member Author

Hey @NBonaparte can we get this merged?

The polybar executable with RelWithDebInfo gets over 100MB. And there
really isn't any reason to have users install such huge executables.

Release build type gives you approx. 3.6M executables

Fixes polybar#1497
There isn't a single .c file in the project. It just added bloat
Each directory is responsible for ignoring files
Does basically the same as build.sh
Is exactly the same label_t
The settings.hpp file is now generated in the build folder and doesn't
need to be included in the gitignore

Ref polybar#1726
Copy link
Member

@NBonaparte NBonaparte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@patrick96 patrick96 merged commit d5112c9 into polybar:master Apr 8, 2019
@patrick96 patrick96 deleted the refactor/misc branch April 8, 2019 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants