 Chromium Code Reviews
 Chromium Code Reviews Issue 2747863003:
  Loosening the coupling between WebRTC and //third_party/protobuf  (Closed)
    
  
    Issue 2747863003:
  Loosening the coupling between WebRTC and //third_party/protobuf  (Closed) 
  | OLD | NEW | 
|---|---|
| 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 
| 2 # | 2 # | 
| 3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license | 
| 4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source | 
| 5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found | 
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may | 
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. | 
| 8 | 8 | 
| 9 import("../../webrtc.gni") | 9 import("../../webrtc.gni") | 
| 10 import("audio_coding.gni") | 10 import("audio_coding.gni") | 
| (...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 841 if (rtc_opus_variable_complexity) { | 841 if (rtc_opus_variable_complexity) { | 
| 842 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ] | 842 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ] | 
| 843 } else { | 843 } else { | 
| 844 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ] | 844 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ] | 
| 845 } | 845 } | 
| 846 | 846 | 
| 847 if (rtc_build_opus) { | 847 if (rtc_build_opus) { | 
| 848 public_deps += [ rtc_opus_dir ] | 848 public_deps += [ rtc_opus_dir ] | 
| 849 } else if (build_with_mozilla) { | 849 } else if (build_with_mozilla) { | 
| 850 include_dirs = [ getenv("DIST") + "/include/opus" ] | 850 include_dirs = [ getenv("DIST") + "/include/opus" ] | 
| 851 | |
| 852 # TODO(mbonadei): this is an hack. Remove and fix the dependency error | |
| 853 include_dirs += [ "//third_party/protobuf/src" ] | |
| 
kjellander_webrtc
2017/03/14 21:28:05
We should avoid adding include_dirs whenever we ca
 
mbonadei
2017/03/15 10:08:05
Done.
 | |
| 851 } | 854 } | 
| 855 include_dirs = [ "//third_party/protobuf/src" ] | |
| 852 } | 856 } | 
| 853 | 857 | 
| 854 rtc_source_set("webrtc_opus_c") { | 858 rtc_source_set("webrtc_opus_c") { | 
| 855 visibility = [ ":*" ] # Only targets in this file can depend on this. | 859 visibility = [ ":*" ] # Only targets in this file can depend on this. | 
| 856 sources = [ | 860 sources = [ | 
| 857 "codecs/opus/opus_inst.h", | 861 "codecs/opus/opus_inst.h", | 
| 858 "codecs/opus/opus_interface.c", | 862 "codecs/opus/opus_interface.c", | 
| 859 "codecs/opus/opus_interface.h", | 863 "codecs/opus/opus_interface.h", | 
| 860 ] | 864 ] | 
| 861 | 865 | 
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 911 "audio_network_adaptor/event_log_writer.h", | 915 "audio_network_adaptor/event_log_writer.h", | 
| 912 "audio_network_adaptor/fec_controller.cc", | 916 "audio_network_adaptor/fec_controller.cc", | 
| 913 "audio_network_adaptor/fec_controller.h", | 917 "audio_network_adaptor/fec_controller.h", | 
| 914 "audio_network_adaptor/frame_length_controller.cc", | 918 "audio_network_adaptor/frame_length_controller.cc", | 
| 915 "audio_network_adaptor/frame_length_controller.h", | 919 "audio_network_adaptor/frame_length_controller.h", | 
| 916 "audio_network_adaptor/include/audio_network_adaptor.h", | 920 "audio_network_adaptor/include/audio_network_adaptor.h", | 
| 917 ] | 921 ] | 
| 918 | 922 | 
| 919 deps = [ | 923 deps = [ | 
| 920 "../..:webrtc_common", | 924 "../..:webrtc_common", | 
| 925 "../../base:protobuf_utils", | |
| 921 "../../base:rtc_base_approved", | 926 "../../base:rtc_base_approved", | 
| 922 "../../common_audio", | 927 "../../common_audio", | 
| 923 "../../logging:rtc_event_log_api", | 928 "../../logging:rtc_event_log_api", | 
| 924 "../../system_wrappers", | 929 "../../system_wrappers", | 
| 925 ] | 930 ] | 
| 926 | 931 | 
| 927 if (rtc_enable_protobuf) { | 932 if (rtc_enable_protobuf) { | 
| 928 deps += [ | 933 deps += [ | 
| 929 ":ana_config_proto", | 934 ":ana_config_proto", | 
| 930 ":ana_debug_dump_proto", | 935 ":ana_debug_dump_proto", | 
| (...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2071 ":neteq", | 2076 ":neteq", | 
| 2072 ":neteq_test_support", | 2077 ":neteq_test_support", | 
| 2073 ":neteq_unittest_tools", | 2078 ":neteq_unittest_tools", | 
| 2074 ":pcm16b", | 2079 ":pcm16b", | 
| 2075 ":red", | 2080 ":red", | 
| 2076 ":rent_a_codec", | 2081 ":rent_a_codec", | 
| 2077 ":webrtc_opus", | 2082 ":webrtc_opus", | 
| 2078 "../..:webrtc_common", | 2083 "../..:webrtc_common", | 
| 2079 "../../api/audio_codecs:audio_codecs_api", | 2084 "../../api/audio_codecs:audio_codecs_api", | 
| 2080 "../../api/audio_codecs:builtin_audio_decoder_factory", | 2085 "../../api/audio_codecs:builtin_audio_decoder_factory", | 
| 2086 "../../base:protobuf_utils", | |
| 2081 "../../base:rtc_base", | 2087 "../../base:rtc_base", | 
| 2082 "../../base:rtc_base_approved", | 2088 "../../base:rtc_base_approved", | 
| 2083 "../../base:rtc_base_tests_utils", | 2089 "../../base:rtc_base_tests_utils", | 
| 2084 "../../common_audio", | 2090 "../../common_audio", | 
| 2085 "../../system_wrappers:system_wrappers", | 2091 "../../system_wrappers:system_wrappers", | 
| 2086 "../../test:field_trial", | 2092 "../../test:field_trial", | 
| 2087 "../../test:rtp_test_utils", | 2093 "../../test:rtp_test_utils", | 
| 2088 "../../test:test_common", | 2094 "../../test:test_common", | 
| 2089 "../../test:test_support", | 2095 "../../test:test_support", | 
| 2090 "//testing/gmock", | 2096 "//testing/gmock", | 
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2128 # webrtc/api/audio_codecs:builtin_audio_decoder_factory instead. | 2134 # webrtc/api/audio_codecs:builtin_audio_decoder_factory instead. | 
| 2129 # TODO(kwiberg): Remove this. | 2135 # TODO(kwiberg): Remove this. | 
| 2130 rtc_source_set("builtin_audio_decoder_factory") { | 2136 rtc_source_set("builtin_audio_decoder_factory") { | 
| 2131 sources = [ | 2137 sources = [ | 
| 2132 "codecs/builtin_audio_decoder_factory.h", | 2138 "codecs/builtin_audio_decoder_factory.h", | 
| 2133 ] | 2139 ] | 
| 2134 deps = [ | 2140 deps = [ | 
| 2135 "../../api/audio_codecs:builtin_audio_decoder_factory", | 2141 "../../api/audio_codecs:builtin_audio_decoder_factory", | 
| 2136 ] | 2142 ] | 
| 2137 } | 2143 } | 
| OLD | NEW |