mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
add back compiler options used by antimov
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
cmake_minimum_required(VERSION 3.4.1)
|
||||
include_directories( playfair llhttp )
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Ofast -march=native -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g")
|
||||
|
||||
aux_source_directory(. play_src)
|
||||
set(DIR_SRCS ${play_src})
|
||||
|
||||
@@ -12,18 +14,14 @@ add_library( airplay
|
||||
find_library( LIBPLIST NAMES plist plist-2.0 )
|
||||
|
||||
target_link_libraries( airplay
|
||||
pthread
|
||||
pthread
|
||||
playfair
|
||||
llhttp
|
||||
${LIBPLIST} )
|
||||
|
||||
if( UNIX AND NOT APPLE )
|
||||
find_package(OpenSSL 1.1.1 REQUIRED)
|
||||
target_compile_definitions(airplay PUBLIC OPENSSL_API_COMPAT=0x10101000L)
|
||||
target_link_libraries( airplay OpenSSL::Crypto )
|
||||
target_link_libraries( airplay dns_sd )
|
||||
else()
|
||||
include_directories( /usr/local/opt/openssl@1.1/include/ )
|
||||
target_link_libraries( airplay /usr/local/opt/openssl@1.1/lib/libcrypto.a )
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user