Home | History | Annotate | Download | only in base
      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_webrtc_base_rtc_base_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/webrtc/base/asyncfile.cc \
     27 	third_party/webrtc/base/asynchttprequest.cc \
     28 	third_party/webrtc/base/asyncsocket.cc \
     29 	third_party/webrtc/base/asynctcpsocket.cc \
     30 	third_party/webrtc/base/asyncudpsocket.cc \
     31 	third_party/webrtc/base/autodetectproxy.cc \
     32 	third_party/webrtc/base/base64.cc \
     33 	third_party/webrtc/base/bytebuffer.cc \
     34 	third_party/webrtc/base/common.cc \
     35 	third_party/webrtc/base/cpumonitor.cc \
     36 	third_party/webrtc/base/crc32.cc \
     37 	third_party/webrtc/base/diskcache.cc \
     38 	third_party/webrtc/base/event.cc \
     39 	third_party/webrtc/base/fileutils.cc \
     40 	third_party/webrtc/base/firewallsocketserver.cc \
     41 	third_party/webrtc/base/flags.cc \
     42 	third_party/webrtc/base/helpers.cc \
     43 	third_party/webrtc/base/httpbase.cc \
     44 	third_party/webrtc/base/httpclient.cc \
     45 	third_party/webrtc/base/httpcommon.cc \
     46 	third_party/webrtc/base/httprequest.cc \
     47 	third_party/webrtc/base/ifaddrs-android.cc \
     48 	third_party/webrtc/base/ipaddress.cc \
     49 	third_party/webrtc/base/linux.cc \
     50 	third_party/webrtc/base/messagedigest.cc \
     51 	third_party/webrtc/base/messagehandler.cc \
     52 	third_party/webrtc/base/messagequeue.cc \
     53 	third_party/webrtc/base/nethelpers.cc \
     54 	third_party/webrtc/base/network.cc \
     55 	third_party/webrtc/base/pathutils.cc \
     56 	third_party/webrtc/base/physicalsocketserver.cc \
     57 	third_party/webrtc/base/proxydetect.cc \
     58 	third_party/webrtc/base/proxyinfo.cc \
     59 	third_party/webrtc/base/ratelimiter.cc \
     60 	third_party/webrtc/base/ratetracker.cc \
     61 	third_party/webrtc/base/sha1.cc \
     62 	third_party/webrtc/base/signalthread.cc \
     63 	third_party/webrtc/base/socketadapters.cc \
     64 	third_party/webrtc/base/socketaddress.cc \
     65 	third_party/webrtc/base/socketaddresspair.cc \
     66 	third_party/webrtc/base/socketpool.cc \
     67 	third_party/webrtc/base/socketstream.cc \
     68 	third_party/webrtc/base/ssladapter.cc \
     69 	third_party/webrtc/base/sslfingerprint.cc \
     70 	third_party/webrtc/base/sslidentity.cc \
     71 	third_party/webrtc/base/sslsocketfactory.cc \
     72 	third_party/webrtc/base/sslstreamadapter.cc \
     73 	third_party/webrtc/base/sslstreamadapterhelper.cc \
     74 	third_party/webrtc/base/stream.cc \
     75 	third_party/webrtc/base/systeminfo.cc \
     76 	third_party/webrtc/base/task.cc \
     77 	third_party/webrtc/base/taskparent.cc \
     78 	third_party/webrtc/base/taskrunner.cc \
     79 	third_party/webrtc/base/thread.cc \
     80 	third_party/webrtc/base/thread_checker_impl.cc \
     81 	third_party/webrtc/base/timing.cc \
     82 	third_party/webrtc/base/unixfilesystem.cc \
     83 	third_party/webrtc/base/urlencode.cc \
     84 	third_party/webrtc/base/worker.cc \
     85 	third_party/webrtc/overrides/webrtc/base/logging.cc \
     86 	third_party/webrtc/base/openssladapter.cc \
     87 	third_party/webrtc/base/openssldigest.cc \
     88 	third_party/webrtc/base/opensslidentity.cc \
     89 	third_party/webrtc/base/opensslstreamadapter.cc
     90 
     91 
     92 # Flags passed to both C and C++ files.
     93 MY_CFLAGS_Debug := \
     94 	-fstack-protector \
     95 	--param=ssp-buffer-size=4 \
     96 	-Werror \
     97 	-fno-strict-aliasing \
     98 	-Wno-unused-parameter \
     99 	-Wno-missing-field-initializers \
    100 	-fvisibility=hidden \
    101 	-pipe \
    102 	-fPIC \
    103 	-Wno-unused-local-typedefs \
    104 	-fno-builtin-cos \
    105 	-fno-builtin-sin \
    106 	-fno-builtin-cosf \
    107 	-fno-builtin-sinf \
    108 	-m64 \
    109 	-march=x86-64 \
    110 	-ffunction-sections \
    111 	-funwind-tables \
    112 	-g \
    113 	-fstack-protector \
    114 	-fno-short-enums \
    115 	-finline-limit=64 \
    116 	-Wa,--noexecstack \
    117 	-U_FORTIFY_SOURCE \
    118 	-Wno-extra \
    119 	-Wno-ignored-qualifiers \
    120 	-Wno-type-limits \
    121 	-Wno-unused-but-set-variable \
    122 	-Os \
    123 	-g \
    124 	-gdwarf-4 \
    125 	-fdata-sections \
    126 	-ffunction-sections \
    127 	-fomit-frame-pointer \
    128 	-funwind-tables
    129 
    130 MY_DEFS_Debug := \
    131 	'-DV8_DEPRECATION_WARNINGS' \
    132 	'-D_FILE_OFFSET_BITS=64' \
    133 	'-DNO_TCMALLOC' \
    134 	'-DDISABLE_NACL' \
    135 	'-DCHROMIUM_BUILD' \
    136 	'-DUSE_LIBJPEG_TURBO=1' \
    137 	'-DENABLE_WEBRTC=1' \
    138 	'-DUSE_PROPRIETARY_CODECS' \
    139 	'-DENABLE_BROWSER_CDMS' \
    140 	'-DENABLE_CONFIGURATION_POLICY' \
    141 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    142 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    143 	'-DENABLE_EGLIMAGE=1' \
    144 	'-DCLD_VERSION=1' \
    145 	'-DENABLE_PRINTING=1' \
    146 	'-DENABLE_MANAGED_USERS=1' \
    147 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    148 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    149 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    150 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    151 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    152 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    153 	'-DVIDEO_HOLE=1' \
    154 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    155 	'-DWEBRTC_RESTRICT_LOGGING' \
    156 	'-DEXPAT_RELATIVE_PATH' \
    157 	'-DWEBRTC_MODULE_UTILITY_VIDEO' \
    158 	'-DWEBRTC_CHROMIUM_BUILD' \
    159 	'-DLOGGING_INSIDE_WEBRTC' \
    160 	'-DWEBRTC_POSIX' \
    161 	'-DWEBRTC_LINUX' \
    162 	'-DWEBRTC_ANDROID' \
    163 	'-DWEBRTC_ANDROID_OPENSLES' \
    164 	'-DFEATURE_ENABLE_SSL' \
    165 	'-DLOGGING=1' \
    166 	'-DUSE_WEBRTC_DEV_BRANCH' \
    167 	'-DNO_MAIN_THREAD_WRAPPING' \
    168 	'-DSSL_USE_OPENSSL' \
    169 	'-DHAVE_OPENSSL_SSL_H' \
    170 	'-DUSE_OPENSSL=1' \
    171 	'-DUSE_OPENSSL_CERTS=1' \
    172 	'-D__STDC_CONSTANT_MACROS' \
    173 	'-D__STDC_FORMAT_MACROS' \
    174 	'-DANDROID' \
    175 	'-D__GNU_SOURCE=1' \
    176 	'-DUSE_STLPORT=1' \
    177 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    178 	'-DCHROME_BUILD_ID=""' \
    179 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    180 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    181 	'-D_DEBUG'
    182 
    183 
    184 # Include paths placed before CFLAGS/CPPFLAGS
    185 LOCAL_C_INCLUDES_Debug := \
    186 	$(gyp_shared_intermediate_dir) \
    187 	$(LOCAL_PATH) \
    188 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    189 	$(LOCAL_PATH)/third_party \
    190 	$(LOCAL_PATH)/third_party/third_party/jsoncpp/overrides/include \
    191 	$(LOCAL_PATH)/third_party/third_party/jsoncpp/source/include \
    192 	$(LOCAL_PATH)/third_party/boringssl/src/include \
    193 	$(PWD)/frameworks/wilhelm/include \
    194 	$(PWD)/bionic \
    195 	$(PWD)/external/stlport/stlport
    196 
    197 
    198 # Flags passed to only C++ (and not C) files.
    199 LOCAL_CPPFLAGS_Debug := \
    200 	-fno-exceptions \
    201 	-fno-rtti \
    202 	-fno-threadsafe-statics \
    203 	-fvisibility-inlines-hidden \
    204 	-Wsign-compare \
    205 	-std=gnu++11 \
    206 	-Wno-narrowing \
    207 	-Wno-literal-suffix \
    208 	-Wno-non-virtual-dtor \
    209 	-Wno-sign-promo
    210 
    211 
    212 # Flags passed to both C and C++ files.
    213 MY_CFLAGS_Release := \
    214 	-fstack-protector \
    215 	--param=ssp-buffer-size=4 \
    216 	-Werror \
    217 	-fno-strict-aliasing \
    218 	-Wno-unused-parameter \
    219 	-Wno-missing-field-initializers \
    220 	-fvisibility=hidden \
    221 	-pipe \
    222 	-fPIC \
    223 	-Wno-unused-local-typedefs \
    224 	-fno-builtin-cos \
    225 	-fno-builtin-sin \
    226 	-fno-builtin-cosf \
    227 	-fno-builtin-sinf \
    228 	-m64 \
    229 	-march=x86-64 \
    230 	-ffunction-sections \
    231 	-funwind-tables \
    232 	-g \
    233 	-fstack-protector \
    234 	-fno-short-enums \
    235 	-finline-limit=64 \
    236 	-Wa,--noexecstack \
    237 	-U_FORTIFY_SOURCE \
    238 	-Wno-extra \
    239 	-Wno-ignored-qualifiers \
    240 	-Wno-type-limits \
    241 	-Wno-unused-but-set-variable \
    242 	-Os \
    243 	-fno-ident \
    244 	-fdata-sections \
    245 	-ffunction-sections \
    246 	-fomit-frame-pointer \
    247 	-funwind-tables
    248 
    249 MY_DEFS_Release := \
    250 	'-DV8_DEPRECATION_WARNINGS' \
    251 	'-D_FILE_OFFSET_BITS=64' \
    252 	'-DNO_TCMALLOC' \
    253 	'-DDISABLE_NACL' \
    254 	'-DCHROMIUM_BUILD' \
    255 	'-DUSE_LIBJPEG_TURBO=1' \
    256 	'-DENABLE_WEBRTC=1' \
    257 	'-DUSE_PROPRIETARY_CODECS' \
    258 	'-DENABLE_BROWSER_CDMS' \
    259 	'-DENABLE_CONFIGURATION_POLICY' \
    260 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    261 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    262 	'-DENABLE_EGLIMAGE=1' \
    263 	'-DCLD_VERSION=1' \
    264 	'-DENABLE_PRINTING=1' \
    265 	'-DENABLE_MANAGED_USERS=1' \
    266 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    267 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    268 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    269 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    270 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    271 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    272 	'-DVIDEO_HOLE=1' \
    273 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    274 	'-DWEBRTC_RESTRICT_LOGGING' \
    275 	'-DEXPAT_RELATIVE_PATH' \
    276 	'-DWEBRTC_MODULE_UTILITY_VIDEO' \
    277 	'-DWEBRTC_CHROMIUM_BUILD' \
    278 	'-DLOGGING_INSIDE_WEBRTC' \
    279 	'-DWEBRTC_POSIX' \
    280 	'-DWEBRTC_LINUX' \
    281 	'-DWEBRTC_ANDROID' \
    282 	'-DWEBRTC_ANDROID_OPENSLES' \
    283 	'-DFEATURE_ENABLE_SSL' \
    284 	'-DLOGGING=1' \
    285 	'-DUSE_WEBRTC_DEV_BRANCH' \
    286 	'-DNO_MAIN_THREAD_WRAPPING' \
    287 	'-DSSL_USE_OPENSSL' \
    288 	'-DHAVE_OPENSSL_SSL_H' \
    289 	'-DUSE_OPENSSL=1' \
    290 	'-DUSE_OPENSSL_CERTS=1' \
    291 	'-D__STDC_CONSTANT_MACROS' \
    292 	'-D__STDC_FORMAT_MACROS' \
    293 	'-DANDROID' \
    294 	'-D__GNU_SOURCE=1' \
    295 	'-DUSE_STLPORT=1' \
    296 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    297 	'-DCHROME_BUILD_ID=""' \
    298 	'-DNDEBUG' \
    299 	'-DNVALGRIND' \
    300 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    301 	'-D_FORTIFY_SOURCE=2'
    302 
    303 
    304 # Include paths placed before CFLAGS/CPPFLAGS
    305 LOCAL_C_INCLUDES_Release := \
    306 	$(gyp_shared_intermediate_dir) \
    307 	$(LOCAL_PATH) \
    308 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    309 	$(LOCAL_PATH)/third_party \
    310 	$(LOCAL_PATH)/third_party/third_party/jsoncpp/overrides/include \
    311 	$(LOCAL_PATH)/third_party/third_party/jsoncpp/source/include \
    312 	$(LOCAL_PATH)/third_party/boringssl/src/include \
    313 	$(PWD)/frameworks/wilhelm/include \
    314 	$(PWD)/bionic \
    315 	$(PWD)/external/stlport/stlport
    316 
    317 
    318 # Flags passed to only C++ (and not C) files.
    319 LOCAL_CPPFLAGS_Release := \
    320 	-fno-exceptions \
    321 	-fno-rtti \
    322 	-fno-threadsafe-statics \
    323 	-fvisibility-inlines-hidden \
    324 	-Wsign-compare \
    325 	-std=gnu++11 \
    326 	-Wno-narrowing \
    327 	-Wno-literal-suffix \
    328 	-Wno-non-virtual-dtor \
    329 	-Wno-sign-promo
    330 
    331 
    332 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    333 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    334 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    335 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    336 ### Rules for final target.
    337 
    338 LOCAL_SHARED_LIBRARIES := \
    339 	libstlport \
    340 	libdl
    341 
    342 # Add target alias to "gyp_all_modules" target.
    343 .PHONY: gyp_all_modules
    344 gyp_all_modules: third_party_webrtc_base_rtc_base_gyp
    345 
    346 # Alias gyp target name.
    347 .PHONY: rtc_base
    348 rtc_base: third_party_webrtc_base_rtc_base_gyp
    349 
    350 include $(BUILD_STATIC_LIBRARY)
    351