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_re2c_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
      7 LOCAL_MODULE_STEM := re2c
      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/re2c/main.c \
     30 	third_party/yasm/source/patched-yasm/tools/re2c/code.c \
     31 	third_party/yasm/source/patched-yasm/tools/re2c/dfa.c \
     32 	third_party/yasm/source/patched-yasm/tools/re2c/parser.c \
     33 	third_party/yasm/source/patched-yasm/tools/re2c/actions.c \
     34 	third_party/yasm/source/patched-yasm/tools/re2c/scanner.c \
     35 	third_party/yasm/source/patched-yasm/tools/re2c/mbo_getopt.c \
     36 	third_party/yasm/source/patched-yasm/tools/re2c/substr.c \
     37 	third_party/yasm/source/patched-yasm/tools/re2c/translate.c
     38 
     39 
     40 # Flags passed to both C and C++ files.
     41 MY_CFLAGS_Debug := \
     42 	-fstack-protector \
     43 	--param=ssp-buffer-size=4 \
     44 	-pthread \
     45 	-fno-exceptions \
     46 	-fno-strict-aliasing \
     47 	-Wno-unused-parameter \
     48 	-Wno-missing-field-initializers \
     49 	-fvisibility=hidden \
     50 	-pipe \
     51 	-fPIC \
     52 	-Wno-unused-local-typedefs \
     53 	-std=gnu99 \
     54 	-Wno-format \
     55 	-Os \
     56 	-g \
     57 	-fdata-sections \
     58 	-ffunction-sections \
     59 	-fomit-frame-pointer \
     60 	-funwind-tables
     61 
     62 MY_DEFS_Debug := \
     63 	'-DV8_DEPRECATION_WARNINGS' \
     64 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
     65 	'-D_FILE_OFFSET_BITS=64' \
     66 	'-DNO_TCMALLOC' \
     67 	'-DDISABLE_NACL' \
     68 	'-DCHROMIUM_BUILD' \
     69 	'-DUSE_LIBJPEG_TURBO=1' \
     70 	'-DENABLE_WEBRTC=1' \
     71 	'-DUSE_PROPRIETARY_CODECS' \
     72 	'-DENABLE_BROWSER_CDMS' \
     73 	'-DENABLE_CONFIGURATION_POLICY' \
     74 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     75 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     76 	'-DENABLE_EGLIMAGE=1' \
     77 	'-DCLD_VERSION=1' \
     78 	'-DENABLE_PRINTING=1' \
     79 	'-DENABLE_MANAGED_USERS=1' \
     80 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     81 	'-DDATA_REDUCTION_DEV_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 	'-DUSE_OPENSSL=1' \
     87 	'-DUSE_OPENSSL_CERTS=1' \
     88 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     89 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     90 	'-D_DEBUG'
     91 
     92 
     93 # Include paths placed before CFLAGS/CPPFLAGS
     94 LOCAL_C_INCLUDES_Debug := \
     95 	$(gyp_shared_intermediate_dir) \
     96 	$(LOCAL_PATH)/third_party/yasm/source/config/android \
     97 	$(LOCAL_PATH)/third_party/yasm/source/patched-yasm
     98 
     99 
    100 # Flags passed to only C++ (and not C) files.
    101 LOCAL_CPPFLAGS_Debug := \
    102 	-fno-rtti \
    103 	-fno-threadsafe-statics \
    104 	-fvisibility-inlines-hidden \
    105 	-Wno-deprecated
    106 
    107 
    108 LOCAL_FDO_SUPPORT_Debug := false
    109 
    110 # Flags passed to both C and C++ files.
    111 MY_CFLAGS_Release := \
    112 	-fstack-protector \
    113 	--param=ssp-buffer-size=4 \
    114 	-pthread \
    115 	-fno-exceptions \
    116 	-fno-strict-aliasing \
    117 	-Wno-unused-parameter \
    118 	-Wno-missing-field-initializers \
    119 	-fvisibility=hidden \
    120 	-pipe \
    121 	-fPIC \
    122 	-Wno-unused-local-typedefs \
    123 	-std=gnu99 \
    124 	-Wno-format \
    125 	-Os \
    126 	-fno-ident \
    127 	-fdata-sections \
    128 	-ffunction-sections \
    129 	-fomit-frame-pointer \
    130 	-funwind-tables
    131 
    132 MY_DEFS_Release := \
    133 	'-DV8_DEPRECATION_WARNINGS' \
    134 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    135 	'-D_FILE_OFFSET_BITS=64' \
    136 	'-DNO_TCMALLOC' \
    137 	'-DDISABLE_NACL' \
    138 	'-DCHROMIUM_BUILD' \
    139 	'-DUSE_LIBJPEG_TURBO=1' \
    140 	'-DENABLE_WEBRTC=1' \
    141 	'-DUSE_PROPRIETARY_CODECS' \
    142 	'-DENABLE_BROWSER_CDMS' \
    143 	'-DENABLE_CONFIGURATION_POLICY' \
    144 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    145 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    146 	'-DENABLE_EGLIMAGE=1' \
    147 	'-DCLD_VERSION=1' \
    148 	'-DENABLE_PRINTING=1' \
    149 	'-DENABLE_MANAGED_USERS=1' \
    150 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    151 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    152 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    153 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    154 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    155 	'-DVIDEO_HOLE=1' \
    156 	'-DUSE_OPENSSL=1' \
    157 	'-DUSE_OPENSSL_CERTS=1' \
    158 	'-DNDEBUG' \
    159 	'-DNVALGRIND' \
    160 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    161 
    162 
    163 # Include paths placed before CFLAGS/CPPFLAGS
    164 LOCAL_C_INCLUDES_Release := \
    165 	$(gyp_shared_intermediate_dir) \
    166 	$(LOCAL_PATH)/third_party/yasm/source/config/android \
    167 	$(LOCAL_PATH)/third_party/yasm/source/patched-yasm
    168 
    169 
    170 # Flags passed to only C++ (and not C) files.
    171 LOCAL_CPPFLAGS_Release := \
    172 	-fno-rtti \
    173 	-fno-threadsafe-statics \
    174 	-fvisibility-inlines-hidden \
    175 	-Wno-deprecated
    176 
    177 
    178 LOCAL_FDO_SUPPORT_Release := false
    179 
    180 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    181 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
    182 # Undefine ANDROID for host modules
    183 LOCAL_CFLAGS += -UANDROID
    184 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    185 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    186 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    187 ### Rules for final target.
    188 
    189 LOCAL_LDFLAGS_Debug := \
    190 	-Wl,-z,now \
    191 	-Wl,-z,relro \
    192 	-pthread \
    193 	-fPIC
    194 
    195 
    196 LOCAL_LDFLAGS_Release := \
    197 	-Wl,-z,now \
    198 	-Wl,-z,relro \
    199 	-pthread \
    200 	-fPIC
    201 
    202 
    203 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    204 
    205 LOCAL_STATIC_LIBRARIES :=
    206 
    207 # Enable grouping to fix circular references
    208 LOCAL_GROUP_STATIC_LIBRARIES := true
    209 
    210 LOCAL_SHARED_LIBRARIES :=
    211 
    212 # Add target alias to "gyp_all_modules" target.
    213 .PHONY: gyp_all_modules
    214 gyp_all_modules: third_party_yasm_re2c_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    215 
    216 # Alias gyp target name.
    217 .PHONY: re2c
    218 re2c: third_party_yasm_re2c_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    219 
    220 LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir)
    221 include $(BUILD_HOST_EXECUTABLE)
    222