Home | History | Annotate | Download | only in components
      1 # This file is generated by gyp; do not edit.
      2 
      3 include $(CLEAR_VARS)
      4 
      5 LOCAL_MODULE_CLASS := GYP
      6 LOCAL_MODULE := components_autofill_jni_headers_gyp
      7 LOCAL_MODULE_STEM := autofill_jni_headers
      8 LOCAL_MODULE_SUFFIX := .stamp
      9 LOCAL_MODULE_TAGS := optional
     10 gyp_intermediate_dir := $(call local-intermediates-dir)
     11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     12 
     13 # Make sure our deps are built first.
     14 GYP_TARGET_DEPENDENCIES :=
     15 
     16 
     17 ### Generated for rule "components_components_gyp_autofill_jni_headers_target_generate_jni_headers":
     18 # "{'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)/autofill/jni/%(INPUT_ROOT)s_jni.h'], 'rule_name': 'generate_jni_headers', 'rule_sources': ['autofill/core/browser/android/java/src/org/chromium/components/browser/autofill/PersonalAutofillPopulator.java'], 'action': ['../base/android/jni_generator/jni_generator.py', '--input_file', '$(RULE_SOURCES)', '--output_dir', '$(gyp_shared_intermediate_dir)/autofill/jni', '--optimize_generation', '0', '--jarjar', '../android_webview/build/jarjar-rules.txt', '--ptr_type', 'int'], 'message': 'Generating JNI bindings from $(RULE_SOURCES)'}":
     19 $(gyp_shared_intermediate_dir)/autofill/jni/PersonalAutofillPopulator_jni.h: gyp_local_path := $(LOCAL_PATH)
     20 $(gyp_shared_intermediate_dir)/autofill/jni/PersonalAutofillPopulator_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
     21 $(gyp_shared_intermediate_dir)/autofill/jni/PersonalAutofillPopulator_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
     22 $(gyp_shared_intermediate_dir)/autofill/jni/PersonalAutofillPopulator_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
     23 $(gyp_shared_intermediate_dir)/autofill/jni/PersonalAutofillPopulator_jni.h: $(LOCAL_PATH)/components/autofill/core/browser/android/java/src/org/chromium/components/browser/autofill/PersonalAutofillPopulator.java $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(LOCAL_PATH)/android_webview/build/jarjar-rules.txt $(GYP_TARGET_DEPENDENCIES)
     24 	mkdir -p $(gyp_shared_intermediate_dir)/autofill/jni; cd $(gyp_local_path)/components; ../base/android/jni_generator/jni_generator.py --input_file autofill/core/browser/android/java/src/org/chromium/components/browser/autofill/PersonalAutofillPopulator.java --output_dir "$(gyp_shared_intermediate_dir)/autofill/jni" --optimize_generation 0 --jarjar ../android_webview/build/jarjar-rules.txt --ptr_type int
     25 
     26 .PHONY: components_autofill_jni_headers_gyp_rule_trigger
     27 components_autofill_jni_headers_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/autofill/jni/PersonalAutofillPopulator_jni.h
     28 
     29 ### Finished generating for all rules
     30 
     31 GYP_GENERATED_OUTPUTS := \
     32 	$(gyp_shared_intermediate_dir)/autofill/jni/PersonalAutofillPopulator_jni.h
     33 
     34 # Make sure our deps and generated files are built first.
     35 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     36 
     37 LOCAL_GENERATED_SOURCES := \
     38 	$(gyp_shared_intermediate_dir)/autofill/jni/PersonalAutofillPopulator_jni.h \
     39 	components_autofill_jni_headers_gyp_rule_trigger
     40 
     41 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     42 
     43 LOCAL_SRC_FILES :=
     44 
     45 
     46 # Flags passed to both C and C++ files.
     47 MY_CFLAGS_Debug := \
     48 	-fstack-protector \
     49 	--param=ssp-buffer-size=4 \
     50 	-Werror \
     51 	-fno-exceptions \
     52 	-fno-strict-aliasing \
     53 	-Wall \
     54 	-Wno-unused-parameter \
     55 	-Wno-missing-field-initializers \
     56 	-fvisibility=hidden \
     57 	-pipe \
     58 	-fPIC \
     59 	-fno-tree-sra \
     60 	-fuse-ld=gold \
     61 	-Wno-psabi \
     62 	-ffunction-sections \
     63 	-funwind-tables \
     64 	-g \
     65 	-fstack-protector \
     66 	-fno-short-enums \
     67 	-finline-limit=64 \
     68 	-Wa,--noexecstack \
     69 	-U_FORTIFY_SOURCE \
     70 	-Wno-extra \
     71 	-Wno-ignored-qualifiers \
     72 	-Wno-type-limits \
     73 	-Os \
     74 	-g \
     75 	-fomit-frame-pointer \
     76 	-fdata-sections \
     77 	-ffunction-sections
     78 
     79 MY_DEFS_Debug := \
     80 	'-DV8_DEPRECATION_WARNINGS' \
     81 	'-D_FILE_OFFSET_BITS=64' \
     82 	'-DNO_TCMALLOC' \
     83 	'-DDISABLE_NACL' \
     84 	'-DCHROMIUM_BUILD' \
     85 	'-DUSE_LIBJPEG_TURBO=1' \
     86 	'-DUSE_PROPRIETARY_CODECS' \
     87 	'-DENABLE_CONFIGURATION_POLICY' \
     88 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     89 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     90 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     91 	'-DUSE_OPENSSL=1' \
     92 	'-DENABLE_EGLIMAGE=1' \
     93 	'-DCLD_VERSION=1' \
     94 	'-DENABLE_PRINTING=1' \
     95 	'-DENABLE_MANAGED_USERS=1' \
     96 	'-D__STDC_CONSTANT_MACROS' \
     97 	'-D__STDC_FORMAT_MACROS' \
     98 	'-DANDROID' \
     99 	'-D__GNU_SOURCE=1' \
    100 	'-DUSE_STLPORT=1' \
    101 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    102 	'-DCHROME_BUILD_ID=""' \
    103 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    104 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    105 	'-D_DEBUG'
    106 
    107 
    108 # Include paths placed before CFLAGS/CPPFLAGS
    109 LOCAL_C_INCLUDES_Debug := \
    110 	$(PWD)/frameworks/wilhelm/include \
    111 	$(PWD)/bionic \
    112 	$(PWD)/external/stlport/stlport
    113 
    114 
    115 # Flags passed to only C++ (and not C) files.
    116 LOCAL_CPPFLAGS_Debug := \
    117 	-fno-rtti \
    118 	-fno-threadsafe-statics \
    119 	-fvisibility-inlines-hidden \
    120 	-Wsign-compare \
    121 	-Wno-abi \
    122 	-Wno-error=c++0x-compat \
    123 	-Wno-non-virtual-dtor \
    124 	-Wno-sign-promo
    125 
    126 
    127 # Flags passed to both C and C++ files.
    128 MY_CFLAGS_Release := \
    129 	-fstack-protector \
    130 	--param=ssp-buffer-size=4 \
    131 	-Werror \
    132 	-fno-exceptions \
    133 	-fno-strict-aliasing \
    134 	-Wall \
    135 	-Wno-unused-parameter \
    136 	-Wno-missing-field-initializers \
    137 	-fvisibility=hidden \
    138 	-pipe \
    139 	-fPIC \
    140 	-fno-tree-sra \
    141 	-fuse-ld=gold \
    142 	-Wno-psabi \
    143 	-ffunction-sections \
    144 	-funwind-tables \
    145 	-g \
    146 	-fstack-protector \
    147 	-fno-short-enums \
    148 	-finline-limit=64 \
    149 	-Wa,--noexecstack \
    150 	-U_FORTIFY_SOURCE \
    151 	-Wno-extra \
    152 	-Wno-ignored-qualifiers \
    153 	-Wno-type-limits \
    154 	-Os \
    155 	-fno-ident \
    156 	-fdata-sections \
    157 	-ffunction-sections \
    158 	-fomit-frame-pointer
    159 
    160 MY_DEFS_Release := \
    161 	'-DV8_DEPRECATION_WARNINGS' \
    162 	'-D_FILE_OFFSET_BITS=64' \
    163 	'-DNO_TCMALLOC' \
    164 	'-DDISABLE_NACL' \
    165 	'-DCHROMIUM_BUILD' \
    166 	'-DUSE_LIBJPEG_TURBO=1' \
    167 	'-DUSE_PROPRIETARY_CODECS' \
    168 	'-DENABLE_CONFIGURATION_POLICY' \
    169 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    170 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    171 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    172 	'-DUSE_OPENSSL=1' \
    173 	'-DENABLE_EGLIMAGE=1' \
    174 	'-DCLD_VERSION=1' \
    175 	'-DENABLE_PRINTING=1' \
    176 	'-DENABLE_MANAGED_USERS=1' \
    177 	'-D__STDC_CONSTANT_MACROS' \
    178 	'-D__STDC_FORMAT_MACROS' \
    179 	'-DANDROID' \
    180 	'-D__GNU_SOURCE=1' \
    181 	'-DUSE_STLPORT=1' \
    182 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    183 	'-DCHROME_BUILD_ID=""' \
    184 	'-DNDEBUG' \
    185 	'-DNVALGRIND' \
    186 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    187 	'-D_FORTIFY_SOURCE=2'
    188 
    189 
    190 # Include paths placed before CFLAGS/CPPFLAGS
    191 LOCAL_C_INCLUDES_Release := \
    192 	$(PWD)/frameworks/wilhelm/include \
    193 	$(PWD)/bionic \
    194 	$(PWD)/external/stlport/stlport
    195 
    196 
    197 # Flags passed to only C++ (and not C) files.
    198 LOCAL_CPPFLAGS_Release := \
    199 	-fno-rtti \
    200 	-fno-threadsafe-statics \
    201 	-fvisibility-inlines-hidden \
    202 	-Wsign-compare \
    203 	-Wno-abi \
    204 	-Wno-error=c++0x-compat \
    205 	-Wno-non-virtual-dtor \
    206 	-Wno-sign-promo
    207 
    208 
    209 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    210 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    211 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    212 ### Rules for final target.
    213 # Add target alias to "gyp_all_modules" target.
    214 .PHONY: gyp_all_modules
    215 gyp_all_modules: components_autofill_jni_headers_gyp
    216 
    217 # Alias gyp target name.
    218 .PHONY: autofill_jni_headers
    219 autofill_jni_headers: components_autofill_jni_headers_gyp
    220 
    221 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp
    222 LOCAL_UNINSTALLABLE_MODULE := true
    223 
    224 include $(BUILD_SYSTEM)/base_rules.mk
    225 
    226 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES)
    227 	$(hide) echo "Gyp timestamp: $@"
    228 	$(hide) mkdir -p $(dir $@)
    229 	$(hide) touch $@
    230