This project is mirrored from https://***** Pull mirroring updated .
  1. 10 Dec, 2016 1 commit
  2. 09 Dec, 2016 1 commit
    • Jeremy Newton's avatar
      Fix DSYSCONF_INSTALL_DIR · c7386503
      Jeremy Newton authored
      I'm not sure if this was changed in cmake recently, but "SYSCONFDIR" is incorrect. It should be SYSCONF_INSTALL_DIR.
      As well CMAKE_INSTALL_PREFIX refers to /usr or /usr/local in linux, so installing it into ${CMAKE_INSTALL_PREFIX}/${SYSCONFDIR} would be incorrect. I've wrapped it in the existing IF( WIN32 ) to preserve the installation for windows, a window dev should fix that if it's incorrect.
  3. 03 Dec, 2016 1 commit
  4. 27 Nov, 2016 1 commit
    • Rafael Kitover's avatar
      add LTO option, disable on GCC+AMD64+Win32 · 37518fc8
      Rafael Kitover authored
      Add ENABLE_LTO cmake option that defaults to ON except on GCC building
      for AMD64 on Win32.
      Also set the cmake variables AMD64 or X86_32 when one of these
      architectures is detected.
  5. 23 Nov, 2016 4 commits
  6. 21 Nov, 2016 2 commits
    • Rafael Kitover's avatar
      pass all compile flags to link step · cdae078e
      Rafael Kitover authored
      This makes -static-libgcc -static-libstdc++ actually work, and is
      probably better for LTO as well.
    • Rafael Kitover's avatar
      add LTO support, fix libssp link, add -ggdb3 -Og · 349bbd13
      Rafael Kitover authored
      Add support for Link Time Optimization (LTO) on gcc and Clang.
      Link libssp only when it is on the system, some toolchains like Ubuntu's
      do not require explicitly linking to libssp. On Win32 try to link it
      In debug builds with GCC, use -ggdb3 -Og, otherwise use -g .
      Two new cmake modules were written for this:
      * FindSSP.cmake -- this is for finding libssp on the system.
      * UseGCCBinUtilsWrappers.cmake -- this is for using gcc binutils
      wrappers such as gcc-ar, which is required for gcc LTO to work.
      These will be distributed separately as well.
  7. 20 Nov, 2016 6 commits
    • Rafael Kitover's avatar
      compile/link flags improvements · 55f6e17f
      Rafael Kitover authored
      * Bump minimum cmake required to 3.3.2, to make sure generator
        expressions work.
      * Force CMAKE_BUILD_TYPE to "Release" if unset, not sure if this
        actually works.
      * Merge the older compile flags block with the new one and use generator
        expressions to make sure the relevant flags apply only to C, C++ or
      * Add -lssp to the end of the link commands for the -fstack-protector*
        options, this is only needed/done for gcc.
      * Add -lversion and -limm32 to SDL2_LIBRARY (Zach asked for this.)
      * Builds on msys2 again!
    • Rafael Kitover's avatar
      set Zach's CXXFLAGS only on gcc/clang · 1dd7ecfe
      Rafael Kitover authored
      Set the flags Zach gave me only when cmake detects gcc or clang, this
      way other generators like Visual Studio will still work fine.
    • Rafael Kitover's avatar
      make ENABLE_SDL default to OFF · bbdc6ca5
      Rafael Kitover authored
      Default building options now just build the Wx port.
      Also set +x on ./installdeps-msys2 .
    • Zach Bacon's avatar
    • Rafael Kitover's avatar
      clean up APPLE block in main CMakeLists.txt · 180ee60c
      Rafael Kitover authored
      Remove some redundant nasm-related code and an outdated comment.
      Objective-C++ code is now separated into an .mm file and nothing is done
      to change the compiler invocation for it.
    • Rafael Kitover's avatar
      add some compiler flags · 40dcb2df
      Rafael Kitover authored
      These are the flags Zach wanted.
      They work fine with gcc and clang, will test what happens with msvc as
  8. 18 Nov, 2016 3 commits
    • Rafael Kitover's avatar
      update to latest version of bin2c.c · 13196c07
      Rafael Kitover authored
      I maintain it here:
      In terms of functionality, this version is pretty much the same as the
      original, just nicer argument handling, a usage screen, etc.
    • Rafael Kitover's avatar
      fix 32bit build support · 902a7a7e
      Rafael Kitover authored
      Make ASM_CORE, ASM_SCALERS and ENABLE_MMX the defaults for 32bit builds
      on intel hosts (the host can be AMD64, as long as the target is 32bits.)
      Move mac nasm search into the mac section of the cmake code and stop
      defaulting to /usr/bin/nasm, this was screwing up the build on msys2.
      Fix src/filters/2xSaImmx.asm to compile and link correctly.
      Add nasm to list of mingw deps for ./installdeps-msys2 .
      Tested that msys2-built Wx binary runs, including with 2xSaI.
      Keyboard doesn't work yet on msys2 builds, but that's a completely
      different issue.
    • Zach Bacon's avatar
  9. 14 Nov, 2016 2 commits
    • Zach Bacon's avatar
      Merge pull request #41 from rkitover/msys2_build · 7c23a381
      Zach Bacon authored
      msys2 build improvements
    • Rafael Kitover's avatar
      msys2 build improvements · 3c30d59a
      Rafael Kitover authored
      * Enable ffmpeg by default only on linux and msys2, it will be disabled
      for normal windows builds and on mac.
      * Set SFML_STATIC_LIBRARIES only for normal non-msys2 windows builds,
      because msys2 does not currently have static versions of the SFML
      sub-libraries, e.g. system, network, etc.. Dynamic linking works fine
      for now.
      * Fix quoting for -DLOCALEDIR, on windows spaces were causing errors in
      make on msys2.
      * Update to upstream FindSFML.cmake .
      * Add an ./installdeps-msys2 script to install all necessary tools and
      libraries on msys2 for building both 64 and 32 bit windows Wx binaries.
      * Add the dependencies/mingw-xaudio/include directory to
      INCLUDE_DIRECTORIES so that XAudio compiles on msys2, as mingw-w64 does
      not currently have XAudio headers. Also check that the user pulled the
      git submodule in the process (the ./installdeps-msys2 script does this
      for you.)
      * Generalize ./installdeps to work on more platforms.
      * Make console Wx app in debug mode so that debug prints will work.
      * Fix game keyboard input for msys2 builds.
      * Add HiDPI support for Windows.
      * Fix the -D*DIR defines to have the correct paths on windows.
  10. 13 Nov, 2016 2 commits
  11. 10 Nov, 2016 3 commits
  12. 08 Nov, 2016 3 commits
    • Zach Bacon's avatar
      Fix compiling d3d · 9e0c8cec
      Zach Bacon authored
    • Zach Bacon's avatar
      Merge pull request #38 from rkitover/master · a2f5d133
      Zach Bacon authored
      fix wx GL viewport + build improvements
    • Rafael Kitover's avatar
      fix wx GL viewport + build improvements · 30f80ab2
      Rafael Kitover authored
      Add GetRealPixelClientSize() method to HiDPIAware and implement using
      wx GetClientSize() in panel.cpp for the generic version, and using
      convertSizeToBacking: in .
      Add an AdjustViewport() method to GLDrawingPanel that sets glViewport()
      using GetRealPixelClientSize(), and call it for the SIZE event. Debug
      print the viewport size here instead of in DrawingPanelInit().
      Build improvements:
      * default to Cairo off for all platforms, currently libcairo2-dev does
        not install on Ubuntu
      * default to ON for ENABLE_LINK and ENABLE_FFMPEG (for game recording),
        this will allow for more fully-featured default builds
      * do not set SFML_STATIC_LIBRARIES on Mac because this is currently
      * fix the Mac bundling/linking script to deal with links in dependent
        libs that already use @rpath (very minor change.)
  13. 06 Nov, 2016 4 commits
  14. 05 Nov, 2016 1 commit
  15. 04 Nov, 2016 2 commits
  16. 03 Nov, 2016 4 commits
    • Zach Bacon's avatar
      Default to OpenAL and OpenGL on linux · ecc6f7c3
      Zach Bacon authored
    • Zach Bacon's avatar
      Merge pull request #34 from rkitover/lion_build · 0e9e003a
      Zach Bacon authored
      Mac OS X 10.7 (Lion) build and runtime support
    • Rafael Kitover's avatar
      Mac OS X 10.7 (Lion) build and runtime support · 01200fad
      Rafael Kitover authored
      Make a custom cstdint.h header file that includes <tr1/cstdint> if
      <cstdint> is not available, because the clang 3.x used on Lion does not
      have it. Change all references to <cstdint> to use it instead.
      Add missing OpenGL header for older OS X in sdl/SDL.cpp .
      When calling HiDPI methods, use respondsToSelector: to check if the
      methods are available first.
      Fix the bundling/linking script to support multiple copies of the same
      dylib with different versions. Necessary to include both the Lion system
      libpng and the brew libpng. Including the system libpng is necessary
      because it is removed in later versions of OS X.
    • Christopher Snowhill's avatar
      Update gbCheats.cpp · 36d84cfa
      Christopher Snowhill authored
      Bounds checking is important.