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 := GYP
      6 LOCAL_MODULE := media_video_capture_android_jni_headers_gyp
      7 LOCAL_MODULE_STEM := video_capture_android_jni_headers
      8 LOCAL_MODULE_SUFFIX := .stamp
      9 LOCAL_MODULE_TAGS := optional
     10 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
     11 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     12 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     13 
     14 # Make sure our deps are built first.
     15 GYP_TARGET_DEPENDENCIES := \
     16 	$(call intermediates-dir-for,GYP,build_android_android_exports_gyp,,,$(GYP_VAR_PREFIX))/android_exports.stamp
     17 
     18 
     19 ### Generated for rule "media_media_gyp_video_capture_android_jni_headers_target_generate_jni_headers":
     20 # "{'inputs': ['../base/android/jni_generator/jni_generator.py', '../android_webview/build/jarjar-rules.txt'], 'process_outputs_as_sources': '1', 'extension': 'java', 'outputs': ['$(gyp_shared_intermediate_dir)/media/jni/%(INPUT_ROOT)s_jni.h'], 'rule_name': 'generate_jni_headers', 'rule_sources': ['base/android/java/src/org/chromium/media/VideoCapture.java', 'base/android/java/src/org/chromium/media/VideoCaptureFactory.java'], 'action': ['../base/android/jni_generator/jni_generator.py', '--input_file', '$(RULE_SOURCES)', '--output_dir', '$(gyp_shared_intermediate_dir)/media/jni', '--includes', 'base/android/jni_generator/jni_generator_helper.h', '--optimize_generation', '0', '--jarjar', '../android_webview/build/jarjar-rules.txt', '--ptr_type', 'long', '--native_exports'], 'message': 'Generating JNI bindings from $(RULE_SOURCES)'}":
     21 $(gyp_shared_intermediate_dir)/media/jni/VideoCapture_jni.h: gyp_local_path := $(LOCAL_PATH)
     22 $(gyp_shared_intermediate_dir)/media/jni/VideoCapture_jni.h: gyp_var_prefix := $(GYP_VAR_PREFIX)
     23 $(gyp_shared_intermediate_dir)/media/jni/VideoCapture_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
     24 $(gyp_shared_intermediate_dir)/media/jni/VideoCapture_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
     25 $(gyp_shared_intermediate_dir)/media/jni/VideoCapture_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
     26 $(gyp_shared_intermediate_dir)/media/jni/VideoCapture_jni.h: $(LOCAL_PATH)/media/base/android/java/src/org/chromium/media/VideoCapture.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
     27 	mkdir -p $(gyp_shared_intermediate_dir)/media/jni; cd $(gyp_local_path)/media; ../base/android/jni_generator/jni_generator.py --input_file base/android/java/src/org/chromium/media/VideoCapture.java --output_dir "$(gyp_shared_intermediate_dir)/media/jni" --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt --ptr_type long --native_exports
     28 
     29 
     30 $(gyp_shared_intermediate_dir)/media/jni/VideoCaptureFactory_jni.h: gyp_local_path := $(LOCAL_PATH)
     31 $(gyp_shared_intermediate_dir)/media/jni/VideoCaptureFactory_jni.h: gyp_var_prefix := $(GYP_VAR_PREFIX)
     32 $(gyp_shared_intermediate_dir)/media/jni/VideoCaptureFactory_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
     33 $(gyp_shared_intermediate_dir)/media/jni/VideoCaptureFactory_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
     34 $(gyp_shared_intermediate_dir)/media/jni/VideoCaptureFactory_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
     35 $(gyp_shared_intermediate_dir)/media/jni/VideoCaptureFactory_jni.h: $(LOCAL_PATH)/media/base/android/java/src/org/chromium/media/VideoCaptureFactory.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
     36 	mkdir -p $(gyp_shared_intermediate_dir)/media/jni; cd $(gyp_local_path)/media; ../base/android/jni_generator/jni_generator.py --input_file base/android/java/src/org/chromium/media/VideoCaptureFactory.java --output_dir "$(gyp_shared_intermediate_dir)/media/jni" --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt --ptr_type long --native_exports
     37 
     38 
     39 
     40 GYP_GENERATED_OUTPUTS := \
     41 	$(gyp_shared_intermediate_dir)/media/jni/VideoCapture_jni.h \
     42 	$(gyp_shared_intermediate_dir)/media/jni/VideoCaptureFactory_jni.h
     43 
     44 # Make sure our deps and generated files are built first.
     45 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     46 
     47 LOCAL_GENERATED_SOURCES := \
     48 	$(gyp_shared_intermediate_dir)/media/jni/VideoCapture_jni.h \
     49 	$(gyp_shared_intermediate_dir)/media/jni/VideoCaptureFactory_jni.h
     50 
     51 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     52 
     53 LOCAL_SRC_FILES :=
     54 
     55 
     56 # Flags passed to both C and C++ files.
     57 MY_CFLAGS_Debug := \
     58 	-fstack-protector \
     59 	--param=ssp-buffer-size=4 \
     60 	-Werror \
     61 	-fno-exceptions \
     62 	-fno-strict-aliasing \
     63 	-Wall \
     64 	-Wno-unused-parameter \
     65 	-Wno-missing-field-initializers \
     66 	-fvisibility=hidden \
     67 	-pipe \
     68 	-fPIC \
     69 	-Wno-unused-local-typedefs \
     70 	-fno-tree-sra \
     71 	-fno-partial-inlining \
     72 	-fno-early-inlining \
     73 	-fno-tree-copy-prop \
     74 	-fno-tree-loop-optimize \
     75 	-fno-move-loop-invariants \
     76 	-fno-caller-saves \
     77 	-Wno-psabi \
     78 	-ffunction-sections \
     79 	-funwind-tables \
     80 	-g \
     81 	-fstack-protector \
     82 	-fno-short-enums \
     83 	-finline-limit=64 \
     84 	-Wa,--noexecstack \
     85 	-U_FORTIFY_SOURCE \
     86 	-Wno-extra \
     87 	-Wno-ignored-qualifiers \
     88 	-Wno-type-limits \
     89 	-Wno-unused-but-set-variable \
     90 	-Os \
     91 	-g \
     92 	-fdata-sections \
     93 	-ffunction-sections \
     94 	-fomit-frame-pointer \
     95 	-funwind-tables
     96 
     97 MY_DEFS_Debug := \
     98 	'-DV8_DEPRECATION_WARNINGS' \
     99 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    100 	'-D_FILE_OFFSET_BITS=64' \
    101 	'-DNO_TCMALLOC' \
    102 	'-DDISABLE_NACL' \
    103 	'-DCHROMIUM_BUILD' \
    104 	'-DUSE_LIBJPEG_TURBO=1' \
    105 	'-DENABLE_WEBRTC=1' \
    106 	'-DUSE_PROPRIETARY_CODECS' \
    107 	'-DENABLE_BROWSER_CDMS' \
    108 	'-DENABLE_CONFIGURATION_POLICY' \
    109 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    110 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    111 	'-DENABLE_EGLIMAGE=1' \
    112 	'-DCLD_VERSION=1' \
    113 	'-DENABLE_PRINTING=1' \
    114 	'-DENABLE_MANAGED_USERS=1' \
    115 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    116 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    117 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    118 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    119 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    120 	'-DVIDEO_HOLE=1' \
    121 	'-DUSE_OPENSSL=1' \
    122 	'-DUSE_OPENSSL_CERTS=1' \
    123 	'-D__STDC_CONSTANT_MACROS' \
    124 	'-D__STDC_FORMAT_MACROS' \
    125 	'-DANDROID' \
    126 	'-D__GNU_SOURCE=1' \
    127 	'-DUSE_STLPORT=1' \
    128 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    129 	'-DCHROME_BUILD_ID=""' \
    130 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    131 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    132 	'-D_DEBUG'
    133 
    134 
    135 # Include paths placed before CFLAGS/CPPFLAGS
    136 LOCAL_C_INCLUDES_Debug := \
    137 	$(gyp_shared_intermediate_dir) \
    138 	$(PWD)/frameworks/wilhelm/include \
    139 	$(PWD)/bionic \
    140 	$(PWD)/external/stlport/stlport
    141 
    142 
    143 # Flags passed to only C++ (and not C) files.
    144 LOCAL_CPPFLAGS_Debug := \
    145 	-fno-rtti \
    146 	-fno-threadsafe-statics \
    147 	-fvisibility-inlines-hidden \
    148 	-Wsign-compare \
    149 	-Wno-abi \
    150 	-Wno-non-virtual-dtor \
    151 	-Wno-sign-promo
    152 
    153 
    154 LOCAL_FDO_SUPPORT_Debug := false
    155 
    156 # Flags passed to both C and C++ files.
    157 MY_CFLAGS_Release := \
    158 	-fstack-protector \
    159 	--param=ssp-buffer-size=4 \
    160 	-Werror \
    161 	-fno-exceptions \
    162 	-fno-strict-aliasing \
    163 	-Wall \
    164 	-Wno-unused-parameter \
    165 	-Wno-missing-field-initializers \
    166 	-fvisibility=hidden \
    167 	-pipe \
    168 	-fPIC \
    169 	-Wno-unused-local-typedefs \
    170 	-fno-tree-sra \
    171 	-fno-partial-inlining \
    172 	-fno-early-inlining \
    173 	-fno-tree-copy-prop \
    174 	-fno-tree-loop-optimize \
    175 	-fno-move-loop-invariants \
    176 	-fno-caller-saves \
    177 	-Wno-psabi \
    178 	-ffunction-sections \
    179 	-funwind-tables \
    180 	-g \
    181 	-fstack-protector \
    182 	-fno-short-enums \
    183 	-finline-limit=64 \
    184 	-Wa,--noexecstack \
    185 	-U_FORTIFY_SOURCE \
    186 	-Wno-extra \
    187 	-Wno-ignored-qualifiers \
    188 	-Wno-type-limits \
    189 	-Wno-unused-but-set-variable \
    190 	-Os \
    191 	-fno-ident \
    192 	-fdata-sections \
    193 	-ffunction-sections \
    194 	-fomit-frame-pointer \
    195 	-funwind-tables
    196 
    197 MY_DEFS_Release := \
    198 	'-DV8_DEPRECATION_WARNINGS' \
    199 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    200 	'-D_FILE_OFFSET_BITS=64' \
    201 	'-DNO_TCMALLOC' \
    202 	'-DDISABLE_NACL' \
    203 	'-DCHROMIUM_BUILD' \
    204 	'-DUSE_LIBJPEG_TURBO=1' \
    205 	'-DENABLE_WEBRTC=1' \
    206 	'-DUSE_PROPRIETARY_CODECS' \
    207 	'-DENABLE_BROWSER_CDMS' \
    208 	'-DENABLE_CONFIGURATION_POLICY' \
    209 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    210 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    211 	'-DENABLE_EGLIMAGE=1' \
    212 	'-DCLD_VERSION=1' \
    213 	'-DENABLE_PRINTING=1' \
    214 	'-DENABLE_MANAGED_USERS=1' \
    215 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    216 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    217 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    218 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    219 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    220 	'-DVIDEO_HOLE=1' \
    221 	'-DUSE_OPENSSL=1' \
    222 	'-DUSE_OPENSSL_CERTS=1' \
    223 	'-D__STDC_CONSTANT_MACROS' \
    224 	'-D__STDC_FORMAT_MACROS' \
    225 	'-DANDROID' \
    226 	'-D__GNU_SOURCE=1' \
    227 	'-DUSE_STLPORT=1' \
    228 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    229 	'-DCHROME_BUILD_ID=""' \
    230 	'-DNDEBUG' \
    231 	'-DNVALGRIND' \
    232 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    233 	'-D_FORTIFY_SOURCE=2'
    234 
    235 
    236 # Include paths placed before CFLAGS/CPPFLAGS
    237 LOCAL_C_INCLUDES_Release := \
    238 	$(gyp_shared_intermediate_dir) \
    239 	$(PWD)/frameworks/wilhelm/include \
    240 	$(PWD)/bionic \
    241 	$(PWD)/external/stlport/stlport
    242 
    243 
    244 # Flags passed to only C++ (and not C) files.
    245 LOCAL_CPPFLAGS_Release := \
    246 	-fno-rtti \
    247 	-fno-threadsafe-statics \
    248 	-fvisibility-inlines-hidden \
    249 	-Wsign-compare \
    250 	-Wno-abi \
    251 	-Wno-non-virtual-dtor \
    252 	-Wno-sign-promo
    253 
    254 
    255 LOCAL_FDO_SUPPORT_Release := false
    256 
    257 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    258 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
    259 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    260 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    261 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    262 ### Rules for final target.
    263 # Add target alias to "gyp_all_modules" target.
    264 .PHONY: gyp_all_modules
    265 gyp_all_modules: media_video_capture_android_jni_headers_gyp
    266 
    267 # Alias gyp target name.
    268 .PHONY: video_capture_android_jni_headers
    269 video_capture_android_jni_headers: media_video_capture_android_jni_headers_gyp
    270 
    271 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp
    272 LOCAL_UNINSTALLABLE_MODULE := true
    273 LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_VAR_PREFIX)
    274 
    275 include $(BUILD_SYSTEM)/base_rules.mk
    276 
    277 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES)
    278 	$(hide) echo "Gyp timestamp: $@"
    279 	$(hide) mkdir -p $(dir $@)
    280 	$(hide) touch $@
    281 
    282 LOCAL_2ND_ARCH_VAR_PREFIX :=
    283