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 := STATIC_LIBRARIES
      6 LOCAL_MODULE := v8_tools_gyp_v8_nosnapshot_ia32_host_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TAGS := optional
      9 LOCAL_IS_HOST_MODULE := true
     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 	$(call intermediates-dir-for,GYP,v8_tools_gyp_js2c_host_gyp,true)/js2c.stamp \
     16 	$(call intermediates-dir-for,GYP,v8_tools_gyp_generate_trig_table_host_gyp,true)/generate_trig_table.stamp
     17 
     18 GYP_GENERATED_OUTPUTS :=
     19 
     20 # Make sure our deps and generated files are built first.
     21 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     22 
     23 LOCAL_CPP_EXTENSION := .cc
     24 $(gyp_intermediate_dir)/libraries.cc: $(gyp_shared_intermediate_dir)/libraries.cc
     25 	mkdir -p $(@D); cp $< $@
     26 $(gyp_intermediate_dir)/experimental-libraries.cc: $(gyp_shared_intermediate_dir)/experimental-libraries.cc
     27 	mkdir -p $(@D); cp $< $@
     28 $(gyp_intermediate_dir)/trig-table.cc: $(gyp_shared_intermediate_dir)/trig-table.cc
     29 	mkdir -p $(@D); cp $< $@
     30 LOCAL_GENERATED_SOURCES := \
     31 	$(gyp_intermediate_dir)/libraries.cc \
     32 	$(gyp_intermediate_dir)/experimental-libraries.cc \
     33 	$(gyp_intermediate_dir)/trig-table.cc
     34 
     35 GYP_COPIED_SOURCE_ORIGIN_DIRS := \
     36 	$(gyp_shared_intermediate_dir)
     37 
     38 LOCAL_SRC_FILES := \
     39 	v8/src/snapshot-empty.cc
     40 
     41 
     42 # Flags passed to both C and C++ files.
     43 MY_CFLAGS_Debug := \
     44 	-fstack-protector \
     45 	--param=ssp-buffer-size=4 \
     46 	-pthread \
     47 	-fno-exceptions \
     48 	-fno-strict-aliasing \
     49 	-Wno-unused-parameter \
     50 	-Wno-missing-field-initializers \
     51 	-fvisibility=hidden \
     52 	-pipe \
     53 	-fPIC \
     54 	-Wno-format \
     55 	-m32 \
     56 	-Os \
     57 	-g \
     58 	-fomit-frame-pointer \
     59 	-fdata-sections \
     60 	-ffunction-sections
     61 
     62 MY_DEFS_Debug := \
     63 	'-DV8_DEPRECATION_WARNINGS' \
     64 	'-D_FILE_OFFSET_BITS=64' \
     65 	'-DNO_TCMALLOC' \
     66 	'-DDISABLE_NACL' \
     67 	'-DCHROMIUM_BUILD' \
     68 	'-DUSE_LIBJPEG_TURBO=1' \
     69 	'-DUSE_PROPRIETARY_CODECS' \
     70 	'-DENABLE_CONFIGURATION_POLICY' \
     71 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     72 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     73 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     74 	'-DUSE_OPENSSL=1' \
     75 	'-DENABLE_EGLIMAGE=1' \
     76 	'-DCLD_VERSION=1' \
     77 	'-DENABLE_PRINTING=1' \
     78 	'-DENABLE_MANAGED_USERS=1' \
     79 	'-DV8_TARGET_ARCH_IA32' \
     80 	'-DENABLE_DEBUGGER_SUPPORT' \
     81 	'-DV8_I18N_SUPPORT' \
     82 	'-DV8_USE_DEFAULT_PLATFORM' \
     83 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     84 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     85 	'-D_DEBUG' \
     86 	'-DENABLE_DISASSEMBLER' \
     87 	'-DV8_ENABLE_CHECKS' \
     88 	'-DOBJECT_PRINT' \
     89 	'-DVERIFY_HEAP' \
     90 	'-DENABLE_EXTRA_CHECKS' \
     91 	'-DENABLE_HANDLE_ZAPPING'
     92 
     93 
     94 # Include paths placed before CFLAGS/CPPFLAGS
     95 LOCAL_C_INCLUDES_Debug := \
     96 	$(LOCAL_PATH)/v8/src
     97 
     98 
     99 # Flags passed to only C++ (and not C) files.
    100 LOCAL_CPPFLAGS_Debug := \
    101 	-fno-rtti \
    102 	-fno-threadsafe-statics \
    103 	-fvisibility-inlines-hidden \
    104 	-Wno-deprecated
    105 
    106 
    107 # Flags passed to both C and C++ files.
    108 MY_CFLAGS_Release := \
    109 	-fstack-protector \
    110 	--param=ssp-buffer-size=4 \
    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 	-fno-unwind-tables \
    126 	-fno-asynchronous-unwind-tables \
    127 	-fdata-sections \
    128 	-ffunction-sections \
    129 	-O2
    130 
    131 MY_DEFS_Release := \
    132 	'-DV8_DEPRECATION_WARNINGS' \
    133 	'-D_FILE_OFFSET_BITS=64' \
    134 	'-DNO_TCMALLOC' \
    135 	'-DDISABLE_NACL' \
    136 	'-DCHROMIUM_BUILD' \
    137 	'-DUSE_LIBJPEG_TURBO=1' \
    138 	'-DUSE_PROPRIETARY_CODECS' \
    139 	'-DENABLE_CONFIGURATION_POLICY' \
    140 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    141 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    142 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    143 	'-DUSE_OPENSSL=1' \
    144 	'-DENABLE_EGLIMAGE=1' \
    145 	'-DCLD_VERSION=1' \
    146 	'-DENABLE_PRINTING=1' \
    147 	'-DENABLE_MANAGED_USERS=1' \
    148 	'-DV8_TARGET_ARCH_IA32' \
    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 
    193 # Enable grouping to fix circular references
    194 LOCAL_GROUP_STATIC_LIBRARIES := true
    195 
    196 LOCAL_SHARED_LIBRARIES :=
    197 
    198 # Add target alias to "gyp_all_modules" target.
    199 .PHONY: gyp_all_modules
    200 gyp_all_modules: v8_tools_gyp_v8_nosnapshot_ia32_host_gyp
    201 
    202 # Alias gyp target name.
    203 .PHONY: v8_nosnapshot.ia32
    204 v8_nosnapshot.ia32: v8_tools_gyp_v8_nosnapshot_ia32_host_gyp
    205 
    206 include $(BUILD_HOST_STATIC_LIBRARY)
    207