mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-23 13:39:46 +00:00
python: setup.py builds Windows core with cmake in release mode
This commit is contained in:
parent
c6b1be8b0b
commit
8aef143f69
@ -56,7 +56,7 @@ Get CMake for free from http://www.cmake.org.
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G "NMake Makefiles" ..
|
||||
cmake -DCMAKE_BUILD_TYPE=RELEASE -G "NMake Makefiles" ..
|
||||
nmake
|
||||
|
||||
After this, find the samples test*.exe, libcapstone_static.lib & libcapstone.dll
|
||||
|
@ -132,7 +132,7 @@ class custom_build_clib(build_clib):
|
||||
os.mkdir("build")
|
||||
os.chdir("build")
|
||||
# Do not build tests & static library
|
||||
os.system('cmake -DCAPSTONE_BUILD_TESTS=0 -DCAPSTONE_BUILD_STATIC=0 -G "NMake Makefiles" ..')
|
||||
os.system('cmake -DCMAKE_BUILD_TYPE=RELEASE -DCAPSTONE_BUILD_TESTS=0 -DCAPSTONE_BUILD_STATIC=0 -G "NMake Makefiles" ..')
|
||||
os.system("nmake")
|
||||
os.chdir("..")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user