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