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_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 	jingle/glue/channel_socket_adapter.cc \
     27 	jingle/glue/chrome_async_socket.cc \
     28 	jingle/glue/fake_ssl_client_socket.cc \
     29 	jingle/glue/proxy_resolving_client_socket.cc \
     30 	jingle/glue/pseudotcp_adapter.cc \
     31 	jingle/glue/task_pump.cc \
     32 	jingle/glue/thread_wrapper.cc \
     33 	jingle/glue/utils.cc \
     34 	jingle/glue/xmpp_client_socket_factory.cc
     35 
     36 
     37 # Flags passed to both C and C++ files.
     38 MY_CFLAGS_Debug := \
     39 	-fstack-protector \
     40 	--param=ssp-buffer-size=4 \
     41 	-Werror \
     42 	-fno-strict-aliasing \
     43 	-Wall \
     44 	-Wno-unused-parameter \
     45 	-Wno-missing-field-initializers \
     46 	-fvisibility=hidden \
     47 	-pipe \
     48 	-fPIC \
     49 	-Wno-unused-local-typedefs \
     50 	-m64 \
     51 	-march=x86-64 \
     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 	-Os \
     65 	-g \
     66 	-gdwarf-4 \
     67 	-fdata-sections \
     68 	-ffunction-sections \
     69 	-fomit-frame-pointer \
     70 	-funwind-tables
     71 
     72 MY_DEFS_Debug := \
     73 	'-DV8_DEPRECATION_WARNINGS' \
     74 	'-D_FILE_OFFSET_BITS=64' \
     75 	'-DNO_TCMALLOC' \
     76 	'-DDISABLE_NACL' \
     77 	'-DCHROMIUM_BUILD' \
     78 	'-DUSE_LIBJPEG_TURBO=1' \
     79 	'-DENABLE_WEBRTC=1' \
     80 	'-DUSE_PROPRIETARY_CODECS' \
     81 	'-DENABLE_BROWSER_CDMS' \
     82 	'-DENABLE_CONFIGURATION_POLICY' \
     83 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     84 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     85 	'-DENABLE_EGLIMAGE=1' \
     86 	'-DCLD_VERSION=1' \
     87 	'-DENABLE_PRINTING=1' \
     88 	'-DENABLE_MANAGED_USERS=1' \
     89 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     90 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     91 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     92 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     93 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     94 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     95 	'-DVIDEO_HOLE=1' \
     96 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     97 	'-DPOSIX_AVOID_MMAP' \
     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 	'-DWEBRTC_POSIX' \
    107 	'-DXML_STATIC' \
    108 	'-DUSE_OPENSSL=1' \
    109 	'-DUSE_OPENSSL_CERTS=1' \
    110 	'-D__STDC_CONSTANT_MACROS' \
    111 	'-D__STDC_FORMAT_MACROS' \
    112 	'-D__GNU_SOURCE=1' \
    113 	'-DUSE_STLPORT=1' \
    114 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    115 	'-DCHROME_BUILD_ID=""' \
    116 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    117 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    118 	'-D_DEBUG'
    119 
    120 
    121 # Include paths placed before CFLAGS/CPPFLAGS
    122 LOCAL_C_INCLUDES_Debug := \
    123 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    124 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    125 	$(gyp_shared_intermediate_dir) \
    126 	$(LOCAL_PATH) \
    127 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    128 	$(LOCAL_PATH)/third_party/libjingle/overrides \
    129 	$(LOCAL_PATH)/third_party/libjingle/source \
    130 	$(LOCAL_PATH)/testing/gtest/include \
    131 	$(LOCAL_PATH)/third_party \
    132 	$(LOCAL_PATH)/third_party/expat/files/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-exceptions \
    141 	-fno-rtti \
    142 	-fno-threadsafe-statics \
    143 	-fvisibility-inlines-hidden \
    144 	-Wsign-compare \
    145 	-std=gnu++11 \
    146 	-Wno-narrowing \
    147 	-Wno-literal-suffix \
    148 	-Wno-non-virtual-dtor \
    149 	-Wno-sign-promo
    150 
    151 
    152 # Flags passed to both C and C++ files.
    153 MY_CFLAGS_Release := \
    154 	-fstack-protector \
    155 	--param=ssp-buffer-size=4 \
    156 	-Werror \
    157 	-fno-strict-aliasing \
    158 	-Wall \
    159 	-Wno-unused-parameter \
    160 	-Wno-missing-field-initializers \
    161 	-fvisibility=hidden \
    162 	-pipe \
    163 	-fPIC \
    164 	-Wno-unused-local-typedefs \
    165 	-m64 \
    166 	-march=x86-64 \
    167 	-ffunction-sections \
    168 	-funwind-tables \
    169 	-g \
    170 	-fstack-protector \
    171 	-fno-short-enums \
    172 	-finline-limit=64 \
    173 	-Wa,--noexecstack \
    174 	-U_FORTIFY_SOURCE \
    175 	-Wno-extra \
    176 	-Wno-ignored-qualifiers \
    177 	-Wno-type-limits \
    178 	-Wno-unused-but-set-variable \
    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 	'-D_FILE_OFFSET_BITS=64' \
    189 	'-DNO_TCMALLOC' \
    190 	'-DDISABLE_NACL' \
    191 	'-DCHROMIUM_BUILD' \
    192 	'-DUSE_LIBJPEG_TURBO=1' \
    193 	'-DENABLE_WEBRTC=1' \
    194 	'-DUSE_PROPRIETARY_CODECS' \
    195 	'-DENABLE_BROWSER_CDMS' \
    196 	'-DENABLE_CONFIGURATION_POLICY' \
    197 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    198 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    199 	'-DENABLE_EGLIMAGE=1' \
    200 	'-DCLD_VERSION=1' \
    201 	'-DENABLE_PRINTING=1' \
    202 	'-DENABLE_MANAGED_USERS=1' \
    203 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    204 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    205 	'-DDATA_REDUCTION_DEV_FALLBACK_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 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    211 	'-DPOSIX_AVOID_MMAP' \
    212 	'-DFEATURE_ENABLE_SSL' \
    213 	'-DFEATURE_ENABLE_VOICEMAIL' \
    214 	'-DEXPAT_RELATIVE_PATH' \
    215 	'-DGTEST_RELATIVE_PATH' \
    216 	'-DNO_MAIN_THREAD_WRAPPING' \
    217 	'-DNO_SOUND_SYSTEM' \
    218 	'-DANDROID' \
    219 	'-DPOSIX' \
    220 	'-DWEBRTC_POSIX' \
    221 	'-DXML_STATIC' \
    222 	'-DUSE_OPENSSL=1' \
    223 	'-DUSE_OPENSSL_CERTS=1' \
    224 	'-D__STDC_CONSTANT_MACROS' \
    225 	'-D__STDC_FORMAT_MACROS' \
    226 	'-D__GNU_SOURCE=1' \
    227 	'-DUSE_STLPORT=1' \
    228 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    229 	'-DCHROME_BUILD_ID=""' \
    230 	'-DNDEBUG' \
    231 	'-DNVALGRIND' \
    232 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    233 	'-D_FORTIFY_SOURCE=2'
    234 
    235 
    236 # Include paths placed before CFLAGS/CPPFLAGS
    237 LOCAL_C_INCLUDES_Release := \
    238 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    239 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    240 	$(gyp_shared_intermediate_dir) \
    241 	$(LOCAL_PATH) \
    242 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    243 	$(LOCAL_PATH)/third_party/libjingle/overrides \
    244 	$(LOCAL_PATH)/third_party/libjingle/source \
    245 	$(LOCAL_PATH)/testing/gtest/include \
    246 	$(LOCAL_PATH)/third_party \
    247 	$(LOCAL_PATH)/third_party/expat/files/lib \
    248 	$(PWD)/frameworks/wilhelm/include \
    249 	$(PWD)/bionic \
    250 	$(PWD)/external/stlport/stlport
    251 
    252 
    253 # Flags passed to only C++ (and not C) files.
    254 LOCAL_CPPFLAGS_Release := \
    255 	-fno-exceptions \
    256 	-fno-rtti \
    257 	-fno-threadsafe-statics \
    258 	-fvisibility-inlines-hidden \
    259 	-Wsign-compare \
    260 	-std=gnu++11 \
    261 	-Wno-narrowing \
    262 	-Wno-literal-suffix \
    263 	-Wno-non-virtual-dtor \
    264 	-Wno-sign-promo
    265 
    266 
    267 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    268 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    269 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    270 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    271 ### Rules for final target.
    272 
    273 LOCAL_SHARED_LIBRARIES := \
    274 	libstlport \
    275 	libdl
    276 
    277 # Add target alias to "gyp_all_modules" target.
    278 .PHONY: gyp_all_modules
    279 gyp_all_modules: jingle_jingle_glue_gyp
    280 
    281 # Alias gyp target name.
    282 .PHONY: jingle_glue
    283 jingle_glue: jingle_jingle_glue_gyp
    284 
    285 include $(BUILD_STATIC_LIBRARY)
    286