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 	 \
     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 	-EL \
     55 	-mhard-float \
     56 	-ffunction-sections \
     57 	-funwind-tables \
     58 	-g \
     59 	-fstack-protector \
     60 	-fno-short-enums \
     61 	-finline-limit=64 \
     62 	-Wa,--noexecstack \
     63 	-U_FORTIFY_SOURCE \
     64 	-Wno-extra \
     65 	-Wno-ignored-qualifiers \
     66 	-Wno-type-limits \
     67 	-Os \
     68 	-g \
     69 	-fomit-frame-pointer \
     70 	-fdata-sections \
     71 	-ffunction-sections
     72 
     73 MY_DEFS_Debug := \
     74 	'-DCONTENT_IMPLEMENTATION' \
     75 	'-DANGLE_DX11' \
     76 	'-D_FILE_OFFSET_BITS=64' \
     77 	'-DNO_TCMALLOC' \
     78 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     79 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     80 	'-DDISABLE_NACL' \
     81 	'-DCHROMIUM_BUILD' \
     82 	'-DUSE_LIBJPEG_TURBO=1' \
     83 	'-DUSE_PROPRIETARY_CODECS' \
     84 	'-DENABLE_CONFIGURATION_POLICY' \
     85 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
     86 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
     87 	'-DENABLE_GPU=1' \
     88 	'-DUSE_OPENSSL=1' \
     89 	'-DENABLE_EGLIMAGE=1' \
     90 	'-DENABLE_PRINTING=1' \
     91 	'-D__STDC_CONSTANT_MACROS' \
     92 	'-D__STDC_FORMAT_MACROS' \
     93 	'-DANDROID' \
     94 	'-D__GNU_SOURCE=1' \
     95 	'-DUSE_STLPORT=1' \
     96 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     97 	'-DCHROME_BUILD_ID=""' \
     98 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     99 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    100 	'-D_DEBUG'
    101 
    102 
    103 # Include paths placed before CFLAGS/CPPFLAGS
    104 LOCAL_C_INCLUDES_Debug := \
    105 	$(PWD)/frameworks/wilhelm/include \
    106 	$(PWD)/bionic \
    107 	$(PWD)/external/stlport/stlport
    108 
    109 
    110 # Flags passed to only C++ (and not C) files.
    111 LOCAL_CPPFLAGS_Debug := \
    112 	-fno-rtti \
    113 	-fno-threadsafe-statics \
    114 	-fvisibility-inlines-hidden \
    115 	-Wsign-compare \
    116 	-Wno-uninitialized \
    117 	-Wno-error=c++0x-compat \
    118 	-Wno-non-virtual-dtor \
    119 	-Wno-sign-promo
    120 
    121 
    122 # Flags passed to both C and C++ files.
    123 MY_CFLAGS_Release := \
    124 	-fstack-protector \
    125 	--param=ssp-buffer-size=4 \
    126 	 \
    127 	-fno-exceptions \
    128 	-fno-strict-aliasing \
    129 	-Wall \
    130 	-Wno-unused-parameter \
    131 	-Wno-missing-field-initializers \
    132 	-fvisibility=hidden \
    133 	-pipe \
    134 	-fPIC \
    135 	-EL \
    136 	-mhard-float \
    137 	-ffunction-sections \
    138 	-funwind-tables \
    139 	-g \
    140 	-fstack-protector \
    141 	-fno-short-enums \
    142 	-finline-limit=64 \
    143 	-Wa,--noexecstack \
    144 	-U_FORTIFY_SOURCE \
    145 	-Wno-extra \
    146 	-Wno-ignored-qualifiers \
    147 	-Wno-type-limits \
    148 	-Os \
    149 	-fno-ident \
    150 	-fdata-sections \
    151 	-ffunction-sections \
    152 	-fomit-frame-pointer
    153 
    154 MY_DEFS_Release := \
    155 	'-DCONTENT_IMPLEMENTATION' \
    156 	'-DANGLE_DX11' \
    157 	'-D_FILE_OFFSET_BITS=64' \
    158 	'-DNO_TCMALLOC' \
    159 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    160 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    161 	'-DDISABLE_NACL' \
    162 	'-DCHROMIUM_BUILD' \
    163 	'-DUSE_LIBJPEG_TURBO=1' \
    164 	'-DUSE_PROPRIETARY_CODECS' \
    165 	'-DENABLE_CONFIGURATION_POLICY' \
    166 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    167 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    168 	'-DENABLE_GPU=1' \
    169 	'-DUSE_OPENSSL=1' \
    170 	'-DENABLE_EGLIMAGE=1' \
    171 	'-DENABLE_PRINTING=1' \
    172 	'-D__STDC_CONSTANT_MACROS' \
    173 	'-D__STDC_FORMAT_MACROS' \
    174 	'-DANDROID' \
    175 	'-D__GNU_SOURCE=1' \
    176 	'-DUSE_STLPORT=1' \
    177 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    178 	'-DCHROME_BUILD_ID=""' \
    179 	'-DNDEBUG' \
    180 	'-DNVALGRIND' \
    181 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    182 	'-D_FORTIFY_SOURCE=2'
    183 
    184 
    185 # Include paths placed before CFLAGS/CPPFLAGS
    186 LOCAL_C_INCLUDES_Release := \
    187 	$(PWD)/frameworks/wilhelm/include \
    188 	$(PWD)/bionic \
    189 	$(PWD)/external/stlport/stlport
    190 
    191 
    192 # Flags passed to only C++ (and not C) files.
    193 LOCAL_CPPFLAGS_Release := \
    194 	-fno-rtti \
    195 	-fno-threadsafe-statics \
    196 	-fvisibility-inlines-hidden \
    197 	-Wsign-compare \
    198 	-Wno-uninitialized \
    199 	-Wno-error=c++0x-compat \
    200 	-Wno-non-virtual-dtor \
    201 	-Wno-sign-promo
    202 
    203 
    204 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    205 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    206 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    207 ### Rules for final target.
    208 # Add target alias to "gyp_all_modules" target.
    209 .PHONY: gyp_all_modules
    210 gyp_all_modules: content_java_set_jni_headers_gyp
    211 
    212 # Alias gyp target name.
    213 .PHONY: java_set_jni_headers
    214 java_set_jni_headers: content_java_set_jni_headers_gyp
    215 
    216 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp
    217 LOCAL_UNINSTALLABLE_MODULE := true
    218 
    219 include $(BUILD_SYSTEM)/base_rules.mk
    220 
    221 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES)
    222 	$(hide) echo "Gyp timestamp: $@"
    223 	$(hide) mkdir -p $(dir $@)
    224 	$(hide) touch $@
    225