Commit Graph

58 Commits

Author SHA1 Message Date
Catena cyber 170904d5f1 Integrate capstone with oss-fuzz (#1150)
Compile the fuzz target with the rest of the tests
2018-06-01 20:46:20 +08:00
Connor Davis 5c17897497 CMakeLists.txt: Add cstool build option (#1118) 2018-04-26 10:15:59 +08:00
Alberto Garcia Illera a6b4e42788 force Capstone to be build using MT (#1109) 2018-03-29 22:18:04 +08:00
Andrew D'Addesio 7185555a6e Fix pkg-config output when using cmake (#1098) 2018-03-18 08:54:56 +08:00
Nguyen Anh Quynh f5b0e3cf43 cmake: do not set libsuffix=64 on MacOS. fix issue #963 2017-07-19 22:53:09 +08:00
Fernie 408de035d2 detect 64bit library location. compatibility for 64bit systems. (#963)
credit goes to Theo. (Theodore Papadopoulo Theodore.Papadopoulo at inria.fr https://cmake.org/pipermail/cmake/2013-July/055374.html)
2017-07-18 08:26:39 +08:00
Nick Briggs ce3f0d0935 Rename test.c to test_basic.c with corresponding executable name change. (#923)
* 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
2017-05-11 22:58:12 +07:00
Gabor Buella 3cc69be43d cmake - fix SOVERSION property used for libcapstone.so (#914)
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
2017-05-02 09:25:32 +08:00
Gabor Buella b9a2c1a73c cmake: install pkg config file 2017-04-30 23:19:54 +08:00
Nguyen Anh Quynh adec3a88d5 CMake: bump version to 3.0.5 2017-02-26 10:45:16 +08:00
microplankton ae79bd95de Add a check of MSVC variable before setting flags that link the libra… (#814)
* 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
2016-11-16 08:11:36 +08:00
Nguyen Anh Quynh fbd3bcbcb2 cstool: prepare for multiple C sources 2016-10-19 23:01:31 +08:00
Nguyen Anh Quynh ae02bf1c5d cstool: compile with CMake using CMakeLists.txt in root dir 2016-10-11 23:24:15 +08:00
Nguyen Anh Quynh f7ff8f6b6e cstool: support CMake 2016-10-11 16:50:51 +08:00
Nguyen Anh Quynh b158b93a7d remove myinttypes.h 2016-04-26 09:47:30 +08:00
Nguyen Anh Quynh 33bf2d11b9 bump version to 3.0.4 2015-06-08 22:29:55 +08:00
Nguyen Anh Quynh 77ff056db8 Merge branch 'v3' of https://github.com/aquynh/capstone into v3 2015-05-08 23:06:40 +08:00
Nguyen Anh Quynh 3dd64166b8 Merge branch 'master' into v3 2015-05-08 23:06:14 +08:00
Nguyen Anh Quynh 1bfa480f74 bump version to 3.0.3 2015-05-08 15:22:26 +08:00
learn_more caf47a5678 Include common headers in cmake projects. 2015-04-23 20:39:48 +02:00
learn_more 6e76037638 small mixup 2015-04-16 19:15:14 +02:00
learn_more 0749930bea missed option 2015-04-15 21:39:10 +02:00
learn_more 317682bbc4 Include the headers per arch
add missing x86 c file.
rename SOURCES_CORE to SOURCES_ENGINE (to avoid confusion with XCore)
Group files in visual studio solution.
2015-04-15 20:31:32 +02:00
learn_more 9592a4cea6 missing c file. 2015-04-15 20:29:16 +02:00
learn_more 43f8ac1bce split cmake sources out in groups.
fix indenting to be consistent.
2015-04-15 12:15:26 +02:00
learn_more 455fa062b0 whitespace, as requested. 2015-04-14 17:00:57 +02:00
learn_more c85e3c364e Change msvc ImportLib for static target to 'capstone_dll.lib'
This is the same as e268f46 changed in the vcxproj file.
2015-04-14 15:39:07 +02:00
reverser bcf09f440d Add support to embed Capstone into OS X kernel extensions. 2015-04-10 23:28:12 +08:00
Nguyen Anh Quynh cd3d186944 bump version to 3.0.2 for next stable release 2015-02-25 12:27:26 +08:00
Nguyen Anh Quynh 4822f99190 CMake: add new option CAPSTONE_BUILD_STATIC_RUNTIME 2015-02-03 18:25:12 +08:00
Nguyen Anh Quynh e4c0f6c1f6 CMake: bump version to 3.0.1 2015-01-30 11:25:24 +08:00
flyingsymbols d91f964d40 * Fixed bug in Thumb2 pop caused by me incorrectly assuming that
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
2014-10-23 12:04:23 -04:00
Nguyen Anh Quynh a8fd71f406 CMake: fix option CAPSTONE_X86_ATT_DISABLE. bug reported by Yegor Derevenets 2014-10-14 07:55:30 +08:00
Nguyen Anh Quynh 0a2eca7c6c modify API cs_disasm_iter() and add new API cs_malloc(). also adds sample code test_iter.c 2014-10-11 00:36:16 +08:00
Yegor Derevenets ebc4ced3cf Fixed a typo in a CMake option name 2014-09-22 10:43:03 +02:00
Yegor Derevenets 17176cd838 platform.h must be also installed 2014-09-21 16:11:34 +02:00
Nguyen Anh Quynh 8f67ec29e5 Added CAPSTONE prefix to CMake options 2014-09-20 10:55:50 +08:00
Yegor Derevenets b4d78d916e Added CAPSTONE prefix to CMake options 2014-09-19 18:39:22 +02:00
Nguyen Anh Quynh d17e28c7de cmake: rename static library libcapstone.lib to capstone.lib 2014-08-27 10:57:43 +08:00
baguette 86e845056d renamed CAPSTONE_NO_ATT to CAPSTONE_X86_ATT_DISABLE, added options to makefile, cmake, compile.txt 2014-08-17 20:59:05 +02:00
Ali Rizvi-Santiago 10053ba626 Modified CMakeLists.txt to re-enable support for building both static and shared versions of the library.
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.
2014-06-03 21:07:03 +00:00
Nguyen Anh Quynh 1969b83b9b windows: expose public APIs with dllimport for user apps 2014-06-03 23:10:07 +08:00
Nguyen Anh Quynh 07c3693cf2 cmake: properly export public APIs in capstone.DLL. thanks to Daniel Pistelli for helping to fix this issue 2014-06-03 18:33:15 +08:00
Nguyen Anh Quynh d765ab21cb cmake: define macro CAPSTONE_USE_SYS_DYN_MEM when USE_DEFAULT_ALLOC is defined 2014-06-03 17:38:29 +08:00
Nguyen Anh Quynh de8c689b42 cmake: bump version 2014-05-31 10:45:15 +08:00
Nguyen Anh Quynh 758fcbe69f cmake: fix CMakeLists.txt: rename library to 'capstone' & build static/shared libs in unified way. patch by Daniel Pistelli 2014-05-31 10:44:27 +08:00
Nguyen Anh Quynh ecc5ffb16c cmake: use USE_SYS_DYN_MEM instead of USE_DEFAULT_ALLOC for consistency 2014-05-28 22:14:55 +08:00
Nguyen Anh Quynh 7343848662 cmake: build shared library libcapstone & static library libcapstone_static 2014-05-28 21:55:37 +08:00
Nguyen Anh Quynh a71a27b87f cmake: only compile X86ATTInstPrinter.c in non-diet mode 2014-05-28 21:20:30 +08:00
Nguyen Anh Quynh 56e4efdc35 cmake: cleanup 2014-05-28 16:27:53 +08:00