Home | History | Annotate | Download | only in common_audio
      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_common_audio_common_audio_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/common_audio/audio_util.cc \
     28 	third_party/webrtc/common_audio/fir_filter.cc \
     29 	third_party/webrtc/common_audio/resampler/push_resampler.cc \
     30 	third_party/webrtc/common_audio/resampler/push_sinc_resampler.cc \
     31 	third_party/webrtc/common_audio/resampler/resampler.cc \
     32 	third_party/webrtc/common_audio/resampler/sinc_resampler.cc \
     33 	third_party/webrtc/common_audio/signal_processing/auto_corr_to_refl_coef.c \
     34 	third_party/webrtc/common_audio/signal_processing/auto_correlation.c \
     35 	third_party/webrtc/common_audio/signal_processing/copy_set_operations.c \
     36 	third_party/webrtc/common_audio/signal_processing/cross_correlation.c \
     37 	third_party/webrtc/common_audio/signal_processing/division_operations.c \
     38 	third_party/webrtc/common_audio/signal_processing/dot_product_with_scale.c \
     39 	third_party/webrtc/common_audio/signal_processing/downsample_fast.c \
     40 	third_party/webrtc/common_audio/signal_processing/energy.c \
     41 	third_party/webrtc/common_audio/signal_processing/filter_ar.c \
     42 	third_party/webrtc/common_audio/signal_processing/filter_ma_fast_q12.c \
     43 	third_party/webrtc/common_audio/signal_processing/get_hanning_window.c \
     44 	third_party/webrtc/common_audio/signal_processing/get_scaling_square.c \
     45 	third_party/webrtc/common_audio/signal_processing/ilbc_specific_functions.c \
     46 	third_party/webrtc/common_audio/signal_processing/levinson_durbin.c \
     47 	third_party/webrtc/common_audio/signal_processing/lpc_to_refl_coef.c \
     48 	third_party/webrtc/common_audio/signal_processing/min_max_operations.c \
     49 	third_party/webrtc/common_audio/signal_processing/randomization_functions.c \
     50 	third_party/webrtc/common_audio/signal_processing/refl_coef_to_lpc.c \
     51 	third_party/webrtc/common_audio/signal_processing/real_fft.c \
     52 	third_party/webrtc/common_audio/signal_processing/resample.c \
     53 	third_party/webrtc/common_audio/signal_processing/resample_48khz.c \
     54 	third_party/webrtc/common_audio/signal_processing/resample_by_2.c \
     55 	third_party/webrtc/common_audio/signal_processing/resample_by_2_internal.c \
     56 	third_party/webrtc/common_audio/signal_processing/resample_fractional.c \
     57 	third_party/webrtc/common_audio/signal_processing/spl_init.c \
     58 	third_party/webrtc/common_audio/signal_processing/spl_sqrt.c \
     59 	third_party/webrtc/common_audio/signal_processing/spl_version.c \
     60 	third_party/webrtc/common_audio/signal_processing/splitting_filter.c \
     61 	third_party/webrtc/common_audio/signal_processing/sqrt_of_one_minus_x_squared.c \
     62 	third_party/webrtc/common_audio/signal_processing/vector_scaling_operations.c \
     63 	third_party/webrtc/common_audio/vad/webrtc_vad.c \
     64 	third_party/webrtc/common_audio/vad/vad_core.c \
     65 	third_party/webrtc/common_audio/vad/vad_filterbank.c \
     66 	third_party/webrtc/common_audio/vad/vad_gmm.c \
     67 	third_party/webrtc/common_audio/vad/vad_sp.c \
     68 	third_party/webrtc/common_audio/signal_processing/complex_bit_reverse_mips.c \
     69 	third_party/webrtc/common_audio/signal_processing/complex_fft_mips.c \
     70 	third_party/webrtc/common_audio/signal_processing/cross_correlation_mips.c \
     71 	third_party/webrtc/common_audio/signal_processing/downsample_fast_mips.c \
     72 	third_party/webrtc/common_audio/signal_processing/filter_ar_fast_q12_mips.c \
     73 	third_party/webrtc/common_audio/signal_processing/min_max_operations_mips.c \
     74 	third_party/webrtc/common_audio/signal_processing/resample_by_2_mips.c \
     75 	third_party/webrtc/common_audio/signal_processing/spl_sqrt_floor_mips.c
     76 
     77 
     78 # Flags passed to both C and C++ files.
     79 MY_CFLAGS_Debug := \
     80 	-fstack-protector \
     81 	--param=ssp-buffer-size=4 \
     82 	 \
     83 	-fno-exceptions \
     84 	-fno-strict-aliasing \
     85 	-Wall \
     86 	-Wno-unused-parameter \
     87 	-Wno-missing-field-initializers \
     88 	-fvisibility=hidden \
     89 	-pipe \
     90 	-fPIC \
     91 	-Wno-unused-local-typedefs \
     92 	-mhard-float \
     93 	-fno-builtin-cos \
     94 	-fno-builtin-sin \
     95 	-fno-builtin-cosf \
     96 	-fno-builtin-sinf \
     97 	-EL \
     98 	-mhard-float \
     99 	-ffunction-sections \
    100 	-funwind-tables \
    101 	-g \
    102 	-fstack-protector \
    103 	-fno-short-enums \
    104 	-finline-limit=64 \
    105 	-Wa,--noexecstack \
    106 	-U_FORTIFY_SOURCE \
    107 	-Wno-extra \
    108 	-Wno-ignored-qualifiers \
    109 	-Wno-type-limits \
    110 	-Wno-unused-but-set-variable \
    111 	-Os \
    112 	-g \
    113 	-fdata-sections \
    114 	-ffunction-sections \
    115 	-fomit-frame-pointer \
    116 	-funwind-tables
    117 
    118 MY_DEFS_Debug := \
    119 	'-DV8_DEPRECATION_WARNINGS' \
    120 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    121 	'-D_FILE_OFFSET_BITS=64' \
    122 	'-DNO_TCMALLOC' \
    123 	'-DDISABLE_NACL' \
    124 	'-DCHROMIUM_BUILD' \
    125 	'-DUSE_LIBJPEG_TURBO=1' \
    126 	'-DENABLE_WEBRTC=1' \
    127 	'-DUSE_PROPRIETARY_CODECS' \
    128 	'-DENABLE_BROWSER_CDMS' \
    129 	'-DENABLE_CONFIGURATION_POLICY' \
    130 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    131 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    132 	'-DENABLE_EGLIMAGE=1' \
    133 	'-DCLD_VERSION=1' \
    134 	'-DENABLE_PRINTING=1' \
    135 	'-DENABLE_MANAGED_USERS=1' \
    136 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    137 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    138 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    139 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    140 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    141 	'-DVIDEO_HOLE=1' \
    142 	'-DWEBRTC_RESTRICT_LOGGING' \
    143 	'-DWEBRTC_MODULE_UTILITY_VIDEO' \
    144 	'-DWEBRTC_CHROMIUM_BUILD' \
    145 	'-DLOGGING_INSIDE_WEBRTC' \
    146 	'-DMIPS32_LE' \
    147 	'-DMIPS_FPU_LE' \
    148 	'-DWEBRTC_POSIX' \
    149 	'-DWEBRTC_LINUX' \
    150 	'-DWEBRTC_ANDROID' \
    151 	'-DWEBRTC_ANDROID_OPENSLES' \
    152 	'-DUSE_OPENSSL=1' \
    153 	'-DUSE_OPENSSL_CERTS=1' \
    154 	'-D__STDC_CONSTANT_MACROS' \
    155 	'-D__STDC_FORMAT_MACROS' \
    156 	'-DANDROID' \
    157 	'-D__GNU_SOURCE=1' \
    158 	'-DUSE_STLPORT=1' \
    159 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    160 	'-DCHROME_BUILD_ID=""' \
    161 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    162 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    163 	'-D_DEBUG'
    164 
    165 
    166 # Include paths placed before CFLAGS/CPPFLAGS
    167 LOCAL_C_INCLUDES_Debug := \
    168 	$(gyp_shared_intermediate_dir) \
    169 	$(LOCAL_PATH) \
    170 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    171 	$(LOCAL_PATH)/third_party \
    172 	$(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \
    173 	$(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \
    174 	$(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
    175 	$(PWD)/frameworks/wilhelm/include \
    176 	$(PWD)/bionic \
    177 	$(PWD)/external/stlport/stlport
    178 
    179 
    180 # Flags passed to only C++ (and not C) files.
    181 LOCAL_CPPFLAGS_Debug := \
    182 	-fno-rtti \
    183 	-fno-threadsafe-statics \
    184 	-fvisibility-inlines-hidden \
    185 	-Wsign-compare \
    186 	-Wno-uninitialized \
    187 	-Wno-non-virtual-dtor \
    188 	-Wno-sign-promo
    189 
    190 
    191 LOCAL_FDO_SUPPORT_Debug := false
    192 
    193 # Flags passed to both C and C++ files.
    194 MY_CFLAGS_Release := \
    195 	-fstack-protector \
    196 	--param=ssp-buffer-size=4 \
    197 	 \
    198 	-fno-exceptions \
    199 	-fno-strict-aliasing \
    200 	-Wall \
    201 	-Wno-unused-parameter \
    202 	-Wno-missing-field-initializers \
    203 	-fvisibility=hidden \
    204 	-pipe \
    205 	-fPIC \
    206 	-Wno-unused-local-typedefs \
    207 	-mhard-float \
    208 	-fno-builtin-cos \
    209 	-fno-builtin-sin \
    210 	-fno-builtin-cosf \
    211 	-fno-builtin-sinf \
    212 	-EL \
    213 	-mhard-float \
    214 	-ffunction-sections \
    215 	-funwind-tables \
    216 	-g \
    217 	-fstack-protector \
    218 	-fno-short-enums \
    219 	-finline-limit=64 \
    220 	-Wa,--noexecstack \
    221 	-U_FORTIFY_SOURCE \
    222 	-Wno-extra \
    223 	-Wno-ignored-qualifiers \
    224 	-Wno-type-limits \
    225 	-Wno-unused-but-set-variable \
    226 	-Os \
    227 	-fno-ident \
    228 	-fdata-sections \
    229 	-ffunction-sections \
    230 	-fomit-frame-pointer \
    231 	-funwind-tables
    232 
    233 MY_DEFS_Release := \
    234 	'-DV8_DEPRECATION_WARNINGS' \
    235 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    236 	'-D_FILE_OFFSET_BITS=64' \
    237 	'-DNO_TCMALLOC' \
    238 	'-DDISABLE_NACL' \
    239 	'-DCHROMIUM_BUILD' \
    240 	'-DUSE_LIBJPEG_TURBO=1' \
    241 	'-DENABLE_WEBRTC=1' \
    242 	'-DUSE_PROPRIETARY_CODECS' \
    243 	'-DENABLE_BROWSER_CDMS' \
    244 	'-DENABLE_CONFIGURATION_POLICY' \
    245 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    246 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    247 	'-DENABLE_EGLIMAGE=1' \
    248 	'-DCLD_VERSION=1' \
    249 	'-DENABLE_PRINTING=1' \
    250 	'-DENABLE_MANAGED_USERS=1' \
    251 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    252 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    253 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    254 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    255 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    256 	'-DVIDEO_HOLE=1' \
    257 	'-DWEBRTC_RESTRICT_LOGGING' \
    258 	'-DWEBRTC_MODULE_UTILITY_VIDEO' \
    259 	'-DWEBRTC_CHROMIUM_BUILD' \
    260 	'-DLOGGING_INSIDE_WEBRTC' \
    261 	'-DMIPS32_LE' \
    262 	'-DMIPS_FPU_LE' \
    263 	'-DWEBRTC_POSIX' \
    264 	'-DWEBRTC_LINUX' \
    265 	'-DWEBRTC_ANDROID' \
    266 	'-DWEBRTC_ANDROID_OPENSLES' \
    267 	'-DUSE_OPENSSL=1' \
    268 	'-DUSE_OPENSSL_CERTS=1' \
    269 	'-D__STDC_CONSTANT_MACROS' \
    270 	'-D__STDC_FORMAT_MACROS' \
    271 	'-DANDROID' \
    272 	'-D__GNU_SOURCE=1' \
    273 	'-DUSE_STLPORT=1' \
    274 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    275 	'-DCHROME_BUILD_ID=""' \
    276 	'-DNDEBUG' \
    277 	'-DNVALGRIND' \
    278 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    279 	'-D_FORTIFY_SOURCE=2'
    280 
    281 
    282 # Include paths placed before CFLAGS/CPPFLAGS
    283 LOCAL_C_INCLUDES_Release := \
    284 	$(gyp_shared_intermediate_dir) \
    285 	$(LOCAL_PATH) \
    286 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    287 	$(LOCAL_PATH)/third_party \
    288 	$(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \
    289 	$(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \
    290 	$(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
    291 	$(PWD)/frameworks/wilhelm/include \
    292 	$(PWD)/bionic \
    293 	$(PWD)/external/stlport/stlport
    294 
    295 
    296 # Flags passed to only C++ (and not C) files.
    297 LOCAL_CPPFLAGS_Release := \
    298 	-fno-rtti \
    299 	-fno-threadsafe-statics \
    300 	-fvisibility-inlines-hidden \
    301 	-Wsign-compare \
    302 	-Wno-uninitialized \
    303 	-Wno-non-virtual-dtor \
    304 	-Wno-sign-promo
    305 
    306 
    307 LOCAL_FDO_SUPPORT_Release := false
    308 
    309 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    310 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
    311 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    312 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    313 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    314 ### Rules for final target.
    315 
    316 LOCAL_LDFLAGS_Debug := \
    317 	-Wl,-z,now \
    318 	-Wl,-z,relro \
    319 	-Wl,--fatal-warnings \
    320 	-Wl,-z,noexecstack \
    321 	-fPIC \
    322 	-EL \
    323 	-Wl,--no-keep-memory \
    324 	-nostdlib \
    325 	-Wl,--no-undefined \
    326 	-Wl,--exclude-libs=ALL \
    327 	-Wl,--warn-shared-textrel \
    328 	-Wl,-O1 \
    329 	-Wl,--as-needed
    330 
    331 
    332 LOCAL_LDFLAGS_Release := \
    333 	-Wl,-z,now \
    334 	-Wl,-z,relro \
    335 	-Wl,--fatal-warnings \
    336 	-Wl,-z,noexecstack \
    337 	-fPIC \
    338 	-EL \
    339 	-Wl,--no-keep-memory \
    340 	-nostdlib \
    341 	-Wl,--no-undefined \
    342 	-Wl,--exclude-libs=ALL \
    343 	-Wl,-O1 \
    344 	-Wl,--as-needed \
    345 	-Wl,--gc-sections \
    346 	-Wl,--warn-shared-textrel
    347 
    348 
    349 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    350 
    351 LOCAL_STATIC_LIBRARIES :=
    352 
    353 # Enable grouping to fix circular references
    354 LOCAL_GROUP_STATIC_LIBRARIES := true
    355 
    356 LOCAL_SHARED_LIBRARIES := \
    357 	libstlport \
    358 	libdl
    359 
    360 # Add target alias to "gyp_all_modules" target.
    361 .PHONY: gyp_all_modules
    362 gyp_all_modules: third_party_webrtc_common_audio_common_audio_gyp
    363 
    364 # Alias gyp target name.
    365 .PHONY: common_audio
    366 common_audio: third_party_webrtc_common_audio_common_audio_gyp
    367 
    368 include $(BUILD_STATIC_LIBRARY)
    369