Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
b07fcf5f
Commit
b07fcf5f
authored
12 years ago
by
John Koleszar
Committed by
Gerrit Code Review
12 years ago
Browse files
Options
Download
Plain Diff
Merge "Revert "make: flatten object file directories"" into experimental
parents
3e976bba
1760c39b
v1.14.0-linphone
1.4.X
experimental
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
forest
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m29-baseline
m31-baseline
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
mcw
mcw2
nextgen
nextgenv2
pcs-2013
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/debargha/playground
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
stable-vp9-decoder
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
vp9-preview
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
v1.3.0
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
build/make/Makefile
+40
-49
build/make/Makefile
examples.mk
+0
-3
examples.mk
libs.mk
+5
-8
libs.mk
test/test.mk
+1
-0
test/test.mk
vp8/vp8cx.mk
+1
-1
vp8/vp8cx.mk
vp9/vp9_common.mk
+4
-4
vp9/vp9_common.mk
with
51 additions
and
65 deletions
build/make/Makefile
+
40
−
49
View file @
b07fcf5f
...
...
@@ -103,60 +103,55 @@ test::
.PHONY
:
testdata
testdata
::
xform_obj_prefix
:=
.objs/
$(
TOOLCHAIN
)
/
xform_obj_path
=
$(
if
$(
1
)
,
$(
addprefix
$(
xform_obj_prefix
)
,
$(
subst /,_,
$(
1
)))
,
$(
xform_obj_prefix
))
xform_obj_path_o_d
=
$(
call xform_obj_path,
$(
1
))
.o
$(
call xform_obj_path,
$(
1
))
.d
define
obj_rules_template
$(BUILD_PFX)$(call xform_obj_path,$(1))%.c.d
:
$(1)%.c
$(
if
$(
quiet
)
,@echo
" [DEP]
$$
@"
)
$(
qexec
)
mkdir
-p
$$(
dir
$$
@
)
$(
qexec
)$(
CC
)
$$(
INTERNAL_CFLAGS
)
$$(
CFLAGS
)
-M
$$
< |
$(
fmt_deps
)
>
$$
@
$(BUILD_PFX)$(call xform_obj_path,$(1))%.c.o
:
$(1)%.c
$(
if
$(
quiet
)
,@echo
" [CC]
$$
@"
)
$(
qexec
)$(
CC
)
$$(
INTERNAL_CFLAGS
)
$$(
CFLAGS
)
-c
-o
$$
@
$$
<
$(BUILD_PFX)$(call xform_obj_path,$(1))%.cc.d
:
$(1)%.cc
$(
if
$(
quiet
)
,@echo
" [DEP]
$$
@"
)
$(
qexec
)
mkdir
-p
$$(
dir
$$
@
)
$(
qexec
)$(
CXX
)
$$(
INTERNAL_CFLAGS
)
$$(
CXXFLAGS
)
-M
$$
< |
$(
fmt_deps
)
>
$$
@
$(BUILD_PFX)$(call xform_obj_path,$(1))%.cc.o
:
$(1)%.cc
$(
if
$(
quiet
)
,@echo
" [CXX]
$$
@"
)
$(
qexec
)$(
CXX
)
$$(
INTERNAL_CFLAGS
)
$$(
CXXFLAGS
)
-c
-o
$$
@
$$
<
$(BUILD_PFX)$(call xform_obj_path,$(1))%.asm.d
:
$(1)%.asm
$(
if
$(
quiet
)
,@echo
" [DEP]
$$
@"
)
$(
qexec
)
mkdir
-p
$$(
dir
$$
@
)
$(BUILD_PFX)%.c.d
:
%.c
$(
if
$(
quiet
)
,@echo
" [DEP]
$@
"
)
$(
qexec
)
mkdir
-p
$(
dir
$@
)
$(
qexec
)$(
CC
)
$(
INTERNAL_CFLAGS
)
$(
CFLAGS
)
-M
$<
|
$(
fmt_deps
)
>
$@
$(BUILD_PFX)%.c.o
:
%.c
$(
if
$(
quiet
)
,@echo
" [CC]
$@
"
)
$(
qexec
)$(
CC
)
$(
INTERNAL_CFLAGS
)
$(
CFLAGS
)
-c
-o
$@
$<
$(BUILD_PFX)%.cc.d
:
%.cc
$(
if
$(
quiet
)
,@echo
" [DEP]
$@
"
)
$(
qexec
)
mkdir
-p
$(
dir
$@
)
$(
qexec
)$(
CXX
)
$(
INTERNAL_CFLAGS
)
$(
CXXFLAGS
)
-M
$<
|
$(
fmt_deps
)
>
$@
$(BUILD_PFX)%.cc.o
:
%.cc
$(
if
$(
quiet
)
,@echo
" [CXX]
$@
"
)
$(
qexec
)$(
CXX
)
$(
INTERNAL_CFLAGS
)
$(
CXXFLAGS
)
-c
-o
$@
$<
$(BUILD_PFX)%.asm.d
:
%.asm
$(
if
$(
quiet
)
,@echo
" [DEP]
$@
"
)
$(
qexec
)
mkdir
-p
$(
dir
$@
)
$(
qexec
)$(
SRC_PATH_BARE
)
/build/make/gen_asm_deps.sh
\
--build-pfx
=
$(
BUILD_PFX
)
--depfile
=
$
$
@
$
$(
ASFLAGS
)
$
$
<
>
$
$
@
--build-pfx
=
$(
BUILD_PFX
)
--depfile
=
$@
$(
ASFLAGS
)
$<
>
$@
$(BUILD_PFX)
$(call xform_obj_path,$(1))
%.asm.o
:
$(1)
%.asm
$(
if
$(
quiet
)
,@echo
" [AS]
$
$
@"
)
$(
qexec
)$(
AS
)
$
$(
ASFLAGS
)
-o
$
$
@
$
$
<
$(BUILD_PFX)%.asm.o
:
%.asm
$(
if
$(
quiet
)
,@echo
" [AS]
$@
"
)
$(
qexec
)$(
AS
)
$(
ASFLAGS
)
-o
$@
$<
$(BUILD_PFX)
$(call xform_obj_path,$(1))
%.s.d
:
$(1)
%.s
$(
if
$(
quiet
)
,@echo
" [DEP]
$
$
@"
)
$(
qexec
)
mkdir
-p
$
$(
dir
$
$
@
)
$(BUILD_PFX)%.s.d
:
%.s
$(
if
$(
quiet
)
,@echo
" [DEP]
$@
"
)
$(
qexec
)
mkdir
-p
$(
dir
$@
)
$(
qexec
)$(
SRC_PATH_BARE
)
/build/make/gen_asm_deps.sh
\
--build-pfx
=
$(
BUILD_PFX
)
--depfile
=
$
$
@
$
$(
ASFLAGS
)
$
$
<
>
$
$
@
--build-pfx
=
$(
BUILD_PFX
)
--depfile
=
$@
$(
ASFLAGS
)
$<
>
$@
$(BUILD_PFX)
$(call xform_obj_path,$(1))
%.s.o
:
$(1)
%.s
$(
if
$(
quiet
)
,@echo
" [AS]
$
$
@"
)
$(
qexec
)$(
AS
)
$
$(
ASFLAGS
)
-o
$
$
@
$
$
<
$(BUILD_PFX)%.s.o
:
%.s
$(
if
$(
quiet
)
,@echo
" [AS]
$@
"
)
$(
qexec
)$(
AS
)
$(
ASFLAGS
)
-o
$@
$<
.PRECIOUS
:
%.c.S
%.c.S
:
CFLAGS += -DINLINE_ASM
$(BUILD_PFX)
$(call xform_obj_path,$(1))
%.c.S
:
$(1)
%.c
$(
if
$(
quiet
)
,@echo
" [GEN]
$
$
@"
)
$(
qexec
)$(
CC
)
-S
$
$(
CFLAGS
)
-o
$
$
@
$
$
<
$(BUILD_PFX)%.c.S
:
%.c
$(
if
$(
quiet
)
,@echo
" [GEN]
$@
"
)
$(
qexec
)$(
CC
)
-S
$(
CFLAGS
)
-o
$@
$<
.PRECIOUS
:
%.asm.s
$(BUILD_PFX)$(call xform_obj_path,$(1))%.asm.s
:
$(1)%.asm
$(
if
$(
quiet
)
,@echo
" [ASM CONVERSION]
$$
@"
)
$(
qexec
)
mkdir
-p
$$(
dir
$$
@
)
$(
qexec
)$(
ASM_CONVERSION
)
<
$$
<
>
$$
@
endef
$(BUILD_PFX)%.asm.s
:
%.asm
$(
if
$(
quiet
)
,@echo
" [ASM CONVERSION]
$@
"
)
$(
qexec
)
mkdir
-p
$(
dir
$@
)
$(
qexec
)$(
ASM_CONVERSION
)
<
$<
>
$@
# If we're in debug mode, pretend we don't have GNU strip, to fall back to
# the copy implementation
...
...
@@ -198,7 +193,7 @@ cond_enabled=$(if $(filter yes,$($(1))), $(call enabled,$(2)))
find_file1
=
$(
word 1,
$(
wildcard
$(
subst //,/,
$(
addsuffix /
$(
1
)
,
$(
2
)))))
find_file
=
$(
foreach f,
$(
1
)
,
$(
call find_file1,
$(
strip
$(
f
))
,
$(
strip
$(
2
)))
)
obj_pats
=
.c
=
.c.o
$(
AS_SFX
)
=
$(
AS_SFX
)
.o .cc
=
.cc.o
objs
=
$(
addprefix
$(
BUILD_PFX
)
,
$(
call xform_obj_path,
$(
foreach p,
$(
obj_pats
)
,
$(
filter %.o,
$(
1:
$(
p
)))
))
)
objs
=
$(
addprefix
$(
BUILD_PFX
)
,
$(
foreach p,
$(
obj_pats
)
,
$(
filter %.o,
$(
1:
$(
p
)))
))
install_map_templates
=
$(
eval
$(
call install_map_template,
$(
1
)
,
$(
2
)))
...
...
@@ -306,10 +301,6 @@ endif
#
# Configuration dependent rules
#
SRC_DIRS
:=
$(
patsubst %/,%,
$(
sort
$(
dir
$(
SRCS
))))
$(
foreach
d,
$(
SRC_DIRS
)
,
$(
eval
$(
call obj_rules_template,
$(
d
)
/
)))
$(
eval
$(
call obj_rules_template
))
# for ./
$(
call
pairmap,install_map_templates,
$(
INSTALL_MAPS
))
DOCS
=
$(
call cond_enabled,CONFIG_INSTALL_DOCS,DOCS
)
...
...
This diff is collapsed.
Click to expand it.
examples.mk
+
0
−
3
View file @
b07fcf5f
...
...
@@ -288,6 +288,3 @@ CLEAN-OBJS += examples.doxy samples.dox $(ALL_EXAMPLES:.c=.dox)
DOCS-yes
+=
examples.doxy samples.dox
$(
ALL_EXAMPLES:.c
=
.dox
)
examples.doxy
:
samples.dox $(ALL_EXAMPLES:.c=.dox)
@
echo
"INPUT +=
$^
"
>
$@
## Update the global src list
SRCS
+=
$(
ALL_SRCS
)
This diff is collapsed.
Click to expand it.
libs.mk
+
5
−
8
View file @
b07fcf5f
...
...
@@ -24,20 +24,20 @@ endif
ifeq
($(filter icc gcc,$(TGT_CC)), $(TGT_CC))
OFFSET_PATTERN
:=
'^[a-zA-Z0-9_]* EQU'
define
asm_offsets_template
$$(BUILD_PFX)$(1)
:
$$(BUILD_PFX)$(
call xform_obj_path
,
$(2)
).S
$$(BUILD_PFX)$(1)
:
$$(BUILD_PFX)$(
2
).S
@
echo
" [CREATE]
$$
@"
$$(
qexec
)
LC_ALL
=
C
grep
$$(
OFFSET_PATTERN
)
$$
< |
tr
-d
'$$$$\#'
$$(
ADS2GAS
)
>
$$
@
$$(BUILD_PFX)$(
call xform_obj_path,$(2)
).S
:
$(2)
CLEAN-OBJS
+=
$$(
BUILD_PFX
)$(
1
)
$(
call xform_obj_path,
$(
2
)
)
.S
$$(BUILD_PFX)$(
2
).S
:
$(2)
CLEAN-OBJS
+=
$$(
BUILD_PFX
)$(
1
)
$(
2
)
.S
endef
else
ifeq
($(filter rvct,$(TGT_CC)), $(TGT_CC))
define
asm_offsets_template
$$(BUILD_PFX)$(1)
:
obj_int_extract
$$(BUILD_PFX)$(1)
:
$$(BUILD_PFX)$(
call xform_obj_path
,
$(2)
).o
$$(BUILD_PFX)$(1)
:
$$(BUILD_PFX)$(
2
).o
@
echo
" [CREATE]
$$
@"
$$(
qexec
)
./obj_int_extract rvds
$$
<
$$(
ADS2GAS
)
>
$$
@
OBJS-yes
+=
$$(
BUILD_PFX
)$(
call xform_obj_path,
$(
2
)
)
.o
OBJS-yes
+=
$$(
BUILD_PFX
)$(
2
)
.o
CLEAN-OBJS
+=
$$(
BUILD_PFX
)$(
1
)
$$(filter %$$(ASM).o,$$(OBJS-yes))
:
$$(BUILD_PFX)$(1)
endef
...
...
@@ -389,9 +389,6 @@ LIBVPX_TEST_DATA_PATH ?= .
include
$(SRC_PATH_BARE)/test/test.mk
LIBVPX_TEST_SRCS
=
$(
addprefix
test
/,
$(
call enabled,LIBVPX_TEST_SRCS
))
ifeq
($(CONFIG_VP8_DECODER),yes)
LIBVPX_TEST_SRCS
+=
md5_utils.h md5_utils.c
endif
LIBVPX_TEST_BINS
=
./test_libvpx
LIBVPX_TEST_DATA
=
$(
addprefix
$(
LIBVPX_TEST_DATA_PATH
)
/,
\
$(
call enabled,LIBVPX_TEST_DATA
))
...
...
This diff is collapsed.
Click to expand it.
test/test.mk
+
1
−
0
View file @
b07fcf5f
...
...
@@ -21,6 +21,7 @@ LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += i420_video_source.h
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER)
+=
keyframe_test.cc
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER)
+=
resize_test.cc
LIBVPX_TEST_SRCS-$(CONFIG_VP8_DECODER)
+=
../md5_utils.h ../md5_utils.c
LIBVPX_TEST_SRCS-$(CONFIG_VP8_DECODER)
+=
decode_test_driver.cc
LIBVPX_TEST_SRCS-$(CONFIG_VP8_DECODER)
+=
decode_test_driver.h
LIBVPX_TEST_SRCS-$(CONFIG_VP8_DECODER)
+=
ivf_video_source.h
...
...
This diff is collapsed.
Click to expand it.
vp8/vp8cx.mk
+
1
−
1
View file @
b07fcf5f
...
...
@@ -101,7 +101,7 @@ VP8_CX_SRCS-$(HAVE_SSE2) += encoder/x86/quantize_sse2.asm
ifeq
($(CONFIG_TEMPORAL_DENOISING),yes)
VP8_CX_SRCS-$(HAVE_SSE2)
+=
encoder/x86/denoising_sse2.c
ifeq
($(HAVE_SSE2),yes)
$(call xform_obj_path_o_d,
vp8/encoder/x86/denoising_sse2.c
)
:
CFLAGS += -msse2
vp8/encoder/x86/denoising_sse2.c
.o
:
CFLAGS += -msse2
endif
endif
...
...
This diff is collapsed.
Click to expand it.
vp9/vp9_common.mk
+
4
−
4
View file @
b07fcf5f
...
...
@@ -114,15 +114,15 @@ endif
VP9_COMMON_SRCS-$(HAVE_SSE4_1)
+=
common/x86/vp9_filter_sse4.c
ifeq
($(HAVE_SSE4_1),yes)
$(call xform_obj_path_o_d,
vp9/common/x86/vp9_filter_sse4.c
)
:
CFLAGS += -msse4
vp9/common/x86/vp9_filter_sse4.c
.o
:
CFLAGS += -msse4
endif
VP9_COMMON_SRCS-$(HAVE_SSE2)
+=
common/x86/vp9_filter_sse2.c
VP9_COMMON_SRCS-$(HAVE_SSE2)
+=
common/x86/vp9_sadmxn_x86.c
ifeq
($(HAVE_SSE2),yes)
$(call xform_obj_path_o_d,
vp9/common/x86/vp9_filter_sse2.c
)
:
CFLAGS += -msse2
$(call xform_obj_path_o_d,
vp9/common/x86/vp9_loopfilter_x86.c
)
:
CFLAGS += -msse2
$(call xform_obj_path_o_d,
vp9/common/x86/vp9_sadmxn_x86.c
)
:
CFLAGS += -msse2
vp9/common/x86/vp9_filter_sse2.c
.o
:
CFLAGS += -msse2
vp9/common/x86/vp9_loopfilter_x86.c
.o
:
CFLAGS += -msse2
vp9/common/x86/vp9_sadmxn_x86.c
.o
:
CFLAGS += -msse2
endif
VP9_COMMON_SRCS-$(ARCH_ARM)
+=
common/arm/vp9_arm_systemdependent.c
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets