Commit Graph

506 Commits

Author SHA1 Message Date
David Korth
2825416d8c [zlib] CMakeLists.txt: Set TARGET_INCLUDE_DIRECTORIES() on the library targets. 2016-09-03 23:33:01 -04:00
David Korth
db82a5d897 [zlib] Initial import of zlib-1.2.8, with changes from Gens/GS II and mcrecover.
Unlike the aforementioned two programs, this copy of zlib will *only*
be used for Windows builds, and it will only be used for test suites.
We're using GDI+ instead of libpng, so the only reason we need zlib
is to decompress the compressed reference BMP images used by
RpImageLoaderTest.

Changes compared to upstream zlib-1.2.8:

- Non-CMake build infratsructure has been removed.

- CMakeLists.txt has been edited to prevent building the Win32 resource
  data when being built as a shared library.

- Example binaries are no longer built.

- The GZip functions are now prefixed with "mcr_z_" in order to prevent
  function naming conflicts with Qt4/Win32, which has its own copy of
  zlib that exposes the same functions.

- The OF() and ON() macros have been renamed to _Z_OF() and _Z_ON().
  Based on Gentoo's zlib-1.2.8 patches.

- contrib/ has been stripped of everything but asm-optimized functions.

- 64-bit assembly-optimized routines now check for __x86_64__ in addition
  to __amd64__ for compatibility with certain compilers, e.g. icc.

- CMakeLists.txt adds -DZLIB_CONST to the zlib and zlibstatic targets'
  compile definitions.
2016-09-03 23:25:05 -04:00
David Korth
480675a5ea [extlib] Add CMakeLists.txt and googletest/_MODIFIED_GTEST.txt.
I really need to check for untracked files before committing.
2016-09-02 22:58:29 -04:00
David Korth
4c65f452c7 [googletest] Force static library builds. 2016-09-02 22:57:44 -04:00
David Korth
8c8a444f7b [googletest] Disabled INSTALL() rules.
We aren't installing googletest or googlemock, and because we're setting
EXCLUDE_FROM_ALL, cmake complains about the INSTALL() rules.
2016-09-02 22:23:31 -04:00
David Korth
ddbfadd715 [gtest] Initial import of Google Test 1.8.0.
Google Test will be used for implementing unit tests. The first set of
unit tests will be for testing RpPng with various PNG image formats.

The Google Test code is currently identical to the release archive,
except for the removal of .travis.yml and appveyor.xml.

CMakeLists.txt: Added CTest support. (see cmake/gtest.cmake)

extlibs/CMakeLists.txt: Only build googletest libraries if testing is
enabled and some project depends on them.
2016-09-02 21:01:52 -04:00