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

a lot of cmake cleanups and windows stuff #627

Merged
merged 37 commits into from
Oct 17, 2013

Conversation

karolherbst
Copy link
Contributor

This pull request will clean up some cmake files and change some special windows behaviour:

  1. instead of looking for *.cpp in cmake files we should list them. Adding new files won't trigger a cmake change, but with the second approach we know that we have to add them to the list
  2. .gitignore updates
  3. adding cmake functions for target installation. I added this, so we have the install logic for targets in one central cmake file (macros.cmake). Also these functions add some IDE support like moving target files and Categories
  4. it reverts the dll and data paths to "bin" and "data" on windows
  5. bumps the embedded boost version to 1.53, because msvc 2013 needs at least 1.52.
  6. improves the patch.bat file for windows (detection of already applied patches
    I merged this branch together with my lodle_working branch:
  7. add workaround for multiple boost installation on windows
  8. gtest
  9. compile some targets on windows with a static runtime
  10. add updater code
  11. removed mfc

Parts of it are done by lodle, and some of his parts were reworked a lot by me. The other cleaned up commits written by lodle will come over the next week.

I've tested it on Linux and windows (nmake and msvc).

@karolherbst
Copy link
Contributor Author

I will add some stuff to this pull request later, so please don't merge it yet

@lodle
Copy link

lodle commented Oct 7, 2013

Need this changset to build on windows lodle@c0d3d5b
lodle@e43382a

@karolherbst
Copy link
Contributor Author

do you want to try out boost-1.54 and see if your issue boost issue is going away?

@karolherbst
Copy link
Contributor Author

Additional Info:

I know that there are no problems with boost and wxWidgets on msvc10 and msvc11. Because msvc12 is still in beta, we should check if newer versions of both libraries are fixing the errors. I know that wxWidgets complained about not knowing msvc11, but this did not result into errors.

@karolherbst
Copy link
Contributor Author

I read, that it is possible to install different msvc installation side by side as long as you install the oldest one first. I think I will install msvc12 here and test is myself.

@lodle
Copy link

lodle commented Oct 8, 2013

Yes you can install them side by side and depending on what visual studio command line you use to run cmake it will select a different visual studio version.

The complaints are fine but we need to tell boost what version to compile with.

@karolherbst
Copy link
Contributor Author

Are there any specific reason why we have to tell boost even for msvc11 and msvc10?

@lodle
Copy link

lodle commented Oct 8, 2013

bjam doesnt pick it up.

@karolherbst
Copy link
Contributor Author

I've reported the boost bug: https://svn.boost.org/trac/boost/ticket/9214

@lodle
Copy link

lodle commented Oct 10, 2013

Missing dumpgen.exe in root folder (neede for official builds)
Missing extra bin pack SetupDownloadUrl(DESURA_EXTRA_BIN "desura_extra_bin.zip" fdb2a4dd704a90e5174c64d3eaf8392b)
browser_loading_spinner.gif is missing

@karolherbst
Copy link
Contributor Author

the browser_loading_spinner.gif will be added with my cmake_install_rework request after this one. I will take care about the other issues here

@karolherbst
Copy link
Contributor Author

@lodle: one thing, dumpgen needs to be ported away from MFC

@karolherbst
Copy link
Contributor Author

this should be ready now

karolherbst added a commit that referenced this pull request Oct 17, 2013
a lot of cmake cleanups and windows stuff
@karolherbst karolherbst merged commit b6e6979 into desura:master Oct 17, 2013
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