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