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