2023-07-10 06:55:44 +00:00
|
|
|
SET (OPUS_INSTALL_PKG_CONFIG_MODULE OFF)
|
|
|
|
SET (OPUS_INSTALL_CMAKE_CONFIG_MODULE OFF)
|
|
|
|
SET (OPUS_X86_MAY_HAVE_AVX OFF)
|
|
|
|
SET (OPUS_X86_MAY_HAVE_SSE4_1 OFF)
|
2023-07-14 08:29:36 +00:00
|
|
|
SET (OPUS_ENABLE_FLOAT_API ON)
|
2023-07-14 11:44:13 +00:00
|
|
|
SET (OPUS_STACK_PROTECTOR OFF)
|
|
|
|
SET (OPUS_NONTHREADSAFE_PSEUDOSTACK OFF)
|
|
|
|
SET (OPUS_USE_ALLOCA ON)
|
|
|
|
|
2023-07-10 06:55:44 +00:00
|
|
|
ADD_SUBDIRECTORY (opus)
|
|
|
|
|
2023-07-14 11:44:13 +00:00
|
|
|
IF (OPUS_NONTHREADSAFE_PSEUDOSTACK)
|
|
|
|
MESSAGE (FATAL_ERROR "Opus should not be using NONTHREADSAFE_PSEUDOSTACK")
|
|
|
|
ENDIF ()
|
|
|
|
|
2023-06-20 04:33:09 +00:00
|
|
|
INCLUDE_DIRECTORIES (
|
|
|
|
${STAR_EXTERN_INCLUDES}
|
2023-07-12 05:13:30 +00:00
|
|
|
opus/include
|
2023-06-27 09:24:35 +00:00
|
|
|
fmt
|
2023-06-20 04:33:09 +00:00
|
|
|
lua
|
|
|
|
)
|
|
|
|
|
|
|
|
SET (star_extern_HEADERS
|
2023-07-12 05:13:30 +00:00
|
|
|
curve25519/include/curve25519_dh.h
|
|
|
|
curve25519/include/ed25519_signature.h
|
|
|
|
curve25519/include/external_calls.h
|
2023-06-27 09:24:35 +00:00
|
|
|
fmt/core.h
|
|
|
|
fmt/format.h
|
|
|
|
fmt/format-inl.h
|
|
|
|
fmt/ostream.h
|
|
|
|
fmt/printf.h
|
|
|
|
fmt/ranges.h
|
|
|
|
fmt/std.h
|
2023-06-20 04:33:09 +00:00
|
|
|
lauxlib.h
|
|
|
|
lua.h
|
|
|
|
lua.hpp
|
|
|
|
luaconf.h
|
|
|
|
lualib.h
|
|
|
|
tinyformat.h
|
|
|
|
xxhash.h
|
|
|
|
)
|
|
|
|
|
|
|
|
SET (star_extern_SOURCES
|
2023-07-12 05:13:30 +00:00
|
|
|
curve25519/source/sha512.c
|
|
|
|
curve25519/source/curve25519_dh.c
|
|
|
|
curve25519/source/curve25519_mehdi.c
|
|
|
|
curve25519/source/curve25519_order.c
|
|
|
|
curve25519/source/curve25519_utils.c
|
|
|
|
curve25519/source/custom_blind.c
|
|
|
|
curve25519/source/ed25519_sign.c
|
|
|
|
curve25519/source/ed25519_verify.c
|
2023-06-20 04:33:09 +00:00
|
|
|
xxhash.c
|
2023-06-27 09:24:35 +00:00
|
|
|
fmt/format.cc
|
2023-06-20 04:33:09 +00:00
|
|
|
lua/lapi.c
|
|
|
|
lua/lauxlib.c
|
|
|
|
lua/lbaselib.c
|
|
|
|
lua/lbitlib.c
|
|
|
|
lua/lcode.c
|
|
|
|
lua/lcorolib.c
|
|
|
|
lua/lctype.c
|
|
|
|
lua/ldblib.c
|
|
|
|
lua/ldebug.c
|
|
|
|
lua/ldo.c
|
|
|
|
lua/ldump.c
|
|
|
|
lua/lfunc.c
|
|
|
|
lua/lgc.c
|
|
|
|
lua/linit.c
|
|
|
|
lua/liolib.c
|
|
|
|
lua/llex.c
|
|
|
|
lua/lmathlib.c
|
|
|
|
lua/lmem.c
|
|
|
|
lua/loadlib.c
|
|
|
|
lua/lobject.c
|
|
|
|
lua/lopcodes.c
|
|
|
|
lua/loslib.c
|
|
|
|
lua/lparser.c
|
|
|
|
lua/lstate.c
|
|
|
|
lua/lstring.c
|
|
|
|
lua/lstrlib.c
|
|
|
|
lua/ltable.c
|
|
|
|
lua/ltablib.c
|
|
|
|
lua/ltm.c
|
|
|
|
lua/lundump.c
|
|
|
|
lua/lutf8lib.c
|
|
|
|
lua/lvm.c
|
|
|
|
lua/lzio.c
|
|
|
|
)
|
|
|
|
|
|
|
|
ADD_LIBRARY (star_extern OBJECT ${star_extern_SOURCES} ${star_extern_HEADERS})
|
2023-07-13 05:01:07 +00:00
|
|
|
TARGET_LINK_LIBRARIES(star_extern PUBLIC opus)
|