mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 09:57:32 +09:00
[BETA] macOS support
This commit is contained in:
parent
ec56576a88
commit
2ab5bcf93d
32 changed files with 393 additions and 1386 deletions
|
|
@ -468,6 +468,8 @@ av_xtea_init
|
|||
av_xtea_le_crypt
|
||||
av_xtea_le_init
|
||||
avpriv_alloc_fixed_dsp
|
||||
avpriv_atomic_int_add_and_fetch
|
||||
avpriv_atomic_ptr_cas
|
||||
avpriv_cga_font
|
||||
avpriv_dict_set_timestamp
|
||||
avpriv_float_dsp_alloc
|
||||
|
|
|
|||
|
|
@ -8,9 +8,8 @@
|
|||
if CONFIG['FFVPX_ASFLAGS']:
|
||||
DIRS += ['x86']
|
||||
|
||||
# 'dummy_funcs.c',
|
||||
|
||||
SharedLibrary('mozavutil')
|
||||
|
||||
SOURCES += [
|
||||
'adler32.c',
|
||||
'aes.c',
|
||||
|
|
@ -43,7 +42,7 @@ SOURCES += [
|
|||
'hash.c',
|
||||
'hmac.c',
|
||||
'hwcontext.c',
|
||||
'hwcontext_cuda.c',
|
||||
# 'hwcontext_cuda.c', # DISABLED: macOS does not support CUDA/NVCUVID
|
||||
'imgutils.c',
|
||||
'integer.c',
|
||||
'intmath.c',
|
||||
|
|
@ -83,7 +82,7 @@ SOURCES += [
|
|||
'xtea.c',
|
||||
]
|
||||
|
||||
SYMBOLS_FILE = 'avutil.symbols'
|
||||
SYMBOLS_FILE = 'avutil.symbols'
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
|
||||
OS_LIBS += CONFIG['REALTIME_LIBS']
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ typedef int x86_reg;
|
|||
#define HAVE_7REGS (ARCH_X86_64 || (HAVE_EBX_AVAILABLE && HAVE_EBP_AVAILABLE))
|
||||
#define HAVE_6REGS (ARCH_X86_64 || (HAVE_EBX_AVAILABLE || HAVE_EBP_AVAILABLE))
|
||||
|
||||
#if ARCH_X86_64 && defined(PIC)
|
||||
#if ARCH_X86_64 && (defined(PIC) || defined(__PIC__) || defined(__pic__))
|
||||
# define BROKEN_RELOCATIONS 1
|
||||
#endif
|
||||
|
||||
|
|
@ -103,7 +103,7 @@ typedef int x86_reg;
|
|||
#define LABEL_MANGLE(a) EXTERN_PREFIX #a
|
||||
|
||||
// Use rip-relative addressing if compiling PIC code on x86-64.
|
||||
#if ARCH_X86_64 && defined(PIC)
|
||||
#if ARCH_X86_64 && (defined(PIC) || defined(__PIC__) || defined(__pic__))
|
||||
# define LOCAL_MANGLE(a) #a "(%%rip)"
|
||||
#else
|
||||
# define LOCAL_MANGLE(a) #a
|
||||
|
|
|
|||
|
|
@ -3,19 +3,24 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
SOURCES += [
|
||||
'cpu.c',
|
||||
'cpuid.asm',
|
||||
'emms.asm',
|
||||
'fixed_dsp.asm',
|
||||
'fixed_dsp_init.c',
|
||||
'float_dsp.asm',
|
||||
'float_dsp_init.c',
|
||||
'imgutils.asm',
|
||||
'imgutils_init.c',
|
||||
'lls.asm',
|
||||
'lls_init.c'
|
||||
]
|
||||
if CONFIG['OS_TARGET'] == 'Darwin':
|
||||
SOURCES += [
|
||||
'x86util_stub.c',
|
||||
]
|
||||
else:
|
||||
SOURCES += [
|
||||
'cpu.c',
|
||||
'cpuid.asm',
|
||||
'emms.asm',
|
||||
'fixed_dsp.asm',
|
||||
'fixed_dsp_init.c',
|
||||
'float_dsp.asm',
|
||||
'float_dsp_init.c',
|
||||
'imgutils.asm',
|
||||
'imgutils_init.c',
|
||||
'lls.asm',
|
||||
'lls_init.c',
|
||||
]
|
||||
|
||||
FINAL_LIBRARY = 'mozavutil'
|
||||
|
||||
|
|
|
|||
22
media/ffvpx/libavutil/x86/x86util_stub.c
Normal file
22
media/ffvpx/libavutil/x86/x86util_stub.c
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
// Empty stub to satisfy build system on macOS
|
||||
#include <stdint.h>
|
||||
|
||||
// CPU flags: return 0 (no SIMD)
|
||||
int ff_get_cpu_flags_x86(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Fixed DSP: do nothing
|
||||
void ff_fixed_dsp_init_x86(void *dsp) {
|
||||
(void)dsp;
|
||||
}
|
||||
|
||||
// Float DSP: do nothing
|
||||
void ff_float_dsp_init_x86(void *fdsp) {
|
||||
(void)fdsp;
|
||||
}
|
||||
|
||||
// LLS init: do nothing
|
||||
void ff_init_lls_x86(void *lls) {
|
||||
(void)lls;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue