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_genmacro_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
      7 LOCAL_MODULE_STEM := genmacro
      8 LOCAL_MODULE_SUFFIX := 
      9 LOCAL_MODULE_TAGS := optional
     10 LOCAL_IS_HOST_MODULE := true
     11 LOCAL_MULTILIB := $(GYP_HOST_MULTILIB)
     12 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX))
     13 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     14 
     15 # Make sure our deps are built first.
     16 GYP_TARGET_DEPENDENCIES := \
     17 	$(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
     18 
     19 GYP_GENERATED_OUTPUTS :=
     20 
     21 # Make sure our deps and generated files are built first.
     22 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     23 
     24 LOCAL_GENERATED_SOURCES :=
     25 
     26 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     27 
     28 LOCAL_SRC_FILES := \
     29 	third_party/yasm/source/patched-yasm/tools/genmacro/genmacro.c
     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-exceptions \
     38 	-fno-strict-aliasing \
     39 	-Wno-unused-parameter \
     40 	-Wno-missing-field-initializers \
     41 	-fvisibility=hidden \
     42 	-pipe \
     43 	-fPIC \
     44 	-Wno-unused-local-typedefs \
     45 	-std=gnu99 \
     46 	-Wno-format \
     47 	-Os \
     48 	-g \
     49 	-fdata-sections \
     50 	-ffunction-sections \
     51 	-fomit-frame-pointer \
     52 	-funwind-tables
     53 
     54 MY_DEFS_Debug := \
     55 	'-DV8_DEPRECATION_WARNINGS' \
     56 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
     57 	'-D_FILE_OFFSET_BITS=64' \
     58 	'-DNO_TCMALLOC' \
     59 	'-DDISABLE_NACL' \
     60 	'-DCHROMIUM_BUILD' \
     61 	'-DUSE_LIBJPEG_TURBO=1' \
     62 	'-DENABLE_WEBRTC=1' \
     63 	'-DUSE_PROPRIETARY_CODECS' \
     64 	'-DENABLE_BROWSER_CDMS' \
     65 	'-DENABLE_CONFIGURATION_POLICY' \
     66 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     67 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     68 	'-DENABLE_EGLIMAGE=1' \
     69 	'-DCLD_VERSION=1' \
     70 	'-DENABLE_PRINTING=1' \
     71 	'-DENABLE_MANAGED_USERS=1' \
     72 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     73 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
     74 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     75 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     76 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     77 	'-DVIDEO_HOLE=1' \
     78 	'-DUSE_OPENSSL=1' \
     79 	'-DUSE_OPENSSL_CERTS=1' \
     80 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     81 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     82 	'-D_DEBUG'
     83 
     84 
     85 # Include paths placed before CFLAGS/CPPFLAGS
     86 LOCAL_C_INCLUDES_Debug := \
     87 	$(gyp_shared_intermediate_dir) \
     88 	$(LOCAL_PATH)/third_party/yasm/source/config/android \
     89 	$(LOCAL_PATH)/third_party/yasm/source/patched-yasm
     90 
     91 
     92 # Flags passed to only C++ (and not C) files.
     93 LOCAL_CPPFLAGS_Debug := \
     94 	-fno-rtti \
     95 	-fno-threadsafe-statics \
     96 	-fvisibility-inlines-hidden \
     97 	-Wno-deprecated
     98 
     99 
    100 LOCAL_FDO_SUPPORT_Debug := false
    101 
    102 # Flags passed to both C and C++ files.
    103 MY_CFLAGS_Release := \
    104 	-fstack-protector \
    105 	--param=ssp-buffer-size=4 \
    106 	-pthread \
    107 	-fno-exceptions \
    108 	-fno-strict-aliasing \
    109 	-Wno-unused-parameter \
    110 	-Wno-missing-field-initializers \
    111 	-fvisibility=hidden \
    112 	-pipe \
    113 	-fPIC \
    114 	-Wno-unused-local-typedefs \
    115 	-std=gnu99 \
    116 	-Wno-format \
    117 	-Os \
    118 	-fno-ident \
    119 	-fdata-sections \
    120 	-ffunction-sections \
    121 	-fomit-frame-pointer \
    122 	-funwind-tables
    123 
    124 MY_DEFS_Release := \
    125 	'-DV8_DEPRECATION_WARNINGS' \
    126 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    127 	'-D_FILE_OFFSET_BITS=64' \
    128 	'-DNO_TCMALLOC' \
    129 	'-DDISABLE_NACL' \
    130 	'-DCHROMIUM_BUILD' \
    131 	'-DUSE_LIBJPEG_TURBO=1' \
    132 	'-DENABLE_WEBRTC=1' \
    133 	'-DUSE_PROPRIETARY_CODECS' \
    134 	'-DENABLE_BROWSER_CDMS' \
    135 	'-DENABLE_CONFIGURATION_POLICY' \
    136 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    137 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    138 	'-DENABLE_EGLIMAGE=1' \
    139 	'-DCLD_VERSION=1' \
    140 	'-DENABLE_PRINTING=1' \
    141 	'-DENABLE_MANAGED_USERS=1' \
    142 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    143 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    144 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    145 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    146 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    147 	'-DVIDEO_HOLE=1' \
    148 	'-DUSE_OPENSSL=1' \
    149 	'-DUSE_OPENSSL_CERTS=1' \
    150 	'-DNDEBUG' \
    151 	'-DNVALGRIND' \
    152 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    153 
    154 
    155 # Include paths placed before CFLAGS/CPPFLAGS
    156 LOCAL_C_INCLUDES_Release := \
    157 	$(gyp_shared_intermediate_dir) \
    158 	$(LOCAL_PATH)/third_party/yasm/source/config/android \
    159 	$(LOCAL_PATH)/third_party/yasm/source/patched-yasm
    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_FDO_SUPPORT_Release := false
    171 
    172 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    173 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
    174 # Undefine ANDROID for host modules
    175 LOCAL_CFLAGS += -UANDROID
    176 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    177 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    178 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    179 ### Rules for final target.
    180 
    181 LOCAL_LDFLAGS_Debug := \
    182 	-Wl,-z,now \
    183 	-Wl,-z,relro \
    184 	-pthread \
    185 	-fPIC
    186 
    187 
    188 LOCAL_LDFLAGS_Release := \
    189 	-Wl,-z,now \
    190 	-Wl,-z,relro \
    191 	-pthread \
    192 	-fPIC
    193 
    194 
    195 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    196 
    197 LOCAL_STATIC_LIBRARIES :=
    198 
    199 # Enable grouping to fix circular references
    200 LOCAL_GROUP_STATIC_LIBRARIES := true
    201 
    202 LOCAL_SHARED_LIBRARIES :=
    203 
    204 # Add target alias to "gyp_all_modules" target.
    205 .PHONY: gyp_all_modules
    206 gyp_all_modules: third_party_yasm_genmacro_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    207 
    208 # Alias gyp target name.
    209 .PHONY: genmacro
    210 genmacro: third_party_yasm_genmacro_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    211 
    212 LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir)
    213 include $(BUILD_HOST_EXECUTABLE)
    214