Home | History | Annotate | Download | only in webrtc
      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_webrtc_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/video/call.cc \
     27 	third_party/webrtc/video/encoded_frame_callback_adapter.cc \
     28 	third_party/webrtc/video/send_statistics_proxy.cc \
     29 	third_party/webrtc/video/receive_statistics_proxy.cc \
     30 	third_party/webrtc/video/transport_adapter.cc \
     31 	third_party/webrtc/video/video_receive_stream.cc \
     32 	third_party/webrtc/video/video_send_stream.cc
     33 
     34 
     35 # Flags passed to both C and C++ files.
     36 MY_CFLAGS_Debug := \
     37 	--param=ssp-buffer-size=4 \
     38 	-Werror \
     39 	-fno-strict-aliasing \
     40 	-Wall \
     41 	-Wno-unused-parameter \
     42 	-Wno-missing-field-initializers \
     43 	-fvisibility=hidden \
     44 	-pipe \
     45 	-fPIC \
     46 	-Wno-unused-local-typedefs \
     47 	-fno-builtin-cos \
     48 	-fno-builtin-sin \
     49 	-fno-builtin-cosf \
     50 	-fno-builtin-sinf \
     51 	-ffunction-sections \
     52 	-funwind-tables \
     53 	-g \
     54 	-fno-short-enums \
     55 	-finline-limit=64 \
     56 	-Wa,--noexecstack \
     57 	-U_FORTIFY_SOURCE \
     58 	-Wno-extra \
     59 	-Wno-ignored-qualifiers \
     60 	-Wno-type-limits \
     61 	-Wno-unused-but-set-variable \
     62 	-Os \
     63 	-g \
     64 	-gdwarf-4 \
     65 	-fdata-sections \
     66 	-ffunction-sections \
     67 	-funwind-tables
     68 
     69 MY_DEFS_Debug := \
     70 	'-DV8_DEPRECATION_WARNINGS' \
     71 	'-D_FILE_OFFSET_BITS=64' \
     72 	'-DNO_TCMALLOC' \
     73 	'-DDISABLE_NACL' \
     74 	'-DCHROMIUM_BUILD' \
     75 	'-DUSE_LIBJPEG_TURBO=1' \
     76 	'-DENABLE_WEBRTC=1' \
     77 	'-DUSE_PROPRIETARY_CODECS' \
     78 	'-DENABLE_BROWSER_CDMS' \
     79 	'-DENABLE_CONFIGURATION_POLICY' \
     80 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     81 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     82 	'-DENABLE_EGLIMAGE=1' \
     83 	'-DCLD_VERSION=1' \
     84 	'-DENABLE_PRINTING=1' \
     85 	'-DENABLE_MANAGED_USERS=1' \
     86 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     87 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     88 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     89 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     90 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     91 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     92 	'-DVIDEO_HOLE=1' \
     93 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     94 	'-DWEBRTC_RESTRICT_LOGGING' \
     95 	'-DEXPAT_RELATIVE_PATH' \
     96 	'-DWEBRTC_MODULE_UTILITY_VIDEO' \
     97 	'-DWEBRTC_CHROMIUM_BUILD' \
     98 	'-DLOGGING_INSIDE_WEBRTC' \
     99 	'-DWEBRTC_POSIX' \
    100 	'-DWEBRTC_LINUX' \
    101 	'-DWEBRTC_ANDROID' \
    102 	'-DWEBRTC_ANDROID_OPENSLES' \
    103 	'-DUSE_OPENSSL=1' \
    104 	'-DUSE_OPENSSL_CERTS=1' \
    105 	'-D__STDC_CONSTANT_MACROS' \
    106 	'-D__STDC_FORMAT_MACROS' \
    107 	'-DANDROID' \
    108 	'-D__GNU_SOURCE=1' \
    109 	'-DUSE_STLPORT=1' \
    110 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    111 	'-DCHROME_BUILD_ID=""' \
    112 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    113 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    114 	'-D_DEBUG'
    115 
    116 
    117 # Include paths placed before CFLAGS/CPPFLAGS
    118 LOCAL_C_INCLUDES_Debug := \
    119 	$(gyp_shared_intermediate_dir) \
    120 	$(LOCAL_PATH) \
    121 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    122 	$(LOCAL_PATH)/third_party \
    123 	$(PWD)/frameworks/wilhelm/include \
    124 	$(PWD)/bionic \
    125 	$(PWD)/external/stlport/stlport
    126 
    127 
    128 # Flags passed to only C++ (and not C) files.
    129 LOCAL_CPPFLAGS_Debug := \
    130 	-fno-exceptions \
    131 	-fno-rtti \
    132 	-fno-threadsafe-statics \
    133 	-fvisibility-inlines-hidden \
    134 	-Wsign-compare \
    135 	-std=gnu++11 \
    136 	-Wno-narrowing \
    137 	-Wno-literal-suffix \
    138 	-Wno-non-virtual-dtor \
    139 	-Wno-sign-promo
    140 
    141 
    142 # Flags passed to both C and C++ files.
    143 MY_CFLAGS_Release := \
    144 	--param=ssp-buffer-size=4 \
    145 	-Werror \
    146 	-fno-strict-aliasing \
    147 	-Wall \
    148 	-Wno-unused-parameter \
    149 	-Wno-missing-field-initializers \
    150 	-fvisibility=hidden \
    151 	-pipe \
    152 	-fPIC \
    153 	-Wno-unused-local-typedefs \
    154 	-fno-builtin-cos \
    155 	-fno-builtin-sin \
    156 	-fno-builtin-cosf \
    157 	-fno-builtin-sinf \
    158 	-ffunction-sections \
    159 	-funwind-tables \
    160 	-g \
    161 	-fno-short-enums \
    162 	-finline-limit=64 \
    163 	-Wa,--noexecstack \
    164 	-U_FORTIFY_SOURCE \
    165 	-Wno-extra \
    166 	-Wno-ignored-qualifiers \
    167 	-Wno-type-limits \
    168 	-Wno-unused-but-set-variable \
    169 	-Os \
    170 	-fno-ident \
    171 	-fdata-sections \
    172 	-ffunction-sections \
    173 	-funwind-tables
    174 
    175 MY_DEFS_Release := \
    176 	'-DV8_DEPRECATION_WARNINGS' \
    177 	'-D_FILE_OFFSET_BITS=64' \
    178 	'-DNO_TCMALLOC' \
    179 	'-DDISABLE_NACL' \
    180 	'-DCHROMIUM_BUILD' \
    181 	'-DUSE_LIBJPEG_TURBO=1' \
    182 	'-DENABLE_WEBRTC=1' \
    183 	'-DUSE_PROPRIETARY_CODECS' \
    184 	'-DENABLE_BROWSER_CDMS' \
    185 	'-DENABLE_CONFIGURATION_POLICY' \
    186 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    187 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    188 	'-DENABLE_EGLIMAGE=1' \
    189 	'-DCLD_VERSION=1' \
    190 	'-DENABLE_PRINTING=1' \
    191 	'-DENABLE_MANAGED_USERS=1' \
    192 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    193 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    194 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    195 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    196 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    197 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    198 	'-DVIDEO_HOLE=1' \
    199 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    200 	'-DWEBRTC_RESTRICT_LOGGING' \
    201 	'-DEXPAT_RELATIVE_PATH' \
    202 	'-DWEBRTC_MODULE_UTILITY_VIDEO' \
    203 	'-DWEBRTC_CHROMIUM_BUILD' \
    204 	'-DLOGGING_INSIDE_WEBRTC' \
    205 	'-DWEBRTC_POSIX' \
    206 	'-DWEBRTC_LINUX' \
    207 	'-DWEBRTC_ANDROID' \
    208 	'-DWEBRTC_ANDROID_OPENSLES' \
    209 	'-DUSE_OPENSSL=1' \
    210 	'-DUSE_OPENSSL_CERTS=1' \
    211 	'-D__STDC_CONSTANT_MACROS' \
    212 	'-D__STDC_FORMAT_MACROS' \
    213 	'-DANDROID' \
    214 	'-D__GNU_SOURCE=1' \
    215 	'-DUSE_STLPORT=1' \
    216 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    217 	'-DCHROME_BUILD_ID=""' \
    218 	'-DNDEBUG' \
    219 	'-DNVALGRIND' \
    220 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    221 	'-D_FORTIFY_SOURCE=2'
    222 
    223 
    224 # Include paths placed before CFLAGS/CPPFLAGS
    225 LOCAL_C_INCLUDES_Release := \
    226 	$(gyp_shared_intermediate_dir) \
    227 	$(LOCAL_PATH) \
    228 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    229 	$(LOCAL_PATH)/third_party \
    230 	$(PWD)/frameworks/wilhelm/include \
    231 	$(PWD)/bionic \
    232 	$(PWD)/external/stlport/stlport
    233 
    234 
    235 # Flags passed to only C++ (and not C) files.
    236 LOCAL_CPPFLAGS_Release := \
    237 	-fno-exceptions \
    238 	-fno-rtti \
    239 	-fno-threadsafe-statics \
    240 	-fvisibility-inlines-hidden \
    241 	-Wsign-compare \
    242 	-std=gnu++11 \
    243 	-Wno-narrowing \
    244 	-Wno-literal-suffix \
    245 	-Wno-non-virtual-dtor \
    246 	-Wno-sign-promo
    247 
    248 
    249 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    250 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    251 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    252 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    253 ### Rules for final target.
    254 
    255 LOCAL_SHARED_LIBRARIES := \
    256 	libstlport \
    257 	libdl
    258 
    259 # Add target alias to "gyp_all_modules" target.
    260 .PHONY: gyp_all_modules
    261 gyp_all_modules: third_party_webrtc_webrtc_gyp
    262 
    263 # Alias gyp target name.
    264 .PHONY: webrtc
    265 webrtc: third_party_webrtc_webrtc_gyp
    266 
    267 include $(BUILD_STATIC_LIBRARY)
    268