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