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 gyp_intermediate_dir := $(call local-intermediates-dir)
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES := \
     14 	$(call intermediates-dir-for,GYP,third_party_expat_expat_gyp)/expat.stamp
     15 
     16 GYP_GENERATED_OUTPUTS :=
     17 
     18 # Make sure our deps and generated files are built first.
     19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     20 
     21 LOCAL_CPP_EXTENSION := .cc
     22 LOCAL_GENERATED_SOURCES :=
     23 
     24 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     25 
     26 LOCAL_SRC_FILES := \
     27 	third_party/libjingle/source/talk/p2p/base/constants.cc
     28 
     29 
     30 # Flags passed to both C and C++ files.
     31 MY_CFLAGS_Debug := \
     32 	-fstack-protector \
     33 	--param=ssp-buffer-size=4 \
     34 	 \
     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-format \
     43 	-EL \
     44 	-mhard-float \
     45 	-ffunction-sections \
     46 	-funwind-tables \
     47 	-g \
     48 	-fstack-protector \
     49 	-fno-short-enums \
     50 	-finline-limit=64 \
     51 	-Wa,--noexecstack \
     52 	-U_FORTIFY_SOURCE \
     53 	-Wno-extra \
     54 	-Wno-ignored-qualifiers \
     55 	-Wno-type-limits \
     56 	-Wno-address \
     57 	-Wno-format-security \
     58 	-Wno-return-type \
     59 	-Wno-sequence-point \
     60 	-Os \
     61 	-g \
     62 	-fomit-frame-pointer \
     63 	-fdata-sections \
     64 	-ffunction-sections
     65 
     66 MY_DEFS_Debug := \
     67 	'-DEXPAT_RELATIVE_PATH' \
     68 	'-DFEATURE_ENABLE_SSL' \
     69 	'-DGTEST_RELATIVE_PATH' \
     70 	'-DHAVE_SRTP' \
     71 	'-DHAVE_WEBRTC_VIDEO' \
     72 	'-DHAVE_WEBRTC_VOICE' \
     73 	'-DJSONCPP_RELATIVE_PATH' \
     74 	'-DLOGGING_INSIDE_LIBJINGLE' \
     75 	'-DNO_MAIN_THREAD_WRAPPING' \
     76 	'-DNO_SOUND_SYSTEM' \
     77 	'-DSRTP_RELATIVE_PATH' \
     78 	'-DUSE_WEBRTC_DEV_BRANCH' \
     79 	'-DANGLE_DX11' \
     80 	'-D_FILE_OFFSET_BITS=64' \
     81 	'-DNO_TCMALLOC' \
     82 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     83 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     84 	'-DDISABLE_NACL' \
     85 	'-DLIBPEERCONNECTION_LIB=1' \
     86 	'-DSSL_USE_OPENSSL' \
     87 	'-DHAVE_OPENSSL_SSL_H' \
     88 	'-DPOSIX' \
     89 	'-DCHROMIUM_BUILD' \
     90 	'-DUSE_LIBJPEG_TURBO=1' \
     91 	'-DUSE_PROPRIETARY_CODECS' \
     92 	'-DENABLE_CONFIGURATION_POLICY' \
     93 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
     94 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
     95 	'-DENABLE_GPU=1' \
     96 	'-DUSE_OPENSSL=1' \
     97 	'-DENABLE_EGLIMAGE=1' \
     98 	'-DENABLE_PRINTING=1' \
     99 	'-DPOSIX_AVOID_MMAP' \
    100 	'-DANDROID' \
    101 	'-D__GNU_SOURCE=1' \
    102 	'-DUSE_STLPORT=1' \
    103 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    104 	'-DCHROME_BUILD_ID=""' \
    105 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    106 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    107 	'-D_DEBUG'
    108 
    109 
    110 # Include paths placed before CFLAGS/CPPFLAGS
    111 LOCAL_C_INCLUDES_Debug := \
    112 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    113 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    114 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    115 	$(LOCAL_PATH)/third_party/libjingle/overrides \
    116 	$(LOCAL_PATH)/third_party/libjingle/source \
    117 	$(LOCAL_PATH)/testing/gtest/include \
    118 	$(LOCAL_PATH)/third_party \
    119 	$(LOCAL_PATH)/third_party/libyuv/include \
    120 	$(LOCAL_PATH)/third_party/usrsctp \
    121 	$(LOCAL_PATH)/third_party/webrtc \
    122 	$(LOCAL_PATH) \
    123 	$(PWD)/external/expat/lib \
    124 	$(LOCAL_PATH)/third_party/openssl/openssl/include \
    125 	$(PWD)/frameworks/wilhelm/include \
    126 	$(PWD)/bionic \
    127 	$(PWD)/external/stlport/stlport
    128 
    129 
    130 # Flags passed to only C++ (and not C) files.
    131 LOCAL_CPPFLAGS_Debug := \
    132 	-fno-rtti \
    133 	-fno-threadsafe-statics \
    134 	-fvisibility-inlines-hidden \
    135 	-Wno-deprecated \
    136 	-Wno-uninitialized \
    137 	-Wno-error=c++0x-compat \
    138 	-Wno-non-virtual-dtor \
    139 	-Wno-sign-promo \
    140 	-Wno-non-virtual-dtor
    141 
    142 
    143 # Flags passed to both C and C++ files.
    144 MY_CFLAGS_Release := \
    145 	-fstack-protector \
    146 	--param=ssp-buffer-size=4 \
    147 	 \
    148 	-fno-exceptions \
    149 	-fno-strict-aliasing \
    150 	-Wno-unused-parameter \
    151 	-Wno-missing-field-initializers \
    152 	-fvisibility=hidden \
    153 	-pipe \
    154 	-fPIC \
    155 	-Wno-format \
    156 	-EL \
    157 	-mhard-float \
    158 	-ffunction-sections \
    159 	-funwind-tables \
    160 	-g \
    161 	-fstack-protector \
    162 	-fno-short-enums \
    163 	-finline-limit=64 \
    164 	-Wa,--noexecstack \
    165 	-U_FORTIFY_SOURCE \
    166 	-Wno-extra \
    167 	-Wno-ignored-qualifiers \
    168 	-Wno-type-limits \
    169 	-Wno-address \
    170 	-Wno-format-security \
    171 	-Wno-return-type \
    172 	-Wno-sequence-point \
    173 	-Os \
    174 	-fno-ident \
    175 	-fdata-sections \
    176 	-ffunction-sections \
    177 	-fomit-frame-pointer
    178 
    179 MY_DEFS_Release := \
    180 	'-DEXPAT_RELATIVE_PATH' \
    181 	'-DFEATURE_ENABLE_SSL' \
    182 	'-DGTEST_RELATIVE_PATH' \
    183 	'-DHAVE_SRTP' \
    184 	'-DHAVE_WEBRTC_VIDEO' \
    185 	'-DHAVE_WEBRTC_VOICE' \
    186 	'-DJSONCPP_RELATIVE_PATH' \
    187 	'-DLOGGING_INSIDE_LIBJINGLE' \
    188 	'-DNO_MAIN_THREAD_WRAPPING' \
    189 	'-DNO_SOUND_SYSTEM' \
    190 	'-DSRTP_RELATIVE_PATH' \
    191 	'-DUSE_WEBRTC_DEV_BRANCH' \
    192 	'-DANGLE_DX11' \
    193 	'-D_FILE_OFFSET_BITS=64' \
    194 	'-DNO_TCMALLOC' \
    195 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    196 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    197 	'-DDISABLE_NACL' \
    198 	'-DLIBPEERCONNECTION_LIB=1' \
    199 	'-DSSL_USE_OPENSSL' \
    200 	'-DHAVE_OPENSSL_SSL_H' \
    201 	'-DPOSIX' \
    202 	'-DCHROMIUM_BUILD' \
    203 	'-DUSE_LIBJPEG_TURBO=1' \
    204 	'-DUSE_PROPRIETARY_CODECS' \
    205 	'-DENABLE_CONFIGURATION_POLICY' \
    206 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    207 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    208 	'-DENABLE_GPU=1' \
    209 	'-DUSE_OPENSSL=1' \
    210 	'-DENABLE_EGLIMAGE=1' \
    211 	'-DENABLE_PRINTING=1' \
    212 	'-DPOSIX_AVOID_MMAP' \
    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 
    222 
    223 # Include paths placed before CFLAGS/CPPFLAGS
    224 LOCAL_C_INCLUDES_Release := \
    225 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    226 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    227 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    228 	$(LOCAL_PATH)/third_party/libjingle/overrides \
    229 	$(LOCAL_PATH)/third_party/libjingle/source \
    230 	$(LOCAL_PATH)/testing/gtest/include \
    231 	$(LOCAL_PATH)/third_party \
    232 	$(LOCAL_PATH)/third_party/libyuv/include \
    233 	$(LOCAL_PATH)/third_party/usrsctp \
    234 	$(LOCAL_PATH)/third_party/webrtc \
    235 	$(LOCAL_PATH) \
    236 	$(PWD)/external/expat/lib \
    237 	$(LOCAL_PATH)/third_party/openssl/openssl/include \
    238 	$(PWD)/frameworks/wilhelm/include \
    239 	$(PWD)/bionic \
    240 	$(PWD)/external/stlport/stlport
    241 
    242 
    243 # Flags passed to only C++ (and not C) files.
    244 LOCAL_CPPFLAGS_Release := \
    245 	-fno-rtti \
    246 	-fno-threadsafe-statics \
    247 	-fvisibility-inlines-hidden \
    248 	-Wno-deprecated \
    249 	-Wno-uninitialized \
    250 	-Wno-error=c++0x-compat \
    251 	-Wno-non-virtual-dtor \
    252 	-Wno-sign-promo \
    253 	-Wno-non-virtual-dtor
    254 
    255 
    256 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    257 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    258 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    259 ### Rules for final target.
    260 
    261 LOCAL_LDFLAGS_Debug := \
    262 	-Wl,-z,now \
    263 	-Wl,-z,relro \
    264 	-Wl,-z,noexecstack \
    265 	-fPIC \
    266 	-EL \
    267 	-Wl,--no-keep-memory \
    268 	-nostdlib \
    269 	-Wl,--no-undefined \
    270 	-Wl,--exclude-libs=ALL \
    271 	-Wl,--fatal-warnings \
    272 	-Wl,--gc-sections \
    273 	-Wl,--warn-shared-textrel \
    274 	-Wl,-O1 \
    275 	-Wl,--as-needed
    276 
    277 
    278 LOCAL_LDFLAGS_Release := \
    279 	-Wl,-z,now \
    280 	-Wl,-z,relro \
    281 	-Wl,-z,noexecstack \
    282 	-fPIC \
    283 	-EL \
    284 	-Wl,--no-keep-memory \
    285 	-nostdlib \
    286 	-Wl,--no-undefined \
    287 	-Wl,--exclude-libs=ALL \
    288 	-Wl,-O1 \
    289 	-Wl,--as-needed \
    290 	-Wl,--gc-sections \
    291 	-Wl,--fatal-warnings \
    292 	-Wl,--warn-shared-textrel
    293 
    294 
    295 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    296 
    297 LOCAL_STATIC_LIBRARIES :=
    298 
    299 # Enable grouping to fix circular references
    300 LOCAL_GROUP_STATIC_LIBRARIES := true
    301 
    302 LOCAL_SHARED_LIBRARIES := \
    303 	libstlport \
    304 	libdl
    305 
    306 # Add target alias to "gyp_all_modules" target.
    307 .PHONY: gyp_all_modules
    308 gyp_all_modules: third_party_libjingle_libjingle_p2p_constants_gyp
    309 
    310 # Alias gyp target name.
    311 .PHONY: libjingle_p2p_constants
    312 libjingle_p2p_constants: third_party_libjingle_libjingle_p2p_constants_gyp
    313 
    314 include $(BUILD_STATIC_LIBRARY)
    315