Without specifying the input files the offsets will not automatically be regenerated when building for different architectures. That is very risky as it will cause crashes rather than build errors.

TEST=trybots

BUG=1185

Review URL: https://webrtc-codereview.appspot.com/975006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3303 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org 2012-12-18 08:38:50 +00:00
parent 10abe25f6d
commit eaebeb36ae

View File

@ -426,8 +426,18 @@
{
# Take archived .a file and unpack it unto .o files.
'action_name': 'unpack_lib_posix',
'variables': {
'conditions': [
['OS=="mac"', {
'libvpx_asm_offset_a': '<(LIB_DIR)/libvpx_asm_offsets.a',
}, {
'libvpx_asm_offset_a': '<(LIB_DIR)/third_party/libvpx/libvpx_asm_offsets.a',
}],
],
},
'inputs': [
'unpack_lib_posix.sh',
'<(libvpx_asm_offset_a)',
],
'outputs': [
'<(INTERMEDIATE_DIR)/asm_com_offsets.o',
@ -437,8 +447,7 @@
'action': [
'<(DEPTH)/third_party/libvpx/unpack_lib_posix.sh',
'-d', '<(INTERMEDIATE_DIR)',
'-a', '<(LIB_DIR)/libvpx_asm_offsets.a',
'-a', '<(LIB_DIR)/third_party/libvpx/libvpx_asm_offsets.a',
'-a', '<(libvpx_asm_offset_a)',
'-f', 'asm_com_offsets.o',
'-f', 'asm_dec_offsets.o',
'-f', 'asm_enc_offsets.o',