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