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