Skip to content

Cleanup build system - #769

Merged
gmaurel merged 4 commits into
uncrustify:masterfrom
jibsen:cleanup-build-system
Oct 1, 2016
Merged

gmaurel merged 4 commits into
uncrustify:masterfrom
jibsen:cleanup-build-system

Conversation

@jibsen

@jibsen jibsen commented Sep 27, 2016

Copy link
Copy Markdown
Contributor

Taking a stab at a PR for cleaning up the build system files as discussed in #604.

@jibsen

jibsen commented Sep 27, 2016

Copy link
Copy Markdown
Contributor Author

While the CI passes, make_version.py currently does not work:

  • print needs parenthesis for Python 3 compatibility
  • scripts/tokenize.py shadows a system module that make_version.py includes
  • it insists on looking for .git in the same folder as the script rather than it's working folder

Perhaps @mihaipopescu has a good way to solve these? Or I could just remove the commit that moved it to the scripts folder for now.

@gmaurel gmaurel added the Engineering Anything to do with building/releasing/deploying uncrustify; with CI; or with the test framework. label Sep 27, 2016
@gmaurel
gmaurel merged commit 821bfa6 into uncrustify:master Oct 1, 2016
@gmaurel

gmaurel commented Oct 1, 2016

Copy link
Copy Markdown
Collaborator

@jibsen
I am missing the file INSTALL

@jibsen

jibsen commented Oct 2, 2016 •

Copy link
Copy Markdown
Contributor Author

The INSTALL file contained generic instructions for building software that uses Autotools. I think the instructions in the README are more useful.

If you need an INSTALL file to comply with some rules for releasing software we could add one pointing to the instructions in the README?

@jibsen jibsen mentioned this pull request Oct 2, 2016
@nivekkagicom

Copy link
Copy Markdown
Contributor

The steps in the README no longer work as autogen.sh, etc. have been removed. So how is one to run autogen.sh or configure which no long exist?

Building using Autotools

Quick start:

$ ./autogen.sh
$ ./configure
$ make
The executable is src/uncrustify. Copy that to your ~/bin/ folder or wherever you want.

@jibsen

jibsen commented Oct 6, 2016

Copy link
Copy Markdown
Contributor Author

The idea is to use CMake to configure the build instead. Work on the CMake solution has been going on for a while, which is why both options are listed in the README. The instructions for Autotools will likely be removed when cleaning up the docs and other non-source files.

A quick start for CMake could be:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make

The executable is in the build folder, you can copy it where you like, or use make install to install it.

@mihaipopescu

Copy link
Copy Markdown
Collaborator

Actually I think @nivekkagicom has a good point. I think we should've updated the information from README.md along with this PR. Now the instructions point to non-existing scripts and from the user pov is not clear that cmake has entirely replaced autotools scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Engineering Anything to do with building/releasing/deploying uncrustify; with CI; or with the test framework.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants