VirtualBox

source: vbox/trunk/src/libs/libvorbis-1.3.7/Makefile.kmk@ 96399

最後變更 在這個檔案從96399是 96360,由 vboxsync 提交於 3 年 前

libogg, libvorbis: export to OSE

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.1 KB
 
1# $Id: Makefile.kmk 96360 2022-08-19 20:07:33Z vboxsync $
2## @file
3# Sub-Makefile for libvorbis.
4#
5
6#
7# Copyright (C) 2022 Oracle Corporation
8#
9# Oracle Corporation confidential
10# All rights reserved
11#
12
13SUB_DEPTH = ../../..
14include $(KBUILD_PATH)/subheader.kmk
15
16
17#
18# Need to drop some assembly flags and add some C flags (gcc) present in
19# VBoxR3DllNonPedantic. So, create or own template deriving from it.
20#
21# Note! We ASSUME that see is available here (doesn't build cleanly on 32-bit
22# linux without this assumption). Too bad for anyone with ancient CPUs.
23#
24TEMPLATE_VBOXLIBVORBIS = Template for adjusting assembler and C compiler flags.
25TEMPLATE_VBOXLIBVORBIS_EXTENDS = VBoxR3DllNonPedanticFast
26ifeq ($(KBUILD_TARGET),win)
27 TEMPLATE_VBOXLIBVORBIS_ASFLAGS.amd64 = $(filter-out -Worphan-labels -f win64, $(TEMPLATE_VBoxR3DllNonPedanticFast_ASFLAGS.amd64)) \
28 -f x64
29else
30 TEMPLATE_VBOXLIBVORBIS_CFLAGS = $(filter-out $(VBOX_GCC_fvisibility-hidden), $(TEMPLATE_VBoxR3DllNonPedanticFast_CFLAGS))
31 TEMPLATE_VBOXLIBVORBIS_CFLAGS.amd64 = $(TEMPLATE_VBoxR3DllNonPedanticFast_CFLAGS.amd64) -msse # Needed?
32 TEMPLATE_VBOXLIBVORBIS_CFLAGS.x86 = $(TEMPLATE_VBoxR3DllNonPedanticFast_CFLAGS.x86) -msse
33 TEMPLATE_VBOXLIBVORBIS_ASFLAGS.amd64 = $(filter-out -Worphan-labels, $(TEMPLATE_VBoxR3DllNonPedanticFast_ASFLAGS.amd64))
34 TEMPLATE_VBOXLIBVORBIS_ASFLAGS.x86 = $(filter-out -Worphan-labels, $(TEMPLATE_VBoxR3DllNonPedanticFast_ASFLAGS.x86))
35endif
36
37
38#
39# The VBox libvorbis shared library.
40#
41LIBRARIES += VBox-libvorbis
42VBox-libvorbis_TEMPLATE := VBOXLIBVORBIS
43
44VBox-libvorbis_INCS := \
45 . \
46 include \
47 lib \
48 ../libogg-1.3.5/include
49
50# Include our own config.h. Not required on Windows.
51ifn1of ($(KBUILD_TARGET), win)
52 VBox-libvorbis_DEFS += HAVE_CONFIG_H
53endif
54
55VBox-libvorbis_SOURCES := \
56 lib/mdct.c \
57 lib/smallft.c \
58 lib/block.c \
59 lib/envelope.c \
60 lib/window.c \
61 lib/lsp.c \
62 lib/lpc.c \
63 lib/analysis.c \
64 lib/synthesis.c \
65 lib/psy.c \
66 lib/info.c \
67 lib/floor1.c \
68 lib/floor0.c \
69 lib/res0.c \
70 lib/mapping0.c \
71 lib/registry.c \
72 lib/codebook.c \
73 lib/sharedbook.c \
74 lib/lookup.c \
75 lib/bitrate.c \
76 lib/vorbisenc.c \
77 lib/vorbisfile.c
78
79include $(FILE_KBUILD_SUB_FOOTER)
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette