mirror of
https://github.com/Dasharo/subhook.git
synced 2026-03-06 15:04:20 -08:00
FreeBSD build support
This commit is contained in:
@@ -3,6 +3,7 @@ language: c
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
- freebsd
|
||||
env:
|
||||
global:
|
||||
- CTEST_OUTPUT_ON_FAILURE=ON
|
||||
@@ -20,6 +21,7 @@ addons:
|
||||
- yasm
|
||||
before_install:
|
||||
- if [ $TRAVIS_OS_NAME == osx ]; then brew install yasm; fi
|
||||
- if [ $TRAVIS_OS_NAME == freebsd ]; then sudo pkg install -y yasm; fi
|
||||
|
||||
before_script:
|
||||
- cmake . -DSUBHOOK_FORCE_32BIT=`([ $ARCH = x86 ] && echo 'ON') || echo 'OFF'`
|
||||
|
||||
@@ -41,11 +41,8 @@
|
||||
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
#define SUBHOOK_WINDOWS
|
||||
#elif defined __linux__
|
||||
#define SUBHOOK_LINUX
|
||||
#define SUBHOOK_UNIX
|
||||
#elif defined __APPLE__
|
||||
#define SUBHOOK_MACOS
|
||||
#elif defined __linux__ || defined __APPLE__ \
|
||||
|| defined __FreeBSD__ || defined __OpenBSD__ || defined __NetBSD__
|
||||
#define SUBHOOK_UNIX
|
||||
#else
|
||||
#error Unsupported operating system
|
||||
|
||||
Reference in New Issue
Block a user