exclude the video_capture_module_test target from building with chromium.

BUG=http://code.google.com/p/webrtc/issues/detail?id=34
TEST=None
Review URL: http://webrtc-codereview.appspot.com/93015

git-svn-id: http://webrtc.googlecode.com/svn/trunk@343 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
xians@google.com 2011-08-10 08:02:41 +00:00
parent 8910f278c5
commit c3976c8c92

View File

@ -183,78 +183,77 @@
], # conditions ], # conditions
}, },
{ ],
'target_name': 'video_capture_module_test', # Exclude the test targets when building with chromium.
'type': 'executable', 'conditions': [
'dependencies': [ ['build_with_chromium==0', {
'video_capture_module', 'targets': [
'../../../../system_wrappers/source/system_wrappers.gyp:system_wrappers', {
'../../../utility/source/utility.gyp:webrtc_utility', 'target_name': 'video_capture_module_test',
'../../../video_render/main/source/video_render.gyp:video_render_module', 'type': 'executable',
'../../../video_coding/main/source/video_coding.gyp:webrtc_video_coding', 'dependencies': [
], 'video_capture_module',
'include_dirs': [ '../../../../system_wrappers/source/system_wrappers.gyp:system_wrappers',
'../interface', '../../../utility/source/utility.gyp:webrtc_utility',
], '../../../video_render/main/source/video_render.gyp:video_render_module',
'sources': [ '../../../video_coding/main/source/video_coding.gyp:webrtc_video_coding',
# sources
'../test/testAPI/cocoa_renderer.h',
'../test/testAPI/cocoa_renderer.mm',
'../test/testAPI/testDefines.h',
'../test/testAPI/testAPI.cpp',
'../test/testAPI/testCameraEncoder.cpp',
'../test/testAPI/testCameraEncoder.h',
'../test/testAPI/testExternalCapture.cpp',
'../test/testAPI/testExternalCapture.h',
'../test/testAPI/testPlatformDependent.cpp',
'../test/testAPI/testPlatformDependent.h',
'../test/testAPI/Logger.h',
'../test/testAPI/Logger.cpp',
'../test/testAPI/Renderer.h',
'../test/testAPI/Renderer.cpp',
], # source
'conditions': [
['build_with_chromium!=0', {
'sources!': [
'../test/testAPI/testCameraEncoder.cpp',
'../test/testAPI/testCameraEncoder.h',
'../test/testAPI/testPlatformDependent.cpp',
'../test/testAPI/testPlatformDependent.h',
], ],
}], 'include_dirs': [
# DEFINE PLATFORM SPECIFIC SOURCE FILES '../interface',
['OS!="mac"', { ],
'sources!': [ 'sources': [
# sources
'../test/testAPI/cocoa_renderer.h', '../test/testAPI/cocoa_renderer.h',
'../test/testAPI/cocoa_renderer.mm', '../test/testAPI/cocoa_renderer.mm',
], '../test/testAPI/testDefines.h',
}], '../test/testAPI/testAPI.cpp',
# DEFINE PLATFORM SPECIFIC INCLUDE AND CFLAGS '../test/testAPI/testCameraEncoder.cpp',
['OS=="mac" or OS=="linux"', { '../test/testAPI/testCameraEncoder.h',
'cflags': [ '../test/testAPI/testExternalCapture.cpp',
'-Wno-write-strings', '../test/testAPI/testExternalCapture.h',
], '../test/testAPI/testPlatformDependent.cpp',
'ldflags': [ '../test/testAPI/testPlatformDependent.h',
'-lpthread -lm', '../test/testAPI/Logger.h',
], '../test/testAPI/Logger.cpp',
}], '../test/testAPI/Renderer.h',
['OS=="linux"', { '../test/testAPI/Renderer.cpp',
'libraries': [ ], # source
'-lrt', 'conditions': [
'-lXext', # DEFINE PLATFORM SPECIFIC SOURCE FILES
'-lX11', ['OS!="mac"', {
], 'sources!': [
}], '../test/testAPI/cocoa_renderer.h',
['OS=="mac"', { '../test/testAPI/cocoa_renderer.mm',
'xcode_settings': { ],
'OTHER_CPLUSPLUSFLAGS': '-x objective-c++', }],
'OTHER_LDFLAGS': [ # DEFINE PLATFORM SPECIFIC INCLUDE AND CFLAGS
'-framework Foundation -framework AppKit -framework Cocoa -framework OpenGL -framework CoreVideo -framework CoreAudio -framework AudioToolbox', ['OS=="mac" or OS=="linux"', {
], 'cflags': [
}, '-Wno-write-strings',
}], ],
] # conditions 'ldflags': [
}, '-lpthread -lm',
],
}],
['OS=="linux"', {
'libraries': [
'-lrt',
'-lXext',
'-lX11',
],
}],
['OS=="mac"', {
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': '-x objective-c++',
'OTHER_LDFLAGS': [
'-framework Foundation -framework AppKit -framework Cocoa -framework OpenGL -framework CoreVideo -framework CoreAudio -framework AudioToolbox',
],
},
}],
] # conditions
},
],
}],
], ],
} }