unicorn/cmake.sh
Chen Huitao 60896de9f4 add CMakeList.txt. build windows binary by using vs2019. (#1134)
* add CMakeList.txt. build windows binary by using vs2019.

* remove macro redefinition warning.

* add nmake.bat.

* update CMakeLists.txt. build successfully on Ubuntu-1804-amd64.

* add CMakeList.txt. build windows binary by using vs2019.

* remove macro redefinition warning.

* add nmake.bat.

* update CMakeLists.txt. build successfully on Ubuntu-1804-amd64.

* Add build specific arch option.

* fix old MSVC inline and mipsel macro.

* add install target and option of embeded MSVCRT lib.

* add cmake.sh and document.

* add xwings and chenhuitao as programmer.

* fix COMPILE-CMAKE. rename txt to md.
2019-09-08 16:42:43 +08:00

18 lines
336 B
Bash
Executable File

#!/bin/sh
# Unicorn Emulator Engine (www.unicorn-engine.org)
# Usage: cmake.sh [x86] [arm] [aarch64] [m68k] [mips] [sparc]
# By chenhuitao 2019
FLAGS="-DCMAKE_BUILD_TYPE=Release"
UNICORN_ARCH="${*}"
if [ -z "${UNICORN_ARCH}" ]; then
cmake "${FLAGS}" ..
else
cmake "${FLAGS}" "-DUNICORN_ARCH=${UNICORN_ARCH}" ..
fi
make -j8