Recent changes in GYP seem to have broken our previous "hack" for getting the GYP rule for .isolate files imported from the Chromium build/isolate.gypi. The best solution for now is to remove the hack and check in a copy of Chromium's src/build/isolate.gypi in WebRTC's build/ dir instead. A similar approach is used for our build/protoc.gypi file. TEST=On Linux, I successfully ran: gclient runhooks ninja -C out/Release and verified a bunch of .isolated files were created in out/Release (which didn't happen before this patch). I also renamed the build/isolate.gypi from Chromium to ensure that our own is used and not that one (in case any paths would be incorrect). I also ran build/gyp_chromium in a Chromium checkout with WebRTC in third_party/webrtc having this patch applied to ensure GYP processing was still working. Finally, I verified that the same project generation and compilation from a Chromium checkout worked the way we build our Android native tests, using: . build/android/envsetup.sh GYP_DEFINES="$GYP_DEFINES include_tests=1 enable_tracing=1" gclient runhooks ninja -C out/Release android_builder_webrtc BUG=1916 R=andrew@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2338004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4907 4adac7df-926f-26a2-2b94-8c16560cd09d
133 lines
4.2 KiB
Python
133 lines
4.2 KiB
Python
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license
|
|
# that can be found in the LICENSE file in the root of the source
|
|
# tree. An additional intellectual property rights grant can be found
|
|
# in the file PATENTS. All contributing project authors may
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
{
|
|
'includes': ['../build/common.gypi'],
|
|
'targets': [
|
|
{
|
|
'target_name': 'common_video',
|
|
'type': 'static_library',
|
|
'include_dirs': [
|
|
'<(webrtc_root)/modules/interface/',
|
|
'interface',
|
|
'libyuv/include',
|
|
],
|
|
'dependencies': [
|
|
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
|
|
],
|
|
'direct_dependent_settings': {
|
|
'include_dirs': [
|
|
'interface',
|
|
'libyuv/include',
|
|
],
|
|
},
|
|
'conditions': [
|
|
['build_libyuv==1', {
|
|
'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',],
|
|
}, {
|
|
# Need to add a directory normally exported by libyuv.gyp.
|
|
'include_dirs': ['<(libyuv_dir)/include',],
|
|
}],
|
|
],
|
|
'sources': [
|
|
'interface/i420_video_frame.h',
|
|
'interface/native_handle.h',
|
|
'interface/texture_video_frame.h',
|
|
'i420_video_frame.cc',
|
|
'libyuv/include/webrtc_libyuv.h',
|
|
'libyuv/include/scaler.h',
|
|
'libyuv/webrtc_libyuv.cc',
|
|
'libyuv/scaler.cc',
|
|
'plane.h',
|
|
'plane.cc',
|
|
'texture_video_frame.cc'
|
|
],
|
|
},
|
|
], # targets
|
|
'conditions': [
|
|
['include_tests==1', {
|
|
'targets': [
|
|
{
|
|
'target_name': 'frame_generator',
|
|
'type': 'static_library',
|
|
'sources': [
|
|
'test/frame_generator.h',
|
|
'test/frame_generator.cc',
|
|
],
|
|
'dependencies': [
|
|
'common_video',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'common_video_unittests',
|
|
'type': '<(gtest_target_type)',
|
|
'dependencies': [
|
|
'common_video',
|
|
'<(DEPTH)/testing/gtest.gyp:gtest',
|
|
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
|
|
'<(webrtc_root)/test/test.gyp:test_support_main',
|
|
],
|
|
'sources': [
|
|
'i420_video_frame_unittest.cc',
|
|
'libyuv/libyuv_unittest.cc',
|
|
'libyuv/scaler_unittest.cc',
|
|
'plane_unittest.cc',
|
|
'texture_video_frame_unittest.cc'
|
|
],
|
|
# Disable warnings to enable Win64 build, issue 1323.
|
|
'msvs_disabled_warnings': [
|
|
4267, # size_t to int truncation.
|
|
],
|
|
'conditions': [
|
|
# TODO(henrike): remove build_with_chromium==1 when the bots are
|
|
# using Chromium's buildbots.
|
|
['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
|
|
'dependencies': [
|
|
'<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
|
|
],
|
|
}],
|
|
],
|
|
},
|
|
], # targets
|
|
'conditions': [
|
|
# TODO(henrike): remove build_with_chromium==1 when the bots are using
|
|
# Chromium's buildbots.
|
|
['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
|
|
'targets': [
|
|
{
|
|
'target_name': 'common_video_unittests_apk_target',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'<(apk_tests_path):common_video_unittests_apk',
|
|
],
|
|
},
|
|
],
|
|
}],
|
|
['test_isolation_mode != "noop"', {
|
|
'targets': [
|
|
{
|
|
'target_name': 'common_video_unittests_run',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'common_video_unittests',
|
|
],
|
|
'includes': [
|
|
'../build/isolate.gypi',
|
|
'common_video_unittests.isolate',
|
|
],
|
|
'sources': [
|
|
'common_video_unittests.isolate',
|
|
],
|
|
},
|
|
],
|
|
}],
|
|
],
|
|
}], # include_tests
|
|
],
|
|
}
|