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_TAGS := optional
      9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
     10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     12 
     13 # Make sure our deps are built first.
     14 GYP_TARGET_DEPENDENCIES := \
     15 	$(call intermediates-dir-for,GYP,third_party_expat_expat_gyp,,,$(GYP_VAR_PREFIX))/expat.stamp
     16 
     17 GYP_GENERATED_OUTPUTS :=
     18 
     19 # Make sure our deps and generated files are built first.
     20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     21 
     22 LOCAL_CPP_EXTENSION := .cc
     23 LOCAL_GENERATED_SOURCES :=
     24 
     25 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     26 
     27 LOCAL_SRC_FILES := \
     28 	third_party/libjingle/overrides/init_webrtc.cc
     29 
     30 
     31 # Flags passed to both C and C++ files.
     32 MY_CFLAGS_Debug := \
     33 	-fstack-protector \
     34 	--param=ssp-buffer-size=4 \
     35 	-fno-exceptions \
     36 	-fno-strict-aliasing \
     37 	-Wno-unused-parameter \
     38 	-Wno-missing-field-initializers \
     39 	-fvisibility=hidden \
     40 	-pipe \
     41 	-fPIC \
     42 	-Wno-unused-local-typedefs \
     43 	-Wno-format \
     44 	-fno-tree-sra \
     45 	-fno-partial-inlining \
     46 	-fno-early-inlining \
     47 	-fno-tree-copy-prop \
     48 	-fno-tree-loop-optimize \
     49 	-fno-move-loop-invariants \
     50 	-fno-caller-saves \
     51 	-Wno-psabi \
     52 	-ffunction-sections \
     53 	-funwind-tables \
     54 	-g \
     55 	-fstack-protector \
     56 	-fno-short-enums \
     57 	-finline-limit=64 \
     58 	-Wa,--noexecstack \
     59 	-U_FORTIFY_SOURCE \
     60 	-Wno-extra \
     61 	-Wno-ignored-qualifiers \
     62 	-Wno-type-limits \
     63 	-Wno-unused-but-set-variable \
     64 	-Wno-address \
     65 	-Wno-format-security \
     66 	-Wno-return-type \
     67 	-Wno-sequence-point \
     68 	-Os \
     69 	-g \
     70 	-fdata-sections \
     71 	-ffunction-sections \
     72 	-fomit-frame-pointer \
     73 	-funwind-tables
     74 
     75 MY_DEFS_Debug := \
     76 	'-DEXPAT_RELATIVE_PATH' \
     77 	'-DFEATURE_ENABLE_SSL' \
     78 	'-DGTEST_RELATIVE_PATH' \
     79 	'-DHAVE_SRTP' \
     80 	'-DHAVE_WEBRTC_VIDEO' \
     81 	'-DHAVE_WEBRTC_VOICE' \
     82 	'-DLOGGING_INSIDE_LIBJINGLE' \
     83 	'-DNO_MAIN_THREAD_WRAPPING' \
     84 	'-DNO_SOUND_SYSTEM' \
     85 	'-DSRTP_RELATIVE_PATH' \
     86 	'-DUSE_WEBRTC_DEV_BRANCH' \
     87 	'-DENABLE_EXTERNAL_AUTH' \
     88 	'-DV8_DEPRECATION_WARNINGS' \
     89 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
     90 	'-D_FILE_OFFSET_BITS=64' \
     91 	'-DNO_TCMALLOC' \
     92 	'-DDISABLE_NACL' \
     93 	'-DLIBPEERCONNECTION_LIB=1' \
     94 	'-DSSL_USE_OPENSSL' \
     95 	'-DHAVE_OPENSSL_SSL_H' \
     96 	'-DPOSIX' \
     97 	'-DCHROMIUM_BUILD' \
     98 	'-DUSE_LIBJPEG_TURBO=1' \
     99 	'-DENABLE_WEBRTC=1' \
    100 	'-DUSE_PROPRIETARY_CODECS' \
    101 	'-DENABLE_BROWSER_CDMS' \
    102 	'-DENABLE_CONFIGURATION_POLICY' \
    103 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    104 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    105 	'-DENABLE_EGLIMAGE=1' \
    106 	'-DCLD_VERSION=1' \
    107 	'-DENABLE_PRINTING=1' \
    108 	'-DENABLE_MANAGED_USERS=1' \
    109 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    110 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    111 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    112 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    113 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    114 	'-DVIDEO_HOLE=1' \
    115 	'-DPOSIX_AVOID_MMAP' \
    116 	'-DFEATURE_ENABLE_VOICEMAIL' \
    117 	'-DANDROID' \
    118 	'-DUSE_OPENSSL=1' \
    119 	'-DUSE_OPENSSL_CERTS=1' \
    120 	'-D__GNU_SOURCE=1' \
    121 	'-DUSE_STLPORT=1' \
    122 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    123 	'-DCHROME_BUILD_ID=""' \
    124 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    125 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    126 	'-D_DEBUG'
    127 
    128 
    129 # Include paths placed before CFLAGS/CPPFLAGS
    130 LOCAL_C_INCLUDES_Debug := \
    131 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    132 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    133 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    134 	$(LOCAL_PATH)/third_party/libjingle/overrides \
    135 	$(LOCAL_PATH)/third_party/libjingle/source \
    136 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    137 	$(LOCAL_PATH) \
    138 	$(LOCAL_PATH)/testing/gtest/include \
    139 	$(LOCAL_PATH)/third_party \
    140 	$(LOCAL_PATH)/third_party/libyuv/include \
    141 	$(LOCAL_PATH)/third_party/usrsctp \
    142 	$(LOCAL_PATH)/third_party/webrtc \
    143 	$(gyp_shared_intermediate_dir) \
    144 	$(PWD)/external/expat/lib \
    145 	$(LOCAL_PATH)/third_party/openssl/openssl/include \
    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-rtti \
    154 	-fno-threadsafe-statics \
    155 	-fvisibility-inlines-hidden \
    156 	-Wno-deprecated \
    157 	-Wno-abi \
    158 	-Wno-non-virtual-dtor \
    159 	-Wno-sign-promo \
    160 	-Wno-non-virtual-dtor
    161 
    162 
    163 LOCAL_FDO_SUPPORT_Debug := false
    164 
    165 # Flags passed to both C and C++ files.
    166 MY_CFLAGS_Release := \
    167 	-fstack-protector \
    168 	--param=ssp-buffer-size=4 \
    169 	-fno-exceptions \
    170 	-fno-strict-aliasing \
    171 	-Wno-unused-parameter \
    172 	-Wno-missing-field-initializers \
    173 	-fvisibility=hidden \
    174 	-pipe \
    175 	-fPIC \
    176 	-Wno-unused-local-typedefs \
    177 	-Wno-format \
    178 	-fno-tree-sra \
    179 	-fno-partial-inlining \
    180 	-fno-early-inlining \
    181 	-fno-tree-copy-prop \
    182 	-fno-tree-loop-optimize \
    183 	-fno-move-loop-invariants \
    184 	-fno-caller-saves \
    185 	-Wno-psabi \
    186 	-ffunction-sections \
    187 	-funwind-tables \
    188 	-g \
    189 	-fstack-protector \
    190 	-fno-short-enums \
    191 	-finline-limit=64 \
    192 	-Wa,--noexecstack \
    193 	-U_FORTIFY_SOURCE \
    194 	-Wno-extra \
    195 	-Wno-ignored-qualifiers \
    196 	-Wno-type-limits \
    197 	-Wno-unused-but-set-variable \
    198 	-Wno-address \
    199 	-Wno-format-security \
    200 	-Wno-return-type \
    201 	-Wno-sequence-point \
    202 	-Os \
    203 	-fno-ident \
    204 	-fdata-sections \
    205 	-ffunction-sections \
    206 	-fomit-frame-pointer \
    207 	-funwind-tables
    208 
    209 MY_DEFS_Release := \
    210 	'-DEXPAT_RELATIVE_PATH' \
    211 	'-DFEATURE_ENABLE_SSL' \
    212 	'-DGTEST_RELATIVE_PATH' \
    213 	'-DHAVE_SRTP' \
    214 	'-DHAVE_WEBRTC_VIDEO' \
    215 	'-DHAVE_WEBRTC_VOICE' \
    216 	'-DLOGGING_INSIDE_LIBJINGLE' \
    217 	'-DNO_MAIN_THREAD_WRAPPING' \
    218 	'-DNO_SOUND_SYSTEM' \
    219 	'-DSRTP_RELATIVE_PATH' \
    220 	'-DUSE_WEBRTC_DEV_BRANCH' \
    221 	'-DENABLE_EXTERNAL_AUTH' \
    222 	'-DV8_DEPRECATION_WARNINGS' \
    223 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    224 	'-D_FILE_OFFSET_BITS=64' \
    225 	'-DNO_TCMALLOC' \
    226 	'-DDISABLE_NACL' \
    227 	'-DLIBPEERCONNECTION_LIB=1' \
    228 	'-DSSL_USE_OPENSSL' \
    229 	'-DHAVE_OPENSSL_SSL_H' \
    230 	'-DPOSIX' \
    231 	'-DCHROMIUM_BUILD' \
    232 	'-DUSE_LIBJPEG_TURBO=1' \
    233 	'-DENABLE_WEBRTC=1' \
    234 	'-DUSE_PROPRIETARY_CODECS' \
    235 	'-DENABLE_BROWSER_CDMS' \
    236 	'-DENABLE_CONFIGURATION_POLICY' \
    237 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    238 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    239 	'-DENABLE_EGLIMAGE=1' \
    240 	'-DCLD_VERSION=1' \
    241 	'-DENABLE_PRINTING=1' \
    242 	'-DENABLE_MANAGED_USERS=1' \
    243 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    244 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    245 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    246 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    247 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    248 	'-DVIDEO_HOLE=1' \
    249 	'-DPOSIX_AVOID_MMAP' \
    250 	'-DFEATURE_ENABLE_VOICEMAIL' \
    251 	'-DANDROID' \
    252 	'-DUSE_OPENSSL=1' \
    253 	'-DUSE_OPENSSL_CERTS=1' \
    254 	'-D__GNU_SOURCE=1' \
    255 	'-DUSE_STLPORT=1' \
    256 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    257 	'-DCHROME_BUILD_ID=""' \
    258 	'-DNDEBUG' \
    259 	'-DNVALGRIND' \
    260 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    261 
    262 
    263 # Include paths placed before CFLAGS/CPPFLAGS
    264 LOCAL_C_INCLUDES_Release := \
    265 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    266 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    267 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    268 	$(LOCAL_PATH)/third_party/libjingle/overrides \
    269 	$(LOCAL_PATH)/third_party/libjingle/source \
    270 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    271 	$(LOCAL_PATH) \
    272 	$(LOCAL_PATH)/testing/gtest/include \
    273 	$(LOCAL_PATH)/third_party \
    274 	$(LOCAL_PATH)/third_party/libyuv/include \
    275 	$(LOCAL_PATH)/third_party/usrsctp \
    276 	$(LOCAL_PATH)/third_party/webrtc \
    277 	$(gyp_shared_intermediate_dir) \
    278 	$(PWD)/external/expat/lib \
    279 	$(LOCAL_PATH)/third_party/openssl/openssl/include \
    280 	$(PWD)/frameworks/wilhelm/include \
    281 	$(PWD)/bionic \
    282 	$(PWD)/external/stlport/stlport
    283 
    284 
    285 # Flags passed to only C++ (and not C) files.
    286 LOCAL_CPPFLAGS_Release := \
    287 	-fno-rtti \
    288 	-fno-threadsafe-statics \
    289 	-fvisibility-inlines-hidden \
    290 	-Wno-deprecated \
    291 	-Wno-abi \
    292 	-Wno-non-virtual-dtor \
    293 	-Wno-sign-promo \
    294 	-Wno-non-virtual-dtor
    295 
    296 
    297 LOCAL_FDO_SUPPORT_Release := false
    298 
    299 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    300 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
    301 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    302 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    303 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    304 ### Rules for final target.
    305 
    306 LOCAL_LDFLAGS_Debug := \
    307 	-Wl,-z,now \
    308 	-Wl,-z,relro \
    309 	-Wl,--fatal-warnings \
    310 	-Wl,-z,noexecstack \
    311 	-fPIC \
    312 	-Wl,-z,relro \
    313 	-Wl,-z,now \
    314 	-fuse-ld=gold \
    315 	-nostdlib \
    316 	-Wl,--no-undefined \
    317 	-Wl,--exclude-libs=ALL \
    318 	-Wl,--icf=safe \
    319 	-Wl,--warn-shared-textrel \
    320 	-Wl,-O1 \
    321 	-Wl,--as-needed
    322 
    323 
    324 LOCAL_LDFLAGS_Release := \
    325 	-Wl,-z,now \
    326 	-Wl,-z,relro \
    327 	-Wl,--fatal-warnings \
    328 	-Wl,-z,noexecstack \
    329 	-fPIC \
    330 	-Wl,-z,relro \
    331 	-Wl,-z,now \
    332 	-fuse-ld=gold \
    333 	-nostdlib \
    334 	-Wl,--no-undefined \
    335 	-Wl,--exclude-libs=ALL \
    336 	-Wl,--icf=safe \
    337 	-Wl,-O1 \
    338 	-Wl,--as-needed \
    339 	-Wl,--gc-sections \
    340 	-Wl,--warn-shared-textrel
    341 
    342 
    343 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    344 
    345 LOCAL_STATIC_LIBRARIES :=
    346 
    347 # Enable grouping to fix circular references
    348 LOCAL_GROUP_STATIC_LIBRARIES := true
    349 
    350 LOCAL_SHARED_LIBRARIES := \
    351 	libstlport \
    352 	libdl
    353 
    354 # Add target alias to "gyp_all_modules" target.
    355 .PHONY: gyp_all_modules
    356 gyp_all_modules: third_party_libjingle_libjingle_webrtc_gyp
    357 
    358 # Alias gyp target name.
    359 .PHONY: libjingle_webrtc
    360 libjingle_webrtc: third_party_libjingle_libjingle_webrtc_gyp
    361 
    362 include $(BUILD_STATIC_LIBRARY)
    363