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