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