Home | History | Annotate | Download | only in yasm
      1 # This file is generated by gyp; do not edit.
      2 
      3 include $(CLEAR_VARS)
      4 
      5 LOCAL_MODULE_CLASS := EXECUTABLES
      6 LOCAL_MODULE := third_party_yasm_genversion_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
      7 LOCAL_MODULE_STEM := genversion
      8 LOCAL_MODULE_SUFFIX := 
      9 LOCAL_IS_HOST_MODULE := true
     10 LOCAL_MULTILIB := $(GYP_HOST_MULTILIB)
     11 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX))
     12 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     13 
     14 # Make sure our deps are built first.
     15 GYP_TARGET_DEPENDENCIES := \
     16 	$(call intermediates-dir-for,GYP,third_party_yasm_config_sources_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/config_sources.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_GENERATED_SOURCES :=
     24 
     25 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     26 
     27 LOCAL_SRC_FILES := \
     28 	third_party/yasm/source/patched-yasm/modules/preprocs/nasm/genversion.c
     29 
     30 
     31 # Flags passed to both C and C++ files.
     32 MY_CFLAGS_Debug := \
     33 	-fstack-protector \
     34 	--param=ssp-buffer-size=4 \
     35 	-pthread \
     36 	-fno-strict-aliasing \
     37 	-Wno-unused-parameter \
     38 	-Wno-missing-field-initializers \
     39 	-fvisibility=hidden \
     40 	-pipe \
     41 	-fPIC \
     42 	-std=gnu99 \
     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 	-Os \
     53 	-g \
     54 	-gdwarf-4 \
     55 	-fdata-sections \
     56 	-ffunction-sections \
     57 	-fomit-frame-pointer \
     58 	-funwind-tables
     59 
     60 MY_DEFS_Debug := \
     61 	'-DV8_DEPRECATION_WARNINGS' \
     62 	'-D_FILE_OFFSET_BITS=64' \
     63 	'-DNO_TCMALLOC' \
     64 	'-DDISABLE_NACL' \
     65 	'-DCHROMIUM_BUILD' \
     66 	'-DUSE_LIBJPEG_TURBO=1' \
     67 	'-DENABLE_WEBRTC=1' \
     68 	'-DUSE_PROPRIETARY_CODECS' \
     69 	'-DENABLE_BROWSER_CDMS' \
     70 	'-DENABLE_CONFIGURATION_POLICY' \
     71 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     72 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     73 	'-DENABLE_EGLIMAGE=1' \
     74 	'-DCLD_VERSION=1' \
     75 	'-DENABLE_PRINTING=1' \
     76 	'-DENABLE_MANAGED_USERS=1' \
     77 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     78 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     79 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     80 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     81 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     82 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     83 	'-DVIDEO_HOLE=1' \
     84 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     85 	'-DUSE_OPENSSL=1' \
     86 	'-DUSE_OPENSSL_CERTS=1' \
     87 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     88 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     89 	'-D_DEBUG'
     90 
     91 
     92 # Include paths placed before CFLAGS/CPPFLAGS
     93 LOCAL_C_INCLUDES_Debug := \
     94 	$(gyp_shared_intermediate_dir) \
     95 	$(LOCAL_PATH)/third_party/yasm/source/config/android \
     96 	$(LOCAL_PATH)/third_party/yasm/source/patched-yasm
     97 
     98 
     99 # Flags passed to only C++ (and not C) files.
    100 LOCAL_CPPFLAGS_Debug := \
    101 	-fno-exceptions \
    102 	-fno-rtti \
    103 	-fno-threadsafe-statics \
    104 	-fvisibility-inlines-hidden \
    105 	-Wno-deprecated \
    106 	-std=gnu++11
    107 
    108 
    109 # Flags passed to both C and C++ files.
    110 MY_CFLAGS_Release := \
    111 	-fstack-protector \
    112 	--param=ssp-buffer-size=4 \
    113 	-pthread \
    114 	-fno-strict-aliasing \
    115 	-Wno-unused-parameter \
    116 	-Wno-missing-field-initializers \
    117 	-fvisibility=hidden \
    118 	-pipe \
    119 	-fPIC \
    120 	-std=gnu99 \
    121 	-Wno-format \
    122 	-Wheader-hygiene \
    123 	-Wno-char-subscripts \
    124 	-Wno-unneeded-internal-declaration \
    125 	-Wno-covered-switch-default \
    126 	-Wstring-conversion \
    127 	-Wno-c++11-narrowing \
    128 	-Wno-deprecated-register \
    129 	-Wno-unused-local-typedef \
    130 	-Os \
    131 	-fno-ident \
    132 	-fdata-sections \
    133 	-ffunction-sections \
    134 	-fomit-frame-pointer \
    135 	-funwind-tables
    136 
    137 MY_DEFS_Release := \
    138 	'-DV8_DEPRECATION_WARNINGS' \
    139 	'-D_FILE_OFFSET_BITS=64' \
    140 	'-DNO_TCMALLOC' \
    141 	'-DDISABLE_NACL' \
    142 	'-DCHROMIUM_BUILD' \
    143 	'-DUSE_LIBJPEG_TURBO=1' \
    144 	'-DENABLE_WEBRTC=1' \
    145 	'-DUSE_PROPRIETARY_CODECS' \
    146 	'-DENABLE_BROWSER_CDMS' \
    147 	'-DENABLE_CONFIGURATION_POLICY' \
    148 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    149 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    150 	'-DENABLE_EGLIMAGE=1' \
    151 	'-DCLD_VERSION=1' \
    152 	'-DENABLE_PRINTING=1' \
    153 	'-DENABLE_MANAGED_USERS=1' \
    154 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    155 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    156 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    157 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    158 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    159 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    160 	'-DVIDEO_HOLE=1' \
    161 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    162 	'-DUSE_OPENSSL=1' \
    163 	'-DUSE_OPENSSL_CERTS=1' \
    164 	'-DNDEBUG' \
    165 	'-DNVALGRIND' \
    166 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    167 
    168 
    169 # Include paths placed before CFLAGS/CPPFLAGS
    170 LOCAL_C_INCLUDES_Release := \
    171 	$(gyp_shared_intermediate_dir) \
    172 	$(LOCAL_PATH)/third_party/yasm/source/config/android \
    173 	$(LOCAL_PATH)/third_party/yasm/source/patched-yasm
    174 
    175 
    176 # Flags passed to only C++ (and not C) files.
    177 LOCAL_CPPFLAGS_Release := \
    178 	-fno-exceptions \
    179 	-fno-rtti \
    180 	-fno-threadsafe-statics \
    181 	-fvisibility-inlines-hidden \
    182 	-Wno-deprecated \
    183 	-std=gnu++11
    184 
    185 
    186 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    187 # Undefine ANDROID for host modules
    188 LOCAL_CFLAGS += -UANDROID
    189 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    190 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    191 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    192 ### Rules for final target.
    193 
    194 LOCAL_LDFLAGS_Debug := \
    195 	-Wl,-z,now \
    196 	-Wl,-z,relro \
    197 	-pthread \
    198 	-fPIC
    199 
    200 
    201 LOCAL_LDFLAGS_Release := \
    202 	-Wl,-z,now \
    203 	-Wl,-z,relro \
    204 	-pthread \
    205 	-fPIC
    206 
    207 
    208 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    209 ### Set directly by aosp_build_settings.
    210 LOCAL_CLANG := true
    211 
    212 # Add target alias to "gyp_all_modules" target.
    213 .PHONY: gyp_all_modules
    214 gyp_all_modules: third_party_yasm_genversion_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    215 
    216 # Alias gyp target name.
    217 .PHONY: genversion
    218 genversion: third_party_yasm_genversion_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    219 
    220 LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir)
    221 include $(BUILD_HOST_EXECUTABLE)
    222