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 --param=ssp-buffer-size=4 \ 55 -Werror \ 56 -fno-strict-aliasing \ 57 -Wall \ 58 -Wno-unused-parameter \ 59 -Wno-missing-field-initializers \ 60 -fvisibility=hidden \ 61 -pipe \ 62 -fPIC \ 63 -Wno-unused-local-typedefs \ 64 -msse2 \ 65 -mfpmath=sse \ 66 -mmmx \ 67 -m32 \ 68 -ffunction-sections \ 69 -funwind-tables \ 70 -g \ 71 -fno-short-enums \ 72 -finline-limit=64 \ 73 -Wa,--noexecstack \ 74 -U_FORTIFY_SOURCE \ 75 -Wno-extra \ 76 -Wno-ignored-qualifiers \ 77 -Wno-type-limits \ 78 -Wno-unused-but-set-variable \ 79 -fno-stack-protector \ 80 -Os \ 81 -g \ 82 -gdwarf-4 \ 83 -fdata-sections \ 84 -ffunction-sections \ 85 -fomit-frame-pointer \ 86 -funwind-tables 87 88 MY_DEFS_Debug := \ 89 '-DCONTENT_IMPLEMENTATION' \ 90 '-DV8_DEPRECATION_WARNINGS' \ 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="https://proxy-dev.googlezip.net:443/"' \ 108 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 109 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 110 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 111 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 112 '-DVIDEO_HOLE=1' \ 113 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 114 '-DUSE_OPENSSL=1' \ 115 '-DUSE_OPENSSL_CERTS=1' \ 116 '-D__STDC_CONSTANT_MACROS' \ 117 '-D__STDC_FORMAT_MACROS' \ 118 '-DANDROID' \ 119 '-D__GNU_SOURCE=1' \ 120 '-DUSE_STLPORT=1' \ 121 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 122 '-DCHROME_BUILD_ID=""' \ 123 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 124 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 125 '-D_DEBUG' 126 127 128 # Include paths placed before CFLAGS/CPPFLAGS 129 LOCAL_C_INCLUDES_Debug := \ 130 $(gyp_shared_intermediate_dir) \ 131 $(PWD)/frameworks/wilhelm/include \ 132 $(PWD)/bionic \ 133 $(PWD)/external/stlport/stlport 134 135 136 # Flags passed to only C++ (and not C) files. 137 LOCAL_CPPFLAGS_Debug := \ 138 -fno-exceptions \ 139 -fno-rtti \ 140 -fno-threadsafe-statics \ 141 -fvisibility-inlines-hidden \ 142 -Wsign-compare \ 143 -std=gnu++11 \ 144 -Wno-narrowing \ 145 -Wno-literal-suffix \ 146 -Wno-non-virtual-dtor \ 147 -Wno-sign-promo 148 149 150 # Flags passed to both C and C++ files. 151 MY_CFLAGS_Release := \ 152 --param=ssp-buffer-size=4 \ 153 -Werror \ 154 -fno-strict-aliasing \ 155 -Wall \ 156 -Wno-unused-parameter \ 157 -Wno-missing-field-initializers \ 158 -fvisibility=hidden \ 159 -pipe \ 160 -fPIC \ 161 -Wno-unused-local-typedefs \ 162 -msse2 \ 163 -mfpmath=sse \ 164 -mmmx \ 165 -m32 \ 166 -ffunction-sections \ 167 -funwind-tables \ 168 -g \ 169 -fno-short-enums \ 170 -finline-limit=64 \ 171 -Wa,--noexecstack \ 172 -U_FORTIFY_SOURCE \ 173 -Wno-extra \ 174 -Wno-ignored-qualifiers \ 175 -Wno-type-limits \ 176 -Wno-unused-but-set-variable \ 177 -fno-stack-protector \ 178 -Os \ 179 -fno-ident \ 180 -fdata-sections \ 181 -ffunction-sections \ 182 -fomit-frame-pointer \ 183 -funwind-tables 184 185 MY_DEFS_Release := \ 186 '-DCONTENT_IMPLEMENTATION' \ 187 '-DV8_DEPRECATION_WARNINGS' \ 188 '-D_FILE_OFFSET_BITS=64' \ 189 '-DNO_TCMALLOC' \ 190 '-DDISABLE_NACL' \ 191 '-DCHROMIUM_BUILD' \ 192 '-DUSE_LIBJPEG_TURBO=1' \ 193 '-DENABLE_WEBRTC=1' \ 194 '-DUSE_PROPRIETARY_CODECS' \ 195 '-DENABLE_BROWSER_CDMS' \ 196 '-DENABLE_CONFIGURATION_POLICY' \ 197 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 198 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 199 '-DENABLE_EGLIMAGE=1' \ 200 '-DCLD_VERSION=1' \ 201 '-DENABLE_PRINTING=1' \ 202 '-DENABLE_MANAGED_USERS=1' \ 203 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 204 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 205 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 206 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 207 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 208 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 209 '-DVIDEO_HOLE=1' \ 210 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 211 '-DUSE_OPENSSL=1' \ 212 '-DUSE_OPENSSL_CERTS=1' \ 213 '-D__STDC_CONSTANT_MACROS' \ 214 '-D__STDC_FORMAT_MACROS' \ 215 '-DANDROID' \ 216 '-D__GNU_SOURCE=1' \ 217 '-DUSE_STLPORT=1' \ 218 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 219 '-DCHROME_BUILD_ID=""' \ 220 '-DNDEBUG' \ 221 '-DNVALGRIND' \ 222 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 223 '-D_FORTIFY_SOURCE=2' 224 225 226 # Include paths placed before CFLAGS/CPPFLAGS 227 LOCAL_C_INCLUDES_Release := \ 228 $(gyp_shared_intermediate_dir) \ 229 $(PWD)/frameworks/wilhelm/include \ 230 $(PWD)/bionic \ 231 $(PWD)/external/stlport/stlport 232 233 234 # Flags passed to only C++ (and not C) files. 235 LOCAL_CPPFLAGS_Release := \ 236 -fno-exceptions \ 237 -fno-rtti \ 238 -fno-threadsafe-statics \ 239 -fvisibility-inlines-hidden \ 240 -Wsign-compare \ 241 -std=gnu++11 \ 242 -Wno-narrowing \ 243 -Wno-literal-suffix \ 244 -Wno-non-virtual-dtor \ 245 -Wno-sign-promo 246 247 248 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 249 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 250 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 251 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 252 ### Rules for final target. 253 # Add target alias to "gyp_all_modules" target. 254 .PHONY: gyp_all_modules 255 gyp_all_modules: content_content_gamepad_mapping_gyp 256 257 # Alias gyp target name. 258 .PHONY: content_gamepad_mapping 259 content_gamepad_mapping: content_content_gamepad_mapping_gyp 260 261 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 262 LOCAL_UNINSTALLABLE_MODULE := true 263 LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_VAR_PREFIX) 264 265 include $(BUILD_SYSTEM)/base_rules.mk 266 267 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 268 $(hide) echo "Gyp timestamp: $@" 269 $(hide) mkdir -p $(dir $@) 270 $(hide) touch $@ 271 272 LOCAL_2ND_ARCH_VAR_PREFIX := 273