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_host_gyp 7 LOCAL_MODULE_STEM := genmacro 8 LOCAL_MODULE_SUFFIX := 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 $(call intermediates-dir-for,GYP,third_party_yasm_config_sources_host_gyp,true)/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/tools/genmacro/genmacro.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-exceptions \ 37 -fno-strict-aliasing \ 38 -Wno-unused-parameter \ 39 -Wno-missing-field-initializers \ 40 -fvisibility=hidden \ 41 -pipe \ 42 -fPIC \ 43 -std=gnu99 \ 44 -Wno-format \ 45 -Os \ 46 -g \ 47 -fomit-frame-pointer \ 48 -fdata-sections \ 49 -ffunction-sections 50 51 MY_DEFS_Debug := \ 52 '-DV8_DEPRECATION_WARNINGS' \ 53 '-D_FILE_OFFSET_BITS=64' \ 54 '-DNO_TCMALLOC' \ 55 '-DDISABLE_NACL' \ 56 '-DCHROMIUM_BUILD' \ 57 '-DUSE_LIBJPEG_TURBO=1' \ 58 '-DUSE_PROPRIETARY_CODECS' \ 59 '-DENABLE_CONFIGURATION_POLICY' \ 60 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 61 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 62 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 63 '-DUSE_OPENSSL=1' \ 64 '-DENABLE_EGLIMAGE=1' \ 65 '-DCLD_VERSION=1' \ 66 '-DENABLE_PRINTING=1' \ 67 '-DENABLE_MANAGED_USERS=1' \ 68 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 69 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 70 '-D_DEBUG' 71 72 73 # Include paths placed before CFLAGS/CPPFLAGS 74 LOCAL_C_INCLUDES_Debug := \ 75 $(LOCAL_PATH)/third_party/yasm/source/config/android \ 76 $(LOCAL_PATH)/third_party/yasm/source/patched-yasm 77 78 79 # Flags passed to only C++ (and not C) files. 80 LOCAL_CPPFLAGS_Debug := \ 81 -fno-rtti \ 82 -fno-threadsafe-statics \ 83 -fvisibility-inlines-hidden \ 84 -Wno-deprecated 85 86 87 # Flags passed to both C and C++ files. 88 MY_CFLAGS_Release := \ 89 -fstack-protector \ 90 --param=ssp-buffer-size=4 \ 91 -pthread \ 92 -fno-exceptions \ 93 -fno-strict-aliasing \ 94 -Wno-unused-parameter \ 95 -Wno-missing-field-initializers \ 96 -fvisibility=hidden \ 97 -pipe \ 98 -fPIC \ 99 -std=gnu99 \ 100 -Wno-format \ 101 -Os \ 102 -fno-ident \ 103 -fdata-sections \ 104 -ffunction-sections \ 105 -fomit-frame-pointer \ 106 -fno-unwind-tables \ 107 -fno-asynchronous-unwind-tables 108 109 MY_DEFS_Release := \ 110 '-DV8_DEPRECATION_WARNINGS' \ 111 '-D_FILE_OFFSET_BITS=64' \ 112 '-DNO_TCMALLOC' \ 113 '-DDISABLE_NACL' \ 114 '-DCHROMIUM_BUILD' \ 115 '-DUSE_LIBJPEG_TURBO=1' \ 116 '-DUSE_PROPRIETARY_CODECS' \ 117 '-DENABLE_CONFIGURATION_POLICY' \ 118 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 119 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 120 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 121 '-DUSE_OPENSSL=1' \ 122 '-DENABLE_EGLIMAGE=1' \ 123 '-DCLD_VERSION=1' \ 124 '-DENABLE_PRINTING=1' \ 125 '-DENABLE_MANAGED_USERS=1' \ 126 '-DNDEBUG' \ 127 '-DNVALGRIND' \ 128 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 129 130 131 # Include paths placed before CFLAGS/CPPFLAGS 132 LOCAL_C_INCLUDES_Release := \ 133 $(LOCAL_PATH)/third_party/yasm/source/config/android \ 134 $(LOCAL_PATH)/third_party/yasm/source/patched-yasm 135 136 137 # Flags passed to only C++ (and not C) files. 138 LOCAL_CPPFLAGS_Release := \ 139 -fno-rtti \ 140 -fno-threadsafe-statics \ 141 -fvisibility-inlines-hidden \ 142 -Wno-deprecated 143 144 145 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 146 # Undefine ANDROID for host modules 147 LOCAL_CFLAGS += -UANDROID 148 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 149 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 150 ### Rules for final target. 151 152 LOCAL_LDFLAGS_Debug := \ 153 -pthread \ 154 -fPIC 155 156 157 LOCAL_LDFLAGS_Release := \ 158 -pthread \ 159 -fPIC 160 161 162 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 163 164 LOCAL_STATIC_LIBRARIES := 165 166 # Enable grouping to fix circular references 167 LOCAL_GROUP_STATIC_LIBRARIES := true 168 169 LOCAL_SHARED_LIBRARIES := 170 171 # Add target alias to "gyp_all_modules" target. 172 .PHONY: gyp_all_modules 173 gyp_all_modules: third_party_yasm_genmacro_host_gyp 174 175 # Alias gyp target name. 176 .PHONY: genmacro 177 genmacro: third_party_yasm_genmacro_host_gyp 178 179 LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir) 180 include $(BUILD_HOST_EXECUTABLE) 181