* Rename test.c to test_basic.c with corresponding executable name change.
* Fix Makefile, tests/Makefile to comprehend renamed test program. See issue #922
* Fix XCode project to comprehend renamed test program. See issue #922
* Rename python test.py to test_basic.py to parallel C test name. See issue #922
* Rename ocaml test.ml to test_basic.ml to parallel C test name. See issue #922
* Fix MSVC project definitions to comprehend renamed test program. See issue #922
It was set as a global property before, but cmake appears to ignore that,
even after the following fix:
-set_property(GLOBAL PROPERTY SOVERSION SOVERSION ${VERSION_MAJOR})
+set_property(GLOBAL PROPERTY SOVERSION ${VERSION_MAJOR})
So this patch removes the global property, and SOVERSION is now specified as
a target specific property. The result of the cmake install target seems better:
Before:
$ ls -la lib
4375834 May 1 16:05 libcapstone.a
3510040 May 1 16:05 libcapstone.so
After:
$ ls -la lib
4375834 May 1 16:05 libcapstone.a
16 May 1 16:08 libcapstone.so -> libcapstone.so.4
20 May 1 16:08 libcapstone.so.4 -> libcapstone.so.4.0.0
3510040 May 1 16:08 libcapstone.so.4.0.0
The SOVERSION property triggers symlink creation in cmake, see:
https://cmake.org/cmake/help/v3.0/prop_tgt/SOVERSION.html
* Add a check of MSVC variable before setting flags that link the library with the MSVC static runtime
* Move MSVC guard inside the 'foreach' loop used to force static runtime link
ARM_SP == 13, ARM_LR == 14, and ARM_PC == 15, which is not the case
* updated CMakeLists to include building arm regression test
* added explicit casts for 64 bit visual studio 2012 build to get around
truncation warnings from size_t conversion
Removed definition of CAPSTONE_STATIC from capstone.h due to dllimport only really being a performance optimization while CAPSTONE_SHARED is only needed when building the shared version of the library.