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