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