Use utf8 on MinGW and ANSI with msvc.
The core of the problem is in the $$cat() and write_file() qmake
functions they don't know process UTF-8 encoded files, they use
the ANSI encoding.
Windows RC and manifest files are compiled and embedded only on Windows
and when a shared library is built.
Also removed TinyOrm_mingw.rc file, RC file for MinGW is injected
through the main TinyOrm.rc.in file, I had to do it this way because is
not possible to pass more RC files by qmake's RC_FILE variable, cmake
can do this without problems.
- bugfix FILEFLAGS, FILEFLAGSMASK for debug configuration was not set
Discarded configuration of the version header file by version.hpp.in,
instead the project version is obtained from version.hpp file.
- bugfix removed unused parameters in tiny_resource_and_manifest()
- cmake appended version to TinyUtils
- bugfix debug file flag in Windows RC files
- added Windows RC and manifest files for TinyUtils library
- build checkFileVersion_*() tests only on MSVC and when shared library
build is on
Removed TINY_ORIGINAL_FILENAME from version.hpp.in, instead used
configure_file() by help with file(GENERATE ...) and $<TARGET_FILE_NAME>
to obtain original filename and process TinyOrm.rc.in file.
- changed prefix for all macros to TINYORM_ in the version.hpp header
file to minimize conflicts
- removed tiny_init_target_version_ext(), so version number will be
appended on WIN32 for shared libraries and also for static archives
- used CMAKE_SYSTEM_NAME instead of WIN32
Added support for OriginalFilename in Windows RC file for multi-config
generators.
- changed InternalName in Windows RC file to TinyOrm (from tinyorm)
- added TINY_VERSION_NUM to the version.hpp file