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 := GYP
      6 LOCAL_MODULE := third_party_yasm_config_sources_host_gyp
      7 LOCAL_MODULE_STEM := config_sources
      8 LOCAL_MODULE_SUFFIX := .stamp
      9 LOCAL_MODULE_TAGS := optional
     10 LOCAL_IS_HOST_MODULE := true
     11 gyp_intermediate_dir := $(call local-intermediates-dir)
     12 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     13 
     14 # Make sure our deps are built first.
     15 GYP_TARGET_DEPENDENCIES :=
     16 
     17 GYP_GENERATED_OUTPUTS :=
     18 
     19 # Make sure our deps and generated files are built first.
     20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     21 
     22 LOCAL_GENERATED_SOURCES :=
     23 
     24 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     25 
     26 LOCAL_SRC_FILES :=
     27 
     28 
     29 # Flags passed to both C and C++ files.
     30 MY_CFLAGS_Debug := \
     31 	-fstack-protector \
     32 	--param=ssp-buffer-size=4 \
     33 	-pthread \
     34 	-fno-exceptions \
     35 	-fno-strict-aliasing \
     36 	-Wno-unused-parameter \
     37 	-Wno-missing-field-initializers \
     38 	-fvisibility=hidden \
     39 	-pipe \
     40 	-fPIC \
     41 	-Wno-format \
     42 	-Os \
     43 	-g \
     44 	-fomit-frame-pointer \
     45 	-fdata-sections \
     46 	-ffunction-sections
     47 
     48 MY_DEFS_Debug := \
     49 	'-DV8_DEPRECATION_WARNINGS' \
     50 	'-D_FILE_OFFSET_BITS=64' \
     51 	'-DNO_TCMALLOC' \
     52 	'-DDISABLE_NACL' \
     53 	'-DCHROMIUM_BUILD' \
     54 	'-DUSE_LIBJPEG_TURBO=1' \
     55 	'-DUSE_PROPRIETARY_CODECS' \
     56 	'-DENABLE_CONFIGURATION_POLICY' \
     57 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     58 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     59 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     60 	'-DUSE_OPENSSL=1' \
     61 	'-DENABLE_EGLIMAGE=1' \
     62 	'-DCLD_VERSION=1' \
     63 	'-DENABLE_PRINTING=1' \
     64 	'-DENABLE_MANAGED_USERS=1' \
     65 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     66 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     67 	'-D_DEBUG'
     68 
     69 
     70 # Include paths placed before CFLAGS/CPPFLAGS
     71 LOCAL_C_INCLUDES_Debug :=
     72 
     73 
     74 # Flags passed to only C++ (and not C) files.
     75 LOCAL_CPPFLAGS_Debug := \
     76 	-fno-rtti \
     77 	-fno-threadsafe-statics \
     78 	-fvisibility-inlines-hidden \
     79 	-Wno-deprecated
     80 
     81 
     82 # Flags passed to both C and C++ files.
     83 MY_CFLAGS_Release := \
     84 	-fstack-protector \
     85 	--param=ssp-buffer-size=4 \
     86 	-pthread \
     87 	-fno-exceptions \
     88 	-fno-strict-aliasing \
     89 	-Wno-unused-parameter \
     90 	-Wno-missing-field-initializers \
     91 	-fvisibility=hidden \
     92 	-pipe \
     93 	-fPIC \
     94 	-Wno-format \
     95 	-Os \
     96 	-fno-ident \
     97 	-fdata-sections \
     98 	-ffunction-sections \
     99 	-fomit-frame-pointer \
    100 	-fno-unwind-tables \
    101 	-fno-asynchronous-unwind-tables
    102 
    103 MY_DEFS_Release := \
    104 	'-DV8_DEPRECATION_WARNINGS' \
    105 	'-D_FILE_OFFSET_BITS=64' \
    106 	'-DNO_TCMALLOC' \
    107 	'-DDISABLE_NACL' \
    108 	'-DCHROMIUM_BUILD' \
    109 	'-DUSE_LIBJPEG_TURBO=1' \
    110 	'-DUSE_PROPRIETARY_CODECS' \
    111 	'-DENABLE_CONFIGURATION_POLICY' \
    112 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    113 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    114 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    115 	'-DUSE_OPENSSL=1' \
    116 	'-DENABLE_EGLIMAGE=1' \
    117 	'-DCLD_VERSION=1' \
    118 	'-DENABLE_PRINTING=1' \
    119 	'-DENABLE_MANAGED_USERS=1' \
    120 	'-DNDEBUG' \
    121 	'-DNVALGRIND' \
    122 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    123 
    124 
    125 # Include paths placed before CFLAGS/CPPFLAGS
    126 LOCAL_C_INCLUDES_Release :=
    127 
    128 
    129 # Flags passed to only C++ (and not C) files.
    130 LOCAL_CPPFLAGS_Release := \
    131 	-fno-rtti \
    132 	-fno-threadsafe-statics \
    133 	-fvisibility-inlines-hidden \
    134 	-Wno-deprecated
    135 
    136 
    137 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    138 # Undefine ANDROID for host modules
    139 LOCAL_CFLAGS += -UANDROID
    140 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    141 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    142 ### Rules for final target.
    143 # Add target alias to "gyp_all_modules" target.
    144 .PHONY: gyp_all_modules
    145 gyp_all_modules: third_party_yasm_config_sources_host_gyp
    146 
    147 # Alias gyp target name.
    148 .PHONY: config_sources
    149 config_sources: third_party_yasm_config_sources_host_gyp
    150 
    151 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp
    152 LOCAL_UNINSTALLABLE_MODULE := true
    153 
    154 include $(BUILD_SYSTEM)/base_rules.mk
    155 
    156 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES)
    157 	$(hide) echo "Gyp timestamp: $@"
    158 	$(hide) mkdir -p $(dir $@)
    159 	$(hide) touch $@
    160