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