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