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_libplatform_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_IS_HOST_MODULE := true
      9 LOCAL_MULTILIB := $(GYP_HOST_MULTILIB)
     10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX))
     11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     12 
     13 # Make sure our deps are built first.
     14 GYP_TARGET_DEPENDENCIES :=
     15 
     16 GYP_GENERATED_OUTPUTS :=
     17 
     18 # Make sure our deps and generated files are built first.
     19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     20 
     21 LOCAL_CPP_EXTENSION := .cc
     22 LOCAL_GENERATED_SOURCES :=
     23 
     24 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     25 
     26 LOCAL_SRC_FILES := \
     27 	v8/src/libplatform/default-platform.cc \
     28 	v8/src/libplatform/task-queue.cc \
     29 	v8/src/libplatform/worker-thread.cc
     30 
     31 
     32 # Flags passed to both C and C++ files.
     33 MY_CFLAGS_Debug := \
     34 	-fstack-protector \
     35 	--param=ssp-buffer-size=4 \
     36 	 \
     37 	-pthread \
     38 	-fno-strict-aliasing \
     39 	-Wno-unused-parameter \
     40 	-Wno-missing-field-initializers \
     41 	-fvisibility=hidden \
     42 	-pipe \
     43 	-fPIC \
     44 	-Wno-format \
     45 	-Wheader-hygiene \
     46 	-Wno-char-subscripts \
     47 	-Wno-unneeded-internal-declaration \
     48 	-Wno-covered-switch-default \
     49 	-Wstring-conversion \
     50 	-Wno-c++11-narrowing \
     51 	-Wno-deprecated-register \
     52 	-Wno-unused-local-typedef \
     53 	-m32 \
     54 	-Os \
     55 	-g \
     56 	-gdwarf-4 \
     57 	-fdata-sections \
     58 	-ffunction-sections \
     59 	-fomit-frame-pointer \
     60 	-funwind-tables
     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 	'-DENABLE_WEBRTC=1' \
     70 	'-DUSE_PROPRIETARY_CODECS' \
     71 	'-DENABLE_BROWSER_CDMS' \
     72 	'-DENABLE_CONFIGURATION_POLICY' \
     73 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     74 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     75 	'-DENABLE_EGLIMAGE=1' \
     76 	'-DCLD_VERSION=1' \
     77 	'-DENABLE_PRINTING=1' \
     78 	'-DENABLE_MANAGED_USERS=1' \
     79 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     80 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     81 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     82 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     83 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     84 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     85 	'-DVIDEO_HOLE=1' \
     86 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     87 	'-DV8_TARGET_ARCH_MIPS' \
     88 	'-DCAN_USE_FPU_INSTRUCTIONS' \
     89 	'-D__mips_hard_float=1' \
     90 	'-D_MIPS_ARCH_MIPS32R2' \
     91 	'-DV8_I18N_SUPPORT' \
     92 	'-DUSE_OPENSSL=1' \
     93 	'-DUSE_OPENSSL_CERTS=1' \
     94 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     95 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     96 	'-D_DEBUG' \
     97 	'-DENABLE_DISASSEMBLER' \
     98 	'-DV8_ENABLE_CHECKS' \
     99 	'-DOBJECT_PRINT' \
    100 	'-DVERIFY_HEAP' \
    101 	'-DENABLE_EXTRA_CHECKS' \
    102 	'-DENABLE_HANDLE_ZAPPING'
    103 
    104 
    105 # Include paths placed before CFLAGS/CPPFLAGS
    106 LOCAL_C_INCLUDES_Debug := \
    107 	$(LOCAL_PATH)/v8 \
    108 	$(gyp_shared_intermediate_dir)
    109 
    110 
    111 # Flags passed to only C++ (and not C) files.
    112 LOCAL_CPPFLAGS_Debug := \
    113 	-fno-exceptions \
    114 	-fno-rtti \
    115 	-fno-threadsafe-statics \
    116 	-fvisibility-inlines-hidden \
    117 	-Wno-deprecated \
    118 	-std=gnu++11
    119 
    120 
    121 # Flags passed to both C and C++ files.
    122 MY_CFLAGS_Release := \
    123 	-fstack-protector \
    124 	--param=ssp-buffer-size=4 \
    125 	 \
    126 	-pthread \
    127 	-fno-strict-aliasing \
    128 	-Wno-unused-parameter \
    129 	-Wno-missing-field-initializers \
    130 	-fvisibility=hidden \
    131 	-pipe \
    132 	-fPIC \
    133 	-Wno-format \
    134 	-Wheader-hygiene \
    135 	-Wno-char-subscripts \
    136 	-Wno-unneeded-internal-declaration \
    137 	-Wno-covered-switch-default \
    138 	-Wstring-conversion \
    139 	-Wno-c++11-narrowing \
    140 	-Wno-deprecated-register \
    141 	-Wno-unused-local-typedef \
    142 	-m32 \
    143 	-fno-ident \
    144 	-fdata-sections \
    145 	-ffunction-sections \
    146 	-fomit-frame-pointer \
    147 	-funwind-tables \
    148 	-fdata-sections \
    149 	-ffunction-sections \
    150 	-O2
    151 
    152 MY_DEFS_Release := \
    153 	'-DV8_DEPRECATION_WARNINGS' \
    154 	'-D_FILE_OFFSET_BITS=64' \
    155 	'-DNO_TCMALLOC' \
    156 	'-DDISABLE_NACL' \
    157 	'-DCHROMIUM_BUILD' \
    158 	'-DUSE_LIBJPEG_TURBO=1' \
    159 	'-DENABLE_WEBRTC=1' \
    160 	'-DUSE_PROPRIETARY_CODECS' \
    161 	'-DENABLE_BROWSER_CDMS' \
    162 	'-DENABLE_CONFIGURATION_POLICY' \
    163 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    164 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    165 	'-DENABLE_EGLIMAGE=1' \
    166 	'-DCLD_VERSION=1' \
    167 	'-DENABLE_PRINTING=1' \
    168 	'-DENABLE_MANAGED_USERS=1' \
    169 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    170 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    171 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    172 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    173 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    174 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    175 	'-DVIDEO_HOLE=1' \
    176 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    177 	'-DV8_TARGET_ARCH_MIPS' \
    178 	'-DCAN_USE_FPU_INSTRUCTIONS' \
    179 	'-D__mips_hard_float=1' \
    180 	'-D_MIPS_ARCH_MIPS32R2' \
    181 	'-DV8_I18N_SUPPORT' \
    182 	'-DUSE_OPENSSL=1' \
    183 	'-DUSE_OPENSSL_CERTS=1' \
    184 	'-DNDEBUG' \
    185 	'-DNVALGRIND' \
    186 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    187 
    188 
    189 # Include paths placed before CFLAGS/CPPFLAGS
    190 LOCAL_C_INCLUDES_Release := \
    191 	$(LOCAL_PATH)/v8 \
    192 	$(gyp_shared_intermediate_dir)
    193 
    194 
    195 # Flags passed to only C++ (and not C) files.
    196 LOCAL_CPPFLAGS_Release := \
    197 	-fno-exceptions \
    198 	-fno-rtti \
    199 	-fno-threadsafe-statics \
    200 	-fvisibility-inlines-hidden \
    201 	-Wno-deprecated \
    202 	-std=gnu++11
    203 
    204 
    205 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    206 # Undefine ANDROID for host modules
    207 LOCAL_CFLAGS += -UANDROID
    208 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    209 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    210 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    211 ### Rules for final target.
    212 ### Set directly by aosp_build_settings.
    213 LOCAL_CLANG := true
    214 
    215 # Add target alias to "gyp_all_modules" target.
    216 .PHONY: gyp_all_modules
    217 gyp_all_modules: v8_tools_gyp_v8_libplatform_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    218 
    219 # Alias gyp target name.
    220 .PHONY: v8_libplatform
    221 v8_libplatform: v8_tools_gyp_v8_libplatform_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    222 
    223 include $(BUILD_HOST_STATIC_LIBRARY)
    224