Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 1 | # This file is generated by gyp; do not edit. |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 6 | LOCAL_MODULE := sdch_sdch_gyp |
| 7 | LOCAL_MODULE_SUFFIX := .a |
| 8 | LOCAL_MODULE_TAGS := optional |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 9 | LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) |
| 10 | gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) |
| 11 | gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 12 | |
| 13 | # Make sure our deps are built first. |
| 14 | GYP_TARGET_DEPENDENCIES := |
| 15 | |
| 16 | GYP_GENERATED_OUTPUTS := |
| 17 | |
| 18 | # Make sure our deps and generated files are built first. |
| 19 | LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) |
| 20 | |
| 21 | LOCAL_CPP_EXTENSION := .cc |
| 22 | LOCAL_GENERATED_SOURCES := |
| 23 | |
| 24 | GYP_COPIED_SOURCE_ORIGIN_DIRS := |
| 25 | |
| 26 | LOCAL_SRC_FILES := \ |
| 27 | sdch/open-vcdiff/src/addrcache.cc \ |
| 28 | sdch/open-vcdiff/src/blockhash.cc \ |
| 29 | sdch/open-vcdiff/src/codetable.cc \ |
| 30 | sdch/open-vcdiff/src/decodetable.cc \ |
| 31 | sdch/open-vcdiff/src/encodetable.cc \ |
| 32 | sdch/open-vcdiff/src/headerparser.cc \ |
| 33 | sdch/open-vcdiff/src/instruction_map.cc \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 34 | sdch/open-vcdiff/src/varint_bigendian.cc \ |
| 35 | sdch/open-vcdiff/src/vcdecoder.cc \ |
| 36 | sdch/open-vcdiff/src/vcdiffengine.cc |
| 37 | |
| 38 | |
| 39 | # Flags passed to both C and C++ files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 40 | MY_CFLAGS_Debug := \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 41 | -fstack-protector \ |
| 42 | --param=ssp-buffer-size=4 \ |
| 43 | -Werror \ |
| 44 | -fno-exceptions \ |
| 45 | -fno-strict-aliasing \ |
| 46 | -Wall \ |
| 47 | -Wno-unused-parameter \ |
| 48 | -Wno-missing-field-initializers \ |
| 49 | -fvisibility=hidden \ |
| 50 | -pipe \ |
| 51 | -fPIC \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 52 | -Wno-unused-local-typedefs \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 53 | -include \ |
| 54 | ./sdch/logging_forward.h \ |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 55 | -Wno-deprecated-declarations \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 56 | -fno-tree-sra \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 57 | -fno-partial-inlining \ |
| 58 | -fno-early-inlining \ |
| 59 | -fno-tree-copy-prop \ |
| 60 | -fno-tree-loop-optimize \ |
| 61 | -fno-move-loop-invariants \ |
| 62 | -fno-caller-saves \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 63 | -Wno-psabi \ |
| 64 | -ffunction-sections \ |
| 65 | -funwind-tables \ |
| 66 | -g \ |
| 67 | -fstack-protector \ |
| 68 | -fno-short-enums \ |
| 69 | -finline-limit=64 \ |
| 70 | -Wa,--noexecstack \ |
| 71 | -U_FORTIFY_SOURCE \ |
| 72 | -Wno-extra \ |
| 73 | -Wno-ignored-qualifiers \ |
| 74 | -Wno-type-limits \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 75 | -Wno-unused-but-set-variable \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 76 | -Os \ |
| 77 | -g \ |
| 78 | -fomit-frame-pointer \ |
| 79 | -fdata-sections \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 80 | -ffunction-sections \ |
| 81 | -funwind-tables |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 82 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 83 | MY_DEFS_Debug := \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 84 | '-DV8_DEPRECATION_WARNINGS' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 85 | '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 86 | '-D_FILE_OFFSET_BITS=64' \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 87 | '-DNO_TCMALLOC' \ |
| 88 | '-DDISABLE_NACL' \ |
| 89 | '-DCHROMIUM_BUILD' \ |
| 90 | '-DUSE_LIBJPEG_TURBO=1' \ |
Ben Murdoch | e5d81f5 | 2014-04-03 12:29:45 +0100 | [diff] [blame] | 91 | '-DENABLE_WEBRTC=1' \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 92 | '-DUSE_PROPRIETARY_CODECS' \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 93 | '-DENABLE_BROWSER_CDMS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 94 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 95 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 96 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 97 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 98 | '-DCLD_VERSION=1' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 99 | '-DENABLE_PRINTING=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 100 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 101 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 102 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 103 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 104 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 105 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Torne (Richard Coles) | 0de6073 | 2014-05-15 12:16:31 +0100 | [diff] [blame] | 106 | '-DVIDEO_HOLE=1' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 107 | '-DUSE_OPENSSL=1' \ |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 108 | '-DUSE_OPENSSL_CERTS=1' \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 109 | '-D__STDC_CONSTANT_MACROS' \ |
| 110 | '-D__STDC_FORMAT_MACROS' \ |
| 111 | '-DANDROID' \ |
| 112 | '-D__GNU_SOURCE=1' \ |
| 113 | '-DUSE_STLPORT=1' \ |
| 114 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 115 | '-DCHROME_BUILD_ID=""' \ |
| 116 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 117 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 118 | '-D_DEBUG' |
| 119 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 120 | |
| 121 | # Include paths placed before CFLAGS/CPPFLAGS |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 122 | LOCAL_C_INCLUDES_Debug := \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 123 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 124 | $(gyp_shared_intermediate_dir) \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 125 | $(LOCAL_PATH)/sdch/open-vcdiff/src \ |
| 126 | $(LOCAL_PATH)/sdch/linux \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 127 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 128 | $(LOCAL_PATH)/third_party/zlib \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 129 | $(PWD)/frameworks/wilhelm/include \ |
| 130 | $(PWD)/bionic \ |
| 131 | $(PWD)/external/stlport/stlport |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 132 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 133 | |
| 134 | # Flags passed to only C++ (and not C) files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 135 | LOCAL_CPPFLAGS_Debug := \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 136 | -fno-rtti \ |
| 137 | -fno-threadsafe-statics \ |
| 138 | -fvisibility-inlines-hidden \ |
| 139 | -Wsign-compare \ |
| 140 | -Wno-abi \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 141 | -Wno-non-virtual-dtor \ |
| 142 | -Wno-sign-promo |
| 143 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 144 | |
| 145 | # Flags passed to both C and C++ files. |
| 146 | MY_CFLAGS_Release := \ |
| 147 | -fstack-protector \ |
| 148 | --param=ssp-buffer-size=4 \ |
| 149 | -Werror \ |
| 150 | -fno-exceptions \ |
| 151 | -fno-strict-aliasing \ |
| 152 | -Wall \ |
| 153 | -Wno-unused-parameter \ |
| 154 | -Wno-missing-field-initializers \ |
| 155 | -fvisibility=hidden \ |
| 156 | -pipe \ |
| 157 | -fPIC \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 158 | -Wno-unused-local-typedefs \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 159 | -include \ |
| 160 | ./sdch/logging_forward.h \ |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 161 | -Wno-deprecated-declarations \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 162 | -fno-tree-sra \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 163 | -fno-partial-inlining \ |
| 164 | -fno-early-inlining \ |
| 165 | -fno-tree-copy-prop \ |
| 166 | -fno-tree-loop-optimize \ |
| 167 | -fno-move-loop-invariants \ |
| 168 | -fno-caller-saves \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 169 | -Wno-psabi \ |
| 170 | -ffunction-sections \ |
| 171 | -funwind-tables \ |
| 172 | -g \ |
| 173 | -fstack-protector \ |
| 174 | -fno-short-enums \ |
| 175 | -finline-limit=64 \ |
| 176 | -Wa,--noexecstack \ |
| 177 | -U_FORTIFY_SOURCE \ |
| 178 | -Wno-extra \ |
| 179 | -Wno-ignored-qualifiers \ |
| 180 | -Wno-type-limits \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 181 | -Wno-unused-but-set-variable \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 182 | -Os \ |
| 183 | -fno-ident \ |
| 184 | -fdata-sections \ |
| 185 | -ffunction-sections \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 186 | -fomit-frame-pointer \ |
| 187 | -funwind-tables |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 188 | |
| 189 | MY_DEFS_Release := \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 190 | '-DV8_DEPRECATION_WARNINGS' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 191 | '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 192 | '-D_FILE_OFFSET_BITS=64' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 193 | '-DNO_TCMALLOC' \ |
| 194 | '-DDISABLE_NACL' \ |
| 195 | '-DCHROMIUM_BUILD' \ |
| 196 | '-DUSE_LIBJPEG_TURBO=1' \ |
Ben Murdoch | e5d81f5 | 2014-04-03 12:29:45 +0100 | [diff] [blame] | 197 | '-DENABLE_WEBRTC=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 198 | '-DUSE_PROPRIETARY_CODECS' \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 199 | '-DENABLE_BROWSER_CDMS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 200 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 201 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 202 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 203 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 204 | '-DCLD_VERSION=1' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 205 | '-DENABLE_PRINTING=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 206 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 207 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 208 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 209 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 210 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 211 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Torne (Richard Coles) | 0de6073 | 2014-05-15 12:16:31 +0100 | [diff] [blame] | 212 | '-DVIDEO_HOLE=1' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 213 | '-DUSE_OPENSSL=1' \ |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 214 | '-DUSE_OPENSSL_CERTS=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 215 | '-D__STDC_CONSTANT_MACROS' \ |
| 216 | '-D__STDC_FORMAT_MACROS' \ |
| 217 | '-DANDROID' \ |
| 218 | '-D__GNU_SOURCE=1' \ |
| 219 | '-DUSE_STLPORT=1' \ |
| 220 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 221 | '-DCHROME_BUILD_ID=""' \ |
| 222 | '-DNDEBUG' \ |
| 223 | '-DNVALGRIND' \ |
| 224 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ |
| 225 | '-D_FORTIFY_SOURCE=2' |
| 226 | |
| 227 | |
| 228 | # Include paths placed before CFLAGS/CPPFLAGS |
| 229 | LOCAL_C_INCLUDES_Release := \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 230 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 231 | $(gyp_shared_intermediate_dir) \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 232 | $(LOCAL_PATH)/sdch/open-vcdiff/src \ |
| 233 | $(LOCAL_PATH)/sdch/linux \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 234 | $(LOCAL_PATH) \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 235 | $(LOCAL_PATH)/third_party/zlib \ |
| 236 | $(PWD)/frameworks/wilhelm/include \ |
| 237 | $(PWD)/bionic \ |
| 238 | $(PWD)/external/stlport/stlport |
| 239 | |
| 240 | |
| 241 | # Flags passed to only C++ (and not C) files. |
| 242 | LOCAL_CPPFLAGS_Release := \ |
| 243 | -fno-rtti \ |
| 244 | -fno-threadsafe-statics \ |
| 245 | -fvisibility-inlines-hidden \ |
| 246 | -Wsign-compare \ |
| 247 | -Wno-abi \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 248 | -Wno-non-virtual-dtor \ |
| 249 | -Wno-sign-promo |
| 250 | |
| 251 | |
| 252 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 253 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 254 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 255 | LOCAL_ASFLAGS := $(LOCAL_CFLAGS) |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 256 | ### Rules for final target. |
| 257 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 258 | LOCAL_LDFLAGS_Debug := \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 259 | -Wl,-z,now \ |
| 260 | -Wl,-z,relro \ |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 261 | -Wl,--fatal-warnings \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 262 | -Wl,-z,noexecstack \ |
| 263 | -fPIC \ |
| 264 | -Wl,-z,relro \ |
| 265 | -Wl,-z,now \ |
| 266 | -fuse-ld=gold \ |
| 267 | -nostdlib \ |
| 268 | -Wl,--no-undefined \ |
| 269 | -Wl,--exclude-libs=ALL \ |
| 270 | -Wl,--icf=safe \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 271 | -Wl,--warn-shared-textrel \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 272 | -Wl,-O1 \ |
| 273 | -Wl,--as-needed |
| 274 | |
| 275 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 276 | LOCAL_LDFLAGS_Release := \ |
| 277 | -Wl,-z,now \ |
| 278 | -Wl,-z,relro \ |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 279 | -Wl,--fatal-warnings \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 280 | -Wl,-z,noexecstack \ |
| 281 | -fPIC \ |
| 282 | -Wl,-z,relro \ |
| 283 | -Wl,-z,now \ |
| 284 | -fuse-ld=gold \ |
| 285 | -nostdlib \ |
| 286 | -Wl,--no-undefined \ |
| 287 | -Wl,--exclude-libs=ALL \ |
| 288 | -Wl,--icf=safe \ |
| 289 | -Wl,-O1 \ |
| 290 | -Wl,--as-needed \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 291 | -Wl,--gc-sections \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 292 | -Wl,--warn-shared-textrel |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 293 | |
| 294 | |
| 295 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 296 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 297 | LOCAL_STATIC_LIBRARIES := |
| 298 | |
| 299 | # Enable grouping to fix circular references |
| 300 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 301 | |
| 302 | LOCAL_SHARED_LIBRARIES := \ |
| 303 | libstlport \ |
| 304 | libdl |
| 305 | |
| 306 | # Add target alias to "gyp_all_modules" target. |
| 307 | .PHONY: gyp_all_modules |
| 308 | gyp_all_modules: sdch_sdch_gyp |
| 309 | |
| 310 | # Alias gyp target name. |
| 311 | .PHONY: sdch |
| 312 | sdch: sdch_sdch_gyp |
| 313 | |
| 314 | include $(BUILD_STATIC_LIBRARY) |