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