You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I may be wrong, but I think CMake always creates them in the folder cmake is run from. Perhaps it would be worth adding a check to the CMake script that warns the user if attempting an in-source build?
Regarding cleaning up the other build systems, I think it is up to the authors if they feel comfortable enough with CMake as the only option.
It would keep generated files out of the source tree, so cleaning up is just removing the build folder. Also, for testing, I have different build folders for mingw-w64 and MSVC, and this would keep the results with the corresponding build.
I don't think the argument that you can run many tests in parallel can counter the fact that the testing framework has been significantly slowed down for single thread usage. Parallelization can be achieved even with previous framework simply by running multiple commands in parallel: python run_tests.py c & python run_tests.py cpp & .... Counting also the fact that uncrustify has also the batch option even faster testing can be achieved.
We need to port more functionality from run_scripts.py to call that script redundant. Till then we need it.
Still, I've found a new issue identified while running the make_version.py which doesn't work with cmake. We have to figure it out how to fix this but I would just call it from cmake.
Still, I've found a new issue identified while running the make_version.py which doesn't work with cmake. We have to figure it out how to fix this but I would just call it from cmake.
Since you cannot necessarily count on people building Uncrustify having cloned the git repository, I don't think we can do what make_version.py does (git describe) as part of the regular build process.
We could put set(PACKAGE_VERSION "0.63") in CMakeLists.txt and then update that in the Python script, or we could write a version tag file and read that from the CMake script?
@jibsenmake_version.py is doing some checks to see if there is a .git or an .hg repository and then runs respective commands to find the commit hashes. I won't be a good idea though to make it part of the build system, that's not what I'm saying. We just have to make it work with cmake.
We could put set(PACKAGE_VERSION "0.63") in CMakeLists.txt and then update that in the Python script, or we could write a version tag file and read that from the CMake script?
Agree. We have to clean the dependency on configure.ac dependency. Also we can send the build directory as a parameter to be used as an output directory instead of the src folder.
I've made a patch for the last issue I've noted before doing the full rollout to cmake.
Do you guys have anything else to add ? I may have missed something.
Activity
mihaipopescu commentedon Aug 3, 2016
Other related issues #470, #538, #600.
jibsen commentedon Aug 3, 2016
I would always recommend doing an out-of-source build with CMake, so all the files created do not end up in the source tree:
Cleaning up is just a matter of removing the build folder.
mihaipopescu commentedon Aug 3, 2016
Can't the output/temp folders be specified ? I would be very surprised if not.
jibsen commentedon Aug 3, 2016
I may be wrong, but I think CMake always creates them in the folder cmake is run from. Perhaps it would be worth adding a check to the CMake script that warns the user if attempting an in-source build?
Regarding cleaning up the other build systems, I think it is up to the authors if they feel comfortable enough with CMake as the only option.
mihaipopescu commentedon Aug 3, 2016
I have no problem with changing the
cwdif that's the only way for cmake. I have little to none experience with CMake.I would agree with any build system as long as it's cross platform and can create native executables for that OS.
Produce error on in-source CMake build
mihaipopescu commentedon Aug 3, 2016
@jibsen I've branched the discussion into a new issue #606. We can keep this one only for CMake related issues.
Add instructions for building with CMake
jibsen commentedon Aug 3, 2016
Thanks. I've opened #605 and #608 to address some of these.
mihaipopescu commentedon Aug 4, 2016
Thanks @jibsen. I'll try them out.
mihaipopescu commentedon Aug 4, 2016
Let me know if you think there should be something else.
jibsen commentedon Aug 4, 2016
The output files from the tests should probably go into the build folder somewhere (using the
--resultsoption). I'll take a look at that.mihaipopescu commentedon Aug 4, 2016
Why ? I think it's good where they are right now in the
testsfolder. The test fw just has to find the executable, that's all I guess.jibsen commentedon Aug 4, 2016
It would keep generated files out of the source tree, so cleaning up is just removing the build folder. Also, for testing, I have different build folders for mingw-w64 and MSVC, and this would keep the results with the corresponding build.
But perhaps I am overcomplicating things?
37 remaining items
mihaipopescu commentedon Aug 16, 2016
I don't think the argument that you can run many tests in parallel can counter the fact that the testing framework has been significantly slowed down for single thread usage. Parallelization can be achieved even with previous framework simply by running multiple commands in parallel:
python run_tests.py c & python run_tests.py cpp & .... Counting also the fact that uncrustify has also the batch option even faster testing can be achieved.mihaipopescu commentedon Aug 22, 2016
We need to port more functionality from
run_scripts.pyto call that script redundant. Till then we need it.Still, I've found a new issue identified while running the
make_version.pywhich doesn't work with cmake. We have to figure it out how to fix this but I would just call it from cmake.jibsen commentedon Aug 23, 2016
Since you cannot necessarily count on people building Uncrustify having cloned the git repository, I don't think we can do what
make_version.pydoes (git describe) as part of the regular build process.We could put
set(PACKAGE_VERSION "0.63")inCMakeLists.txtand then update that in the Python script, or we could write a version tag file and read that from the CMake script?mihaipopescu commentedon Aug 26, 2016
@jibsen
make_version.pyis doing some checks to see if there is a.gitor an.hgrepository and then runs respective commands to find the commit hashes. I won't be a good idea though to make it part of the build system, that's not what I'm saying. We just have to make it work with cmake.Agree. We have to clean the dependency on
configure.acdependency. Also we can send the build directory as a parameter to be used as an output directory instead of the src folder.What do you think ?
mihaipopescu commentedon Aug 26, 2016
We also have a fix for users that are using hg-git extension.
We can add this to the patch.
mihaipopescu commentedon Sep 10, 2016
I've made a patch for the last issue I've noted before doing the full rollout to cmake.
Do you guys have anything else to add ? I may have missed something.
gmaurel commentedon Sep 26, 2016
Do we have anything else to do?
May I close?
dirk-thomas commentedon Sep 26, 2016
I think the last bullet from the first comment is still pending (repository has to be cleaned of old build system files).
gmaurel commentedon Sep 26, 2016
Which one may I remove?
dirk-thomas commentedon Sep 26, 2016
I haven't tried it but from looking at the file system I would guess the following should not be used anymore:
It looks like the following files need to be update to use the new build system / remove / replace autotools related stuff:
dzenanz commentedon Sep 26, 2016
What about folders
manandosx, and filesComments.txt,extras.vpj,uncrustify.vpj,uncrustify.vpwandworking.txt?mihaipopescu commentedon Sep 26, 2016
It's a good time for cleanup. I think we should create two different PRs. One for the old build system cleanup and one for general cleanup.
I think
manit's still used from cmake to generate the manual. We have to check if all files are required.jibsen commentedon Sep 27, 2016
I started a PR for cleaning up the build system files.
We should probably also resolve #650 before any new release.
mihaipopescu commentedon Nov 14, 2016
I'm going to close this now as very few lingering issues remained.