Home | History | Annotate | Download | only in libjingle
      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_libjingle_libjingle_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/libjingle/overrides/init_webrtc.cc
     27 
     28 
     29 # Flags passed to both C and C++ files.
     30 MY_CFLAGS_Debug := \
     31 	--param=ssp-buffer-size=4 \
     32 	-fno-strict-aliasing \
     33 	-Wno-unused-parameter \
     34 	-Wno-missing-field-initializers \
     35 	-fvisibility=hidden \
     36 	-pipe \
     37 	-fPIC \
     38 	-Wno-unused-local-typedefs \
     39 	-Wno-format \
     40 	-msse2 \
     41 	-mfpmath=sse \
     42 	-mmmx \
     43 	-m32 \
     44 	-ffunction-sections \
     45 	-funwind-tables \
     46 	-g \
     47 	-fno-short-enums \
     48 	-finline-limit=64 \
     49 	-Wa,--noexecstack \
     50 	-U_FORTIFY_SOURCE \
     51 	-Wno-extra \
     52 	-Wno-ignored-qualifiers \
     53 	-Wno-type-limits \
     54 	-Wno-unused-but-set-variable \
     55 	-fno-stack-protector \
     56 	-Wno-address \
     57 	-Wno-format-security \
     58 	-Wno-return-type \
     59 	-Wno-sequence-point \
     60 	-Os \
     61 	-g \
     62 	-gdwarf-4 \
     63 	-fdata-sections \
     64 	-ffunction-sections \
     65 	-fomit-frame-pointer \
     66 	-funwind-tables
     67 
     68 MY_DEFS_Debug := \
     69 	'-DEXPAT_RELATIVE_PATH' \
     70 	'-DFEATURE_ENABLE_SSL' \
     71 	'-DGTEST_RELATIVE_PATH' \
     72 	'-DHAVE_SRTP' \
     73 	'-DHAVE_WEBRTC_VIDEO' \
     74 	'-DHAVE_WEBRTC_VOICE' \
     75 	'-DLOGGING_INSIDE_WEBRTC' \
     76 	'-DNO_MAIN_THREAD_WRAPPING' \
     77 	'-DNO_SOUND_SYSTEM' \
     78 	'-DSRTP_RELATIVE_PATH' \
     79 	'-DUSE_WEBRTC_DEV_BRANCH' \
     80 	'-DENABLE_EXTERNAL_AUTH' \
     81 	'-DWEBRTC_CHROMIUM_BUILD' \
     82 	'-DV8_DEPRECATION_WARNINGS' \
     83 	'-D_FILE_OFFSET_BITS=64' \
     84 	'-DNO_TCMALLOC' \
     85 	'-DDISABLE_NACL' \
     86 	'-DLIBPEERCONNECTION_LIB=1' \
     87 	'-DSSL_USE_OPENSSL' \
     88 	'-DHAVE_OPENSSL_SSL_H' \
     89 	'-DPOSIX' \
     90 	'-DWEBRTC_POSIX' \
     91 	'-DCHROMIUM_BUILD' \
     92 	'-DUSE_LIBJPEG_TURBO=1' \
     93 	'-DENABLE_WEBRTC=1' \
     94 	'-DUSE_PROPRIETARY_CODECS' \
     95 	'-DENABLE_BROWSER_CDMS' \
     96 	'-DENABLE_CONFIGURATION_POLICY' \
     97 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     98 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     99 	'-DENABLE_EGLIMAGE=1' \
    100 	'-DCLD_VERSION=1' \
    101 	'-DENABLE_PRINTING=1' \
    102 	'-DENABLE_MANAGED_USERS=1' \
    103 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    104 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    105 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    106 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    107 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    108 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    109 	'-DVIDEO_HOLE=1' \
    110 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    111 	'-DXML_STATIC' \
    112 	'-DFEATURE_ENABLE_VOICEMAIL' \
    113 	'-DANDROID' \
    114 	'-DUSE_OPENSSL=1' \
    115 	'-DUSE_OPENSSL_CERTS=1' \
    116 	'-D__GNU_SOURCE=1' \
    117 	'-DUSE_STLPORT=1' \
    118 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    119 	'-DCHROME_BUILD_ID=""' \
    120 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    121 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    122 	'-D_DEBUG'
    123 
    124 
    125 # Include paths placed before CFLAGS/CPPFLAGS
    126 LOCAL_C_INCLUDES_Debug := \
    127 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    128 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    129 	$(LOCAL_PATH)/third_party/libjingle/overrides \
    130 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    131 	$(LOCAL_PATH)/third_party/libjingle/source \
    132 	$(LOCAL_PATH) \
    133 	$(LOCAL_PATH)/testing/gtest/include \
    134 	$(LOCAL_PATH)/third_party \
    135 	$(LOCAL_PATH)/third_party/libyuv/include \
    136 	$(LOCAL_PATH)/third_party/usrsctp \
    137 	$(gyp_shared_intermediate_dir) \
    138 	$(LOCAL_PATH)/third_party/expat/files/lib \
    139 	$(LOCAL_PATH)/third_party/boringssl/src/include \
    140 	$(PWD)/frameworks/wilhelm/include \
    141 	$(PWD)/bionic \
    142 	$(PWD)/external/stlport/stlport
    143 
    144 
    145 # Flags passed to only C++ (and not C) files.
    146 LOCAL_CPPFLAGS_Debug := \
    147 	-fno-exceptions \
    148 	-fno-rtti \
    149 	-fno-threadsafe-statics \
    150 	-fvisibility-inlines-hidden \
    151 	-Wno-deprecated \
    152 	-std=gnu++11 \
    153 	-Wno-narrowing \
    154 	-Wno-literal-suffix \
    155 	-Wno-non-virtual-dtor \
    156 	-Wno-sign-promo \
    157 	-Wno-non-virtual-dtor
    158 
    159 
    160 # Flags passed to both C and C++ files.
    161 MY_CFLAGS_Release := \
    162 	--param=ssp-buffer-size=4 \
    163 	-fno-strict-aliasing \
    164 	-Wno-unused-parameter \
    165 	-Wno-missing-field-initializers \
    166 	-fvisibility=hidden \
    167 	-pipe \
    168 	-fPIC \
    169 	-Wno-unused-local-typedefs \
    170 	-Wno-format \
    171 	-msse2 \
    172 	-mfpmath=sse \
    173 	-mmmx \
    174 	-m32 \
    175 	-ffunction-sections \
    176 	-funwind-tables \
    177 	-g \
    178 	-fno-short-enums \
    179 	-finline-limit=64 \
    180 	-Wa,--noexecstack \
    181 	-U_FORTIFY_SOURCE \
    182 	-Wno-extra \
    183 	-Wno-ignored-qualifiers \
    184 	-Wno-type-limits \
    185 	-Wno-unused-but-set-variable \
    186 	-fno-stack-protector \
    187 	-Wno-address \
    188 	-Wno-format-security \
    189 	-Wno-return-type \
    190 	-Wno-sequence-point \
    191 	-Os \
    192 	-fno-ident \
    193 	-fdata-sections \
    194 	-ffunction-sections \
    195 	-fomit-frame-pointer \
    196 	-funwind-tables
    197 
    198 MY_DEFS_Release := \
    199 	'-DEXPAT_RELATIVE_PATH' \
    200 	'-DFEATURE_ENABLE_SSL' \
    201 	'-DGTEST_RELATIVE_PATH' \
    202 	'-DHAVE_SRTP' \
    203 	'-DHAVE_WEBRTC_VIDEO' \
    204 	'-DHAVE_WEBRTC_VOICE' \
    205 	'-DLOGGING_INSIDE_WEBRTC' \
    206 	'-DNO_MAIN_THREAD_WRAPPING' \
    207 	'-DNO_SOUND_SYSTEM' \
    208 	'-DSRTP_RELATIVE_PATH' \
    209 	'-DUSE_WEBRTC_DEV_BRANCH' \
    210 	'-DENABLE_EXTERNAL_AUTH' \
    211 	'-DWEBRTC_CHROMIUM_BUILD' \
    212 	'-DV8_DEPRECATION_WARNINGS' \
    213 	'-D_FILE_OFFSET_BITS=64' \
    214 	'-DNO_TCMALLOC' \
    215 	'-DDISABLE_NACL' \
    216 	'-DLIBPEERCONNECTION_LIB=1' \
    217 	'-DSSL_USE_OPENSSL' \
    218 	'-DHAVE_OPENSSL_SSL_H' \
    219 	'-DPOSIX' \
    220 	'-DWEBRTC_POSIX' \
    221 	'-DCHROMIUM_BUILD' \
    222 	'-DUSE_LIBJPEG_TURBO=1' \
    223 	'-DENABLE_WEBRTC=1' \
    224 	'-DUSE_PROPRIETARY_CODECS' \
    225 	'-DENABLE_BROWSER_CDMS' \
    226 	'-DENABLE_CONFIGURATION_POLICY' \
    227 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    228 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    229 	'-DENABLE_EGLIMAGE=1' \
    230 	'-DCLD_VERSION=1' \
    231 	'-DENABLE_PRINTING=1' \
    232 	'-DENABLE_MANAGED_USERS=1' \
    233 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    234 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    235 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    236 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    237 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    238 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    239 	'-DVIDEO_HOLE=1' \
    240 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    241 	'-DXML_STATIC' \
    242 	'-DFEATURE_ENABLE_VOICEMAIL' \
    243 	'-DANDROID' \
    244 	'-DUSE_OPENSSL=1' \
    245 	'-DUSE_OPENSSL_CERTS=1' \
    246 	'-D__GNU_SOURCE=1' \
    247 	'-DUSE_STLPORT=1' \
    248 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    249 	'-DCHROME_BUILD_ID=""' \
    250 	'-DNDEBUG' \
    251 	'-DNVALGRIND' \
    252 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    253 
    254 
    255 # Include paths placed before CFLAGS/CPPFLAGS
    256 LOCAL_C_INCLUDES_Release := \
    257 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    258 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    259 	$(LOCAL_PATH)/third_party/libjingle/overrides \
    260 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    261 	$(LOCAL_PATH)/third_party/libjingle/source \
    262 	$(LOCAL_PATH) \
    263 	$(LOCAL_PATH)/testing/gtest/include \
    264 	$(LOCAL_PATH)/third_party \
    265 	$(LOCAL_PATH)/third_party/libyuv/include \
    266 	$(LOCAL_PATH)/third_party/usrsctp \
    267 	$(gyp_shared_intermediate_dir) \
    268 	$(LOCAL_PATH)/third_party/expat/files/lib \
    269 	$(LOCAL_PATH)/third_party/boringssl/src/include \
    270 	$(PWD)/frameworks/wilhelm/include \
    271 	$(PWD)/bionic \
    272 	$(PWD)/external/stlport/stlport
    273 
    274 
    275 # Flags passed to only C++ (and not C) files.
    276 LOCAL_CPPFLAGS_Release := \
    277 	-fno-exceptions \
    278 	-fno-rtti \
    279 	-fno-threadsafe-statics \
    280 	-fvisibility-inlines-hidden \
    281 	-Wno-deprecated \
    282 	-std=gnu++11 \
    283 	-Wno-narrowing \
    284 	-Wno-literal-suffix \
    285 	-Wno-non-virtual-dtor \
    286 	-Wno-sign-promo \
    287 	-Wno-non-virtual-dtor
    288 
    289 
    290 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    291 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    292 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    293 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    294 ### Rules for final target.
    295 
    296 LOCAL_SHARED_LIBRARIES := \
    297 	libstlport \
    298 	libdl
    299 
    300 # Add target alias to "gyp_all_modules" target.
    301 .PHONY: gyp_all_modules
    302 gyp_all_modules: third_party_libjingle_libjingle_webrtc_gyp
    303 
    304 # Alias gyp target name.
    305 .PHONY: libjingle_webrtc
    306 libjingle_webrtc: third_party_libjingle_libjingle_webrtc_gyp
    307 
    308 include $(BUILD_STATIC_LIBRARY)
    309