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