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 := sandbox_sandbox_services_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := 14 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_CPP_EXTENSION := .cc 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 sandbox/linux/services/broker_process.cc \ 27 sandbox/linux/services/init_process_reaper.cc \ 28 sandbox/linux/services/scoped_process.cc \ 29 sandbox/linux/services/thread_helpers.cc \ 30 sandbox/linux/services/yama.cc 31 32 33 # Flags passed to both C and C++ files. 34 MY_CFLAGS_Debug := \ 35 -fstack-protector \ 36 --param=ssp-buffer-size=4 \ 37 -Werror \ 38 -fno-strict-aliasing \ 39 -Wall \ 40 -Wno-unused-parameter \ 41 -Wno-missing-field-initializers \ 42 -fvisibility=hidden \ 43 -pipe \ 44 -fPIC \ 45 -Wno-unused-local-typedefs \ 46 -m64 \ 47 -march=x86-64 \ 48 -ffunction-sections \ 49 -funwind-tables \ 50 -g \ 51 -fstack-protector \ 52 -fno-short-enums \ 53 -finline-limit=64 \ 54 -Wa,--noexecstack \ 55 -U_FORTIFY_SOURCE \ 56 -Wno-extra \ 57 -Wno-ignored-qualifiers \ 58 -Wno-type-limits \ 59 -Wno-unused-but-set-variable \ 60 -Os \ 61 -g \ 62 -gdwarf-4 \ 63 -fdata-sections \ 64 -ffunction-sections \ 65 -fomit-frame-pointer \ 66 -funwind-tables 67 68 MY_DEFS_Debug := \ 69 '-DV8_DEPRECATION_WARNINGS' \ 70 '-D_FILE_OFFSET_BITS=64' \ 71 '-DNO_TCMALLOC' \ 72 '-DDISABLE_NACL' \ 73 '-DCHROMIUM_BUILD' \ 74 '-DUSE_LIBJPEG_TURBO=1' \ 75 '-DENABLE_WEBRTC=1' \ 76 '-DUSE_PROPRIETARY_CODECS' \ 77 '-DENABLE_BROWSER_CDMS' \ 78 '-DENABLE_CONFIGURATION_POLICY' \ 79 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 80 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 81 '-DENABLE_EGLIMAGE=1' \ 82 '-DCLD_VERSION=1' \ 83 '-DENABLE_PRINTING=1' \ 84 '-DENABLE_MANAGED_USERS=1' \ 85 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 86 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 87 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 88 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 89 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 90 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 91 '-DVIDEO_HOLE=1' \ 92 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 93 '-DSANDBOX_IMPLEMENTATION' \ 94 '-DUSE_OPENSSL=1' \ 95 '-DUSE_OPENSSL_CERTS=1' \ 96 '-D__STDC_CONSTANT_MACROS' \ 97 '-D__STDC_FORMAT_MACROS' \ 98 '-DANDROID' \ 99 '-D__GNU_SOURCE=1' \ 100 '-DUSE_STLPORT=1' \ 101 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 102 '-DCHROME_BUILD_ID=""' \ 103 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 104 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 105 '-D_DEBUG' 106 107 108 # Include paths placed before CFLAGS/CPPFLAGS 109 LOCAL_C_INCLUDES_Debug := \ 110 $(gyp_shared_intermediate_dir) \ 111 $(LOCAL_PATH)/sandbox \ 112 $(LOCAL_PATH) \ 113 $(PWD)/frameworks/wilhelm/include \ 114 $(PWD)/bionic \ 115 $(PWD)/external/stlport/stlport 116 117 118 # Flags passed to only C++ (and not C) files. 119 LOCAL_CPPFLAGS_Debug := \ 120 -fno-exceptions \ 121 -fno-rtti \ 122 -fno-threadsafe-statics \ 123 -fvisibility-inlines-hidden \ 124 -Wsign-compare \ 125 -std=gnu++11 \ 126 -Wno-narrowing \ 127 -Wno-literal-suffix \ 128 -Wno-non-virtual-dtor \ 129 -Wno-sign-promo 130 131 132 # Flags passed to both C and C++ files. 133 MY_CFLAGS_Release := \ 134 -fstack-protector \ 135 --param=ssp-buffer-size=4 \ 136 -Werror \ 137 -fno-strict-aliasing \ 138 -Wall \ 139 -Wno-unused-parameter \ 140 -Wno-missing-field-initializers \ 141 -fvisibility=hidden \ 142 -pipe \ 143 -fPIC \ 144 -Wno-unused-local-typedefs \ 145 -m64 \ 146 -march=x86-64 \ 147 -ffunction-sections \ 148 -funwind-tables \ 149 -g \ 150 -fstack-protector \ 151 -fno-short-enums \ 152 -finline-limit=64 \ 153 -Wa,--noexecstack \ 154 -U_FORTIFY_SOURCE \ 155 -Wno-extra \ 156 -Wno-ignored-qualifiers \ 157 -Wno-type-limits \ 158 -Wno-unused-but-set-variable \ 159 -Os \ 160 -fno-ident \ 161 -fdata-sections \ 162 -ffunction-sections \ 163 -fomit-frame-pointer \ 164 -funwind-tables 165 166 MY_DEFS_Release := \ 167 '-DV8_DEPRECATION_WARNINGS' \ 168 '-D_FILE_OFFSET_BITS=64' \ 169 '-DNO_TCMALLOC' \ 170 '-DDISABLE_NACL' \ 171 '-DCHROMIUM_BUILD' \ 172 '-DUSE_LIBJPEG_TURBO=1' \ 173 '-DENABLE_WEBRTC=1' \ 174 '-DUSE_PROPRIETARY_CODECS' \ 175 '-DENABLE_BROWSER_CDMS' \ 176 '-DENABLE_CONFIGURATION_POLICY' \ 177 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 178 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 179 '-DENABLE_EGLIMAGE=1' \ 180 '-DCLD_VERSION=1' \ 181 '-DENABLE_PRINTING=1' \ 182 '-DENABLE_MANAGED_USERS=1' \ 183 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 184 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 185 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 186 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 187 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 188 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 189 '-DVIDEO_HOLE=1' \ 190 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 191 '-DSANDBOX_IMPLEMENTATION' \ 192 '-DUSE_OPENSSL=1' \ 193 '-DUSE_OPENSSL_CERTS=1' \ 194 '-D__STDC_CONSTANT_MACROS' \ 195 '-D__STDC_FORMAT_MACROS' \ 196 '-DANDROID' \ 197 '-D__GNU_SOURCE=1' \ 198 '-DUSE_STLPORT=1' \ 199 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 200 '-DCHROME_BUILD_ID=""' \ 201 '-DNDEBUG' \ 202 '-DNVALGRIND' \ 203 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 204 '-D_FORTIFY_SOURCE=2' 205 206 207 # Include paths placed before CFLAGS/CPPFLAGS 208 LOCAL_C_INCLUDES_Release := \ 209 $(gyp_shared_intermediate_dir) \ 210 $(LOCAL_PATH)/sandbox \ 211 $(LOCAL_PATH) \ 212 $(PWD)/frameworks/wilhelm/include \ 213 $(PWD)/bionic \ 214 $(PWD)/external/stlport/stlport 215 216 217 # Flags passed to only C++ (and not C) files. 218 LOCAL_CPPFLAGS_Release := \ 219 -fno-exceptions \ 220 -fno-rtti \ 221 -fno-threadsafe-statics \ 222 -fvisibility-inlines-hidden \ 223 -Wsign-compare \ 224 -std=gnu++11 \ 225 -Wno-narrowing \ 226 -Wno-literal-suffix \ 227 -Wno-non-virtual-dtor \ 228 -Wno-sign-promo 229 230 231 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 232 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 233 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 234 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 235 ### Rules for final target. 236 237 LOCAL_SHARED_LIBRARIES := \ 238 libstlport \ 239 libdl 240 241 # Add target alias to "gyp_all_modules" target. 242 .PHONY: gyp_all_modules 243 gyp_all_modules: sandbox_sandbox_services_gyp 244 245 # Alias gyp target name. 246 .PHONY: sandbox_services 247 sandbox_services: sandbox_sandbox_services_gyp 248 249 include $(BUILD_STATIC_LIBRARY) 250