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_approved_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/checks.cc \
     27 	third_party/webrtc/base/exp_filter.cc \
     28 	third_party/webrtc/base/md5.cc \
     29 	third_party/webrtc/base/platform_file.cc \
     30 	third_party/webrtc/base/stringencode.cc \
     31 	third_party/webrtc/base/stringutils.cc \
     32 	third_party/webrtc/base/timeutils.cc
     33 
     34 
     35 # Flags passed to both C and C++ files.
     36 MY_CFLAGS_Debug := \
     37 	-fstack-protector \
     38 	--param=ssp-buffer-size=4 \
     39 	 \
     40 	-fno-strict-aliasing \
     41 	-Wall \
     42 	-Wno-unused-parameter \
     43 	-Wno-missing-field-initializers \
     44 	-fvisibility=hidden \
     45 	-pipe \
     46 	-fPIC \
     47 	-Wno-unused-local-typedefs \
     48 	-fno-builtin-cos \
     49 	-fno-builtin-sin \
     50 	-fno-builtin-cosf \
     51 	-fno-builtin-sinf \
     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 	'-DWEBRTC_RESTRICT_LOGGING' \
     98 	'-DEXPAT_RELATIVE_PATH' \
     99 	'-DWEBRTC_MODULE_UTILITY_VIDEO' \
    100 	'-DWEBRTC_CHROMIUM_BUILD' \
    101 	'-DLOGGING_INSIDE_WEBRTC' \
    102 	'-DWEBRTC_POSIX' \
    103 	'-DWEBRTC_LINUX' \
    104 	'-DWEBRTC_ANDROID' \
    105 	'-DWEBRTC_ANDROID_OPENSLES' \
    106 	'-DUSE_OPENSSL=1' \
    107 	'-DUSE_OPENSSL_CERTS=1' \
    108 	'-D__STDC_CONSTANT_MACROS' \
    109 	'-D__STDC_FORMAT_MACROS' \
    110 	'-DANDROID' \
    111 	'-D__GNU_SOURCE=1' \
    112 	'-DUSE_STLPORT=1' \
    113 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    114 	'-DCHROME_BUILD_ID=""' \
    115 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    116 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    117 	'-D_DEBUG'
    118 
    119 
    120 # Include paths placed before CFLAGS/CPPFLAGS
    121 LOCAL_C_INCLUDES_Debug := \
    122 	$(gyp_shared_intermediate_dir) \
    123 	$(LOCAL_PATH) \
    124 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    125 	$(LOCAL_PATH)/third_party \
    126 	$(PWD)/frameworks/wilhelm/include \
    127 	$(PWD)/bionic \
    128 	$(PWD)/external/stlport/stlport
    129 
    130 
    131 # Flags passed to only C++ (and not C) files.
    132 LOCAL_CPPFLAGS_Debug := \
    133 	-fno-exceptions \
    134 	-fno-rtti \
    135 	-fno-threadsafe-statics \
    136 	-fvisibility-inlines-hidden \
    137 	-Wsign-compare \
    138 	-Wno-uninitialized \
    139 	-std=gnu++11 \
    140 	-Wno-narrowing \
    141 	-Wno-literal-suffix \
    142 	-Wno-non-virtual-dtor \
    143 	-Wno-sign-promo
    144 
    145 
    146 # Flags passed to both C and C++ files.
    147 MY_CFLAGS_Release := \
    148 	-fstack-protector \
    149 	--param=ssp-buffer-size=4 \
    150 	 \
    151 	-fno-strict-aliasing \
    152 	-Wall \
    153 	-Wno-unused-parameter \
    154 	-Wno-missing-field-initializers \
    155 	-fvisibility=hidden \
    156 	-pipe \
    157 	-fPIC \
    158 	-Wno-unused-local-typedefs \
    159 	-fno-builtin-cos \
    160 	-fno-builtin-sin \
    161 	-fno-builtin-cosf \
    162 	-fno-builtin-sinf \
    163 	-ffunction-sections \
    164 	-funwind-tables \
    165 	-g \
    166 	-fstack-protector \
    167 	-fno-short-enums \
    168 	-finline-limit=64 \
    169 	-Wa,--noexecstack \
    170 	-U_FORTIFY_SOURCE \
    171 	-Wno-extra \
    172 	-Wno-ignored-qualifiers \
    173 	-Wno-type-limits \
    174 	-Wno-unused-but-set-variable \
    175 	-Os \
    176 	-fno-ident \
    177 	-fdata-sections \
    178 	-ffunction-sections \
    179 	-fomit-frame-pointer \
    180 	-funwind-tables
    181 
    182 MY_DEFS_Release := \
    183 	'-DV8_DEPRECATION_WARNINGS' \
    184 	'-D_FILE_OFFSET_BITS=64' \
    185 	'-DNO_TCMALLOC' \
    186 	'-DDISABLE_NACL' \
    187 	'-DCHROMIUM_BUILD' \
    188 	'-DUSE_LIBJPEG_TURBO=1' \
    189 	'-DENABLE_WEBRTC=1' \
    190 	'-DUSE_PROPRIETARY_CODECS' \
    191 	'-DENABLE_BROWSER_CDMS' \
    192 	'-DENABLE_CONFIGURATION_POLICY' \
    193 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    194 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    195 	'-DENABLE_EGLIMAGE=1' \
    196 	'-DCLD_VERSION=1' \
    197 	'-DENABLE_PRINTING=1' \
    198 	'-DENABLE_MANAGED_USERS=1' \
    199 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    200 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    201 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    202 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    203 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    204 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    205 	'-DVIDEO_HOLE=1' \
    206 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    207 	'-DWEBRTC_RESTRICT_LOGGING' \
    208 	'-DEXPAT_RELATIVE_PATH' \
    209 	'-DWEBRTC_MODULE_UTILITY_VIDEO' \
    210 	'-DWEBRTC_CHROMIUM_BUILD' \
    211 	'-DLOGGING_INSIDE_WEBRTC' \
    212 	'-DWEBRTC_POSIX' \
    213 	'-DWEBRTC_LINUX' \
    214 	'-DWEBRTC_ANDROID' \
    215 	'-DWEBRTC_ANDROID_OPENSLES' \
    216 	'-DUSE_OPENSSL=1' \
    217 	'-DUSE_OPENSSL_CERTS=1' \
    218 	'-D__STDC_CONSTANT_MACROS' \
    219 	'-D__STDC_FORMAT_MACROS' \
    220 	'-DANDROID' \
    221 	'-D__GNU_SOURCE=1' \
    222 	'-DUSE_STLPORT=1' \
    223 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    224 	'-DCHROME_BUILD_ID=""' \
    225 	'-DNDEBUG' \
    226 	'-DNVALGRIND' \
    227 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    228 	'-D_FORTIFY_SOURCE=2'
    229 
    230 
    231 # Include paths placed before CFLAGS/CPPFLAGS
    232 LOCAL_C_INCLUDES_Release := \
    233 	$(gyp_shared_intermediate_dir) \
    234 	$(LOCAL_PATH) \
    235 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    236 	$(LOCAL_PATH)/third_party \
    237 	$(PWD)/frameworks/wilhelm/include \
    238 	$(PWD)/bionic \
    239 	$(PWD)/external/stlport/stlport
    240 
    241 
    242 # Flags passed to only C++ (and not C) files.
    243 LOCAL_CPPFLAGS_Release := \
    244 	-fno-exceptions \
    245 	-fno-rtti \
    246 	-fno-threadsafe-statics \
    247 	-fvisibility-inlines-hidden \
    248 	-Wsign-compare \
    249 	-Wno-uninitialized \
    250 	-std=gnu++11 \
    251 	-Wno-narrowing \
    252 	-Wno-literal-suffix \
    253 	-Wno-non-virtual-dtor \
    254 	-Wno-sign-promo
    255 
    256 
    257 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    258 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    259 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    260 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    261 ### Rules for final target.
    262 
    263 LOCAL_SHARED_LIBRARIES := \
    264 	libstlport \
    265 	libdl
    266 
    267 # Add target alias to "gyp_all_modules" target.
    268 .PHONY: gyp_all_modules
    269 gyp_all_modules: third_party_webrtc_base_rtc_base_approved_gyp
    270 
    271 # Alias gyp target name.
    272 .PHONY: rtc_base_approved
    273 rtc_base_approved: third_party_webrtc_base_rtc_base_approved_gyp
    274 
    275 include $(BUILD_STATIC_LIBRARY)
    276