Home | History | Annotate | Download | only in modules
      1 # This file is generated by gyp; do not edit.
      2 
      3 include $(CLEAR_VARS)
      4 
      5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
      6 LOCAL_MODULE := third_party_webrtc_modules_webrtc_video_coding_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
      9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES :=
     14 
     15 GYP_GENERATED_OUTPUTS :=
     16 
     17 # Make sure our deps and generated files are built first.
     18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     19 
     20 LOCAL_CPP_EXTENSION := .cc
     21 LOCAL_GENERATED_SOURCES :=
     22 
     23 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     24 
     25 LOCAL_SRC_FILES := \
     26 	third_party/webrtc/modules/video_coding/main/source/codec_database.cc \
     27 	third_party/webrtc/modules/video_coding/main/source/codec_timer.cc \
     28 	third_party/webrtc/modules/video_coding/main/source/content_metrics_processing.cc \
     29 	third_party/webrtc/modules/video_coding/main/source/decoding_state.cc \
     30 	third_party/webrtc/modules/video_coding/main/source/encoded_frame.cc \
     31 	third_party/webrtc/modules/video_coding/main/source/frame_buffer.cc \
     32 	third_party/webrtc/modules/video_coding/main/source/generic_decoder.cc \
     33 	third_party/webrtc/modules/video_coding/main/source/generic_encoder.cc \
     34 	third_party/webrtc/modules/video_coding/main/source/inter_frame_delay.cc \
     35 	third_party/webrtc/modules/video_coding/main/source/jitter_buffer.cc \
     36 	third_party/webrtc/modules/video_coding/main/source/jitter_estimator.cc \
     37 	third_party/webrtc/modules/video_coding/main/source/media_opt_util.cc \
     38 	third_party/webrtc/modules/video_coding/main/source/media_optimization.cc \
     39 	third_party/webrtc/modules/video_coding/main/source/packet.cc \
     40 	third_party/webrtc/modules/video_coding/main/source/qm_select.cc \
     41 	third_party/webrtc/modules/video_coding/main/source/receiver.cc \
     42 	third_party/webrtc/modules/video_coding/main/source/rtt_filter.cc \
     43 	third_party/webrtc/modules/video_coding/main/source/session_info.cc \
     44 	third_party/webrtc/modules/video_coding/main/source/timestamp_map.cc \
     45 	third_party/webrtc/modules/video_coding/main/source/timing.cc \
     46 	third_party/webrtc/modules/video_coding/main/source/video_coding_impl.cc \
     47 	third_party/webrtc/modules/video_coding/main/source/video_sender.cc \
     48 	third_party/webrtc/modules/video_coding/main/source/video_receiver.cc
     49 
     50 
     51 # Flags passed to both C and C++ files.
     52 MY_CFLAGS_Debug := \
     53 	--param=ssp-buffer-size=4 \
     54 	-Werror \
     55 	-fno-strict-aliasing \
     56 	-Wall \
     57 	-Wno-unused-parameter \
     58 	-Wno-missing-field-initializers \
     59 	-fvisibility=hidden \
     60 	-pipe \
     61 	-fPIC \
     62 	-Wno-unused-local-typedefs \
     63 	-fno-builtin-cos \
     64 	-fno-builtin-sin \
     65 	-fno-builtin-cosf \
     66 	-fno-builtin-sinf \
     67 	-fno-builtin-cos \
     68 	-fno-builtin-sin \
     69 	-fno-builtin-cosf \
     70 	-fno-builtin-sinf \
     71 	-ffunction-sections \
     72 	-funwind-tables \
     73 	-g \
     74 	-fno-short-enums \
     75 	-finline-limit=64 \
     76 	-Wa,--noexecstack \
     77 	-U_FORTIFY_SOURCE \
     78 	-Wno-extra \
     79 	-Wno-ignored-qualifiers \
     80 	-Wno-type-limits \
     81 	-Wno-unused-but-set-variable \
     82 	-Os \
     83 	-g \
     84 	-gdwarf-4 \
     85 	-fdata-sections \
     86 	-ffunction-sections \
     87 	-funwind-tables
     88 
     89 MY_DEFS_Debug := \
     90 	'-DV8_DEPRECATION_WARNINGS' \
     91 	'-D_FILE_OFFSET_BITS=64' \
     92 	'-DNO_TCMALLOC' \
     93 	'-DDISABLE_NACL' \
     94 	'-DCHROMIUM_BUILD' \
     95 	'-DUSE_LIBJPEG_TURBO=1' \
     96 	'-DENABLE_WEBRTC=1' \
     97 	'-DUSE_PROPRIETARY_CODECS' \
     98 	'-DENABLE_BROWSER_CDMS' \
     99 	'-DENABLE_CONFIGURATION_POLICY' \
    100 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    101 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    102 	'-DENABLE_EGLIMAGE=1' \
    103 	'-DCLD_VERSION=1' \
    104 	'-DENABLE_PRINTING=1' \
    105 	'-DENABLE_MANAGED_USERS=1' \
    106 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    107 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    108 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    109 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    110 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    111 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    112 	'-DVIDEO_HOLE=1' \
    113 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    114 	'-DWEBRTC_RESTRICT_LOGGING' \
    115 	'-DEXPAT_RELATIVE_PATH' \
    116 	'-DWEBRTC_MODULE_UTILITY_VIDEO' \
    117 	'-DWEBRTC_CHROMIUM_BUILD' \
    118 	'-DLOGGING_INSIDE_WEBRTC' \
    119 	'-DWEBRTC_POSIX' \
    120 	'-DWEBRTC_LINUX' \
    121 	'-DWEBRTC_ANDROID' \
    122 	'-DWEBRTC_ANDROID_OPENSLES' \
    123 	'-DUSE_OPENSSL=1' \
    124 	'-DUSE_OPENSSL_CERTS=1' \
    125 	'-D__STDC_CONSTANT_MACROS' \
    126 	'-D__STDC_FORMAT_MACROS' \
    127 	'-DANDROID' \
    128 	'-D__GNU_SOURCE=1' \
    129 	'-DUSE_STLPORT=1' \
    130 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    131 	'-DCHROME_BUILD_ID=""' \
    132 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    133 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    134 	'-D_DEBUG'
    135 
    136 
    137 # Include paths placed before CFLAGS/CPPFLAGS
    138 LOCAL_C_INCLUDES_Debug := \
    139 	$(gyp_shared_intermediate_dir) \
    140 	$(LOCAL_PATH) \
    141 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    142 	$(LOCAL_PATH)/third_party \
    143 	$(LOCAL_PATH)/third_party/webrtc/common_video/interface \
    144 	$(LOCAL_PATH)/third_party/webrtc/common_video/libyuv/include \
    145 	$(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
    146 	$(PWD)/frameworks/wilhelm/include \
    147 	$(PWD)/bionic \
    148 	$(PWD)/external/stlport/stlport
    149 
    150 
    151 # Flags passed to only C++ (and not C) files.
    152 LOCAL_CPPFLAGS_Debug := \
    153 	-fno-exceptions \
    154 	-fno-rtti \
    155 	-fno-threadsafe-statics \
    156 	-fvisibility-inlines-hidden \
    157 	-Wsign-compare \
    158 	-std=gnu++11 \
    159 	-Wno-narrowing \
    160 	-Wno-literal-suffix \
    161 	-Wno-non-virtual-dtor \
    162 	-Wno-sign-promo
    163 
    164 
    165 # Flags passed to both C and C++ files.
    166 MY_CFLAGS_Release := \
    167 	--param=ssp-buffer-size=4 \
    168 	-Werror \
    169 	-fno-strict-aliasing \
    170 	-Wall \
    171 	-Wno-unused-parameter \
    172 	-Wno-missing-field-initializers \
    173 	-fvisibility=hidden \
    174 	-pipe \
    175 	-fPIC \
    176 	-Wno-unused-local-typedefs \
    177 	-fno-builtin-cos \
    178 	-fno-builtin-sin \
    179 	-fno-builtin-cosf \
    180 	-fno-builtin-sinf \
    181 	-fno-builtin-cos \
    182 	-fno-builtin-sin \
    183 	-fno-builtin-cosf \
    184 	-fno-builtin-sinf \
    185 	-ffunction-sections \
    186 	-funwind-tables \
    187 	-g \
    188 	-fno-short-enums \
    189 	-finline-limit=64 \
    190 	-Wa,--noexecstack \
    191 	-U_FORTIFY_SOURCE \
    192 	-Wno-extra \
    193 	-Wno-ignored-qualifiers \
    194 	-Wno-type-limits \
    195 	-Wno-unused-but-set-variable \
    196 	-Os \
    197 	-fno-ident \
    198 	-fdata-sections \
    199 	-ffunction-sections \
    200 	-funwind-tables
    201 
    202 MY_DEFS_Release := \
    203 	'-DV8_DEPRECATION_WARNINGS' \
    204 	'-D_FILE_OFFSET_BITS=64' \
    205 	'-DNO_TCMALLOC' \
    206 	'-DDISABLE_NACL' \
    207 	'-DCHROMIUM_BUILD' \
    208 	'-DUSE_LIBJPEG_TURBO=1' \
    209 	'-DENABLE_WEBRTC=1' \
    210 	'-DUSE_PROPRIETARY_CODECS' \
    211 	'-DENABLE_BROWSER_CDMS' \
    212 	'-DENABLE_CONFIGURATION_POLICY' \
    213 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    214 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    215 	'-DENABLE_EGLIMAGE=1' \
    216 	'-DCLD_VERSION=1' \
    217 	'-DENABLE_PRINTING=1' \
    218 	'-DENABLE_MANAGED_USERS=1' \
    219 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    220 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    221 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    222 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    223 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    224 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    225 	'-DVIDEO_HOLE=1' \
    226 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    227 	'-DWEBRTC_RESTRICT_LOGGING' \
    228 	'-DEXPAT_RELATIVE_PATH' \
    229 	'-DWEBRTC_MODULE_UTILITY_VIDEO' \
    230 	'-DWEBRTC_CHROMIUM_BUILD' \
    231 	'-DLOGGING_INSIDE_WEBRTC' \
    232 	'-DWEBRTC_POSIX' \
    233 	'-DWEBRTC_LINUX' \
    234 	'-DWEBRTC_ANDROID' \
    235 	'-DWEBRTC_ANDROID_OPENSLES' \
    236 	'-DUSE_OPENSSL=1' \
    237 	'-DUSE_OPENSSL_CERTS=1' \
    238 	'-D__STDC_CONSTANT_MACROS' \
    239 	'-D__STDC_FORMAT_MACROS' \
    240 	'-DANDROID' \
    241 	'-D__GNU_SOURCE=1' \
    242 	'-DUSE_STLPORT=1' \
    243 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    244 	'-DCHROME_BUILD_ID=""' \
    245 	'-DNDEBUG' \
    246 	'-DNVALGRIND' \
    247 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    248 	'-D_FORTIFY_SOURCE=2'
    249 
    250 
    251 # Include paths placed before CFLAGS/CPPFLAGS
    252 LOCAL_C_INCLUDES_Release := \
    253 	$(gyp_shared_intermediate_dir) \
    254 	$(LOCAL_PATH) \
    255 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    256 	$(LOCAL_PATH)/third_party \
    257 	$(LOCAL_PATH)/third_party/webrtc/common_video/interface \
    258 	$(LOCAL_PATH)/third_party/webrtc/common_video/libyuv/include \
    259 	$(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
    260 	$(PWD)/frameworks/wilhelm/include \
    261 	$(PWD)/bionic \
    262 	$(PWD)/external/stlport/stlport
    263 
    264 
    265 # Flags passed to only C++ (and not C) files.
    266 LOCAL_CPPFLAGS_Release := \
    267 	-fno-exceptions \
    268 	-fno-rtti \
    269 	-fno-threadsafe-statics \
    270 	-fvisibility-inlines-hidden \
    271 	-Wsign-compare \
    272 	-std=gnu++11 \
    273 	-Wno-narrowing \
    274 	-Wno-literal-suffix \
    275 	-Wno-non-virtual-dtor \
    276 	-Wno-sign-promo
    277 
    278 
    279 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    280 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    281 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    282 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    283 ### Rules for final target.
    284 
    285 LOCAL_SHARED_LIBRARIES := \
    286 	libstlport \
    287 	libdl
    288 
    289 # Add target alias to "gyp_all_modules" target.
    290 .PHONY: gyp_all_modules
    291 gyp_all_modules: third_party_webrtc_modules_webrtc_video_coding_gyp
    292 
    293 # Alias gyp target name.
    294 .PHONY: webrtc_video_coding
    295 webrtc_video_coding: third_party_webrtc_modules_webrtc_video_coding_gyp
    296 
    297 include $(BUILD_STATIC_LIBRARY)
    298