Skip to content
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

cmake improvements (integrate into synchronize.py) #4347

Merged
merged 6 commits into from
Jul 4, 2018

Conversation

athei
Copy link
Contributor

@athei athei commented Jul 2, 2018

Like discussed in #4341 I made some improvements to the cmake build system and integrated it into the synchronize.py architecture. This pull request only touches cmake files and the python thing.

This is the preparation pull request for the one that adds an option to cmake to disable threading.

The normal build file still builds. This is no wonder as I did not touched any files of them. However, the qmake build does not build for me:
make: *** No rule to make target profiles/Tier22, needed by SimulationCraft.app/Contents/Resources/profiles/Tier22. Stop.

But this is also the case for bfa-dev and was not broken by my changes.

athei added 6 commits July 2, 2018 19:23
In addition update qt configuration to new format:
	- WebKit no longer available (only WebEngine)
	- Use new CONFIG instead of COMPONENT style discovery
	- People with old qt5 can still use the Makefile instead of cmake
It effects an engine *.cpp file that provides the hash
to its users and should therefore reside in the corresponding
CMakeLists.txt. This helps us in maintining a clean root
CMakeLists.txt.
Also prevent now obsolete code in synchronize.py that oberverwites
.pri files with its own contents. This is not neccessary as these
are the files we edit by hand.
Before this patch the whole cmake file was overwritten on
synchronize.py. Now we generate a source file list for inclusion
just like for the other build systems and avoid globbing for cmake.
@scamille
Copy link
Member

scamille commented Jul 3, 2018

Looks good. I haven't tested it, but that can be done after the merge ;)

@athei
Copy link
Contributor Author

athei commented Jul 4, 2018

Glad to hear. We are waiting for nav to look into it? I am just asking because I have follow up patches in the pipeline :)

@navv1234 navv1234 merged commit 509d892 into simulationcraft:bfa-dev Jul 4, 2018
@scamille
Copy link
Member

scamille commented Jul 4, 2018

add_compile_options(-fcolor-diagnostics) does not work for me. (Ubuntu 18.04 on Windows, using G++8.1.0):

c++: error: unrecognized command line option ‘-fcolor-diagnostics’

@athei
Copy link
Contributor Author

athei commented Jul 4, 2018

c++: error: unrecognized command line option ‘-fcolor-diagnostics’

Ooops. Thought it was the same command line option for clang and gcc. Postet a fix.

@athei athei deleted the cmake_improvements branch July 9, 2018 17:16
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.

3 participants