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