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