Home | History | Annotate | Download | only in gyp
      1 # This file is generated by gyp; do not edit.
      2 
      3 include $(CLEAR_VARS)
      4 
      5 LOCAL_MODULE_CLASS := EXECUTABLES
      6 LOCAL_MODULE := v8_tools_gyp_mksnapshot_mipsel_host_gyp
      7 LOCAL_MODULE_STEM := mksnapshot.mipsel
      8 LOCAL_MODULE_SUFFIX := 
      9 LOCAL_MODULE_TAGS := optional
     10 LOCAL_IS_HOST_MODULE := true
     11 gyp_intermediate_dir := $(call local-intermediates-dir)
     12 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     13 
     14 # Make sure our deps are built first.
     15 GYP_TARGET_DEPENDENCIES := \
     16 	$(call intermediates-dir-for,STATIC_LIBRARIES,v8_tools_gyp_v8_base_mipsel_host_gyp,true)/v8_tools_gyp_v8_base_mipsel_host_gyp.a \
     17 	$(call intermediates-dir-for,STATIC_LIBRARIES,v8_tools_gyp_v8_nosnapshot_mipsel_host_gyp,true)/v8_tools_gyp_v8_nosnapshot_mipsel_host_gyp.a \
     18 	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_icu_icui18n_host_gyp,true)/third_party_icu_icui18n_host_gyp.a \
     19 	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_icu_icuuc_host_gyp,true)/third_party_icu_icuuc_host_gyp.a \
     20 	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_icu_icudata_host_gyp,true)/third_party_icu_icudata_host_gyp.a \
     21 	$(call intermediates-dir-for,GYP,v8_tools_gyp_js2c_host_gyp,true)/js2c.stamp \
     22 	$(call intermediates-dir-for,GYP,v8_tools_gyp_generate_trig_table_host_gyp,true)/generate_trig_table.stamp
     23 
     24 GYP_GENERATED_OUTPUTS :=
     25 
     26 # Make sure our deps and generated files are built first.
     27 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     28 
     29 LOCAL_CPP_EXTENSION := .cc
     30 LOCAL_GENERATED_SOURCES :=
     31 
     32 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     33 
     34 LOCAL_SRC_FILES := \
     35 	v8/src/mksnapshot.cc
     36 
     37 
     38 # Flags passed to both C and C++ files.
     39 MY_CFLAGS_Debug := \
     40 	-fstack-protector \
     41 	--param=ssp-buffer-size=4 \
     42 	 \
     43 	-pthread \
     44 	-fno-exceptions \
     45 	-fno-strict-aliasing \
     46 	-Wno-unused-parameter \
     47 	-Wno-missing-field-initializers \
     48 	-fvisibility=hidden \
     49 	-pipe \
     50 	-fPIC \
     51 	-Wno-format \
     52 	-m32 \
     53 	-Os \
     54 	-g \
     55 	-fomit-frame-pointer \
     56 	-fdata-sections \
     57 	-ffunction-sections
     58 
     59 MY_DEFS_Debug := \
     60 	'-DV8_DEPRECATION_WARNINGS' \
     61 	'-D_FILE_OFFSET_BITS=64' \
     62 	'-DNO_TCMALLOC' \
     63 	'-DDISABLE_NACL' \
     64 	'-DCHROMIUM_BUILD' \
     65 	'-DUSE_LIBJPEG_TURBO=1' \
     66 	'-DUSE_PROPRIETARY_CODECS' \
     67 	'-DENABLE_CONFIGURATION_POLICY' \
     68 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     69 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     70 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     71 	'-DUSE_OPENSSL=1' \
     72 	'-DENABLE_EGLIMAGE=1' \
     73 	'-DCLD_VERSION=1' \
     74 	'-DENABLE_PRINTING=1' \
     75 	'-DENABLE_MANAGED_USERS=1' \
     76 	'-DV8_TARGET_ARCH_MIPS' \
     77 	'-DCAN_USE_FPU_INSTRUCTIONS' \
     78 	'-D__mips_hard_float=1' \
     79 	'-DENABLE_DEBUGGER_SUPPORT' \
     80 	'-DV8_I18N_SUPPORT' \
     81 	'-DV8_USE_DEFAULT_PLATFORM' \
     82 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     83 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     84 	'-D_DEBUG' \
     85 	'-DENABLE_DISASSEMBLER' \
     86 	'-DV8_ENABLE_CHECKS' \
     87 	'-DOBJECT_PRINT' \
     88 	'-DVERIFY_HEAP' \
     89 	'-DENABLE_EXTRA_CHECKS' \
     90 	'-DENABLE_HANDLE_ZAPPING'
     91 
     92 
     93 # Include paths placed before CFLAGS/CPPFLAGS
     94 LOCAL_C_INCLUDES_Debug := \
     95 	$(LOCAL_PATH)/v8/src
     96 
     97 
     98 # Flags passed to only C++ (and not C) files.
     99 LOCAL_CPPFLAGS_Debug := \
    100 	-fno-rtti \
    101 	-fno-threadsafe-statics \
    102 	-fvisibility-inlines-hidden \
    103 	-Wno-deprecated
    104 
    105 
    106 # Flags passed to both C and C++ files.
    107 MY_CFLAGS_Release := \
    108 	-fstack-protector \
    109 	--param=ssp-buffer-size=4 \
    110 	 \
    111 	-pthread \
    112 	-fno-exceptions \
    113 	-fno-strict-aliasing \
    114 	-Wno-unused-parameter \
    115 	-Wno-missing-field-initializers \
    116 	-fvisibility=hidden \
    117 	-pipe \
    118 	-fPIC \
    119 	-Wno-format \
    120 	-m32 \
    121 	-fno-ident \
    122 	-fdata-sections \
    123 	-ffunction-sections \
    124 	-fomit-frame-pointer \
    125 	-fdata-sections \
    126 	-ffunction-sections \
    127 	-O2
    128 
    129 MY_DEFS_Release := \
    130 	'-DV8_DEPRECATION_WARNINGS' \
    131 	'-D_FILE_OFFSET_BITS=64' \
    132 	'-DNO_TCMALLOC' \
    133 	'-DDISABLE_NACL' \
    134 	'-DCHROMIUM_BUILD' \
    135 	'-DUSE_LIBJPEG_TURBO=1' \
    136 	'-DUSE_PROPRIETARY_CODECS' \
    137 	'-DENABLE_CONFIGURATION_POLICY' \
    138 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    139 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    140 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    141 	'-DUSE_OPENSSL=1' \
    142 	'-DENABLE_EGLIMAGE=1' \
    143 	'-DCLD_VERSION=1' \
    144 	'-DENABLE_PRINTING=1' \
    145 	'-DENABLE_MANAGED_USERS=1' \
    146 	'-DV8_TARGET_ARCH_MIPS' \
    147 	'-DCAN_USE_FPU_INSTRUCTIONS' \
    148 	'-D__mips_hard_float=1' \
    149 	'-DENABLE_DEBUGGER_SUPPORT' \
    150 	'-DV8_I18N_SUPPORT' \
    151 	'-DV8_USE_DEFAULT_PLATFORM' \
    152 	'-DNDEBUG' \
    153 	'-DNVALGRIND' \
    154 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    155 
    156 
    157 # Include paths placed before CFLAGS/CPPFLAGS
    158 LOCAL_C_INCLUDES_Release := \
    159 	$(LOCAL_PATH)/v8/src
    160 
    161 
    162 # Flags passed to only C++ (and not C) files.
    163 LOCAL_CPPFLAGS_Release := \
    164 	-fno-rtti \
    165 	-fno-threadsafe-statics \
    166 	-fvisibility-inlines-hidden \
    167 	-Wno-deprecated
    168 
    169 
    170 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    171 # Undefine ANDROID for host modules
    172 LOCAL_CFLAGS += -UANDROID
    173 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    174 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    175 ### Rules for final target.
    176 
    177 LOCAL_LDFLAGS_Debug := \
    178 	-pthread \
    179 	-fPIC \
    180 	-m32
    181 
    182 
    183 LOCAL_LDFLAGS_Release := \
    184 	-pthread \
    185 	-fPIC \
    186 	-m32
    187 
    188 
    189 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    190 
    191 LOCAL_STATIC_LIBRARIES := \
    192 	v8_tools_gyp_v8_base_mipsel_host_gyp \
    193 	v8_tools_gyp_v8_nosnapshot_mipsel_host_gyp \
    194 	third_party_icu_icui18n_host_gyp \
    195 	third_party_icu_icuuc_host_gyp \
    196 	third_party_icu_icudata_host_gyp
    197 
    198 # Enable grouping to fix circular references
    199 LOCAL_GROUP_STATIC_LIBRARIES := true
    200 
    201 LOCAL_SHARED_LIBRARIES :=
    202 
    203 # Add target alias to "gyp_all_modules" target.
    204 .PHONY: gyp_all_modules
    205 gyp_all_modules: v8_tools_gyp_mksnapshot_mipsel_host_gyp
    206 
    207 # Alias gyp target name.
    208 .PHONY: mksnapshot.mipsel
    209 mksnapshot.mipsel: v8_tools_gyp_mksnapshot_mipsel_host_gyp
    210 
    211 LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir)
    212 include $(BUILD_HOST_EXECUTABLE)
    213