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