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_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 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 28 29 # Flags passed to both C and C++ files. 30 MY_CFLAGS_Debug := \ 31 -fstack-protector \ 32 --param=ssp-buffer-size=4 \ 33 \ 34 -fno-exceptions \ 35 -fno-strict-aliasing \ 36 -Wall \ 37 -Wno-unused-parameter \ 38 -Wno-missing-field-initializers \ 39 -fvisibility=hidden \ 40 -pipe \ 41 -fPIC \ 42 -EL \ 43 -mhard-float \ 44 -ffunction-sections \ 45 -funwind-tables \ 46 -g \ 47 -fstack-protector \ 48 -fno-short-enums \ 49 -finline-limit=64 \ 50 -Wa,--noexecstack \ 51 -U_FORTIFY_SOURCE \ 52 -Wno-extra \ 53 -Wno-ignored-qualifiers \ 54 -Wno-type-limits \ 55 -Os \ 56 -g \ 57 -fomit-frame-pointer \ 58 -fdata-sections \ 59 -ffunction-sections 60 61 MY_DEFS_Debug := \ 62 '-DANGLE_DX11' \ 63 '-D_FILE_OFFSET_BITS=64' \ 64 '-DNO_TCMALLOC' \ 65 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 66 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 67 '-DDISABLE_NACL' \ 68 '-DCHROMIUM_BUILD' \ 69 '-DUSE_LIBJPEG_TURBO=1' \ 70 '-DUSE_PROPRIETARY_CODECS' \ 71 '-DENABLE_CONFIGURATION_POLICY' \ 72 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 73 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 74 '-DENABLE_GPU=1' \ 75 '-DUSE_OPENSSL=1' \ 76 '-DENABLE_EGLIMAGE=1' \ 77 '-DENABLE_PRINTING=1' \ 78 '-D__STDC_CONSTANT_MACROS' \ 79 '-D__STDC_FORMAT_MACROS' \ 80 '-DANDROID' \ 81 '-D__GNU_SOURCE=1' \ 82 '-DUSE_STLPORT=1' \ 83 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 84 '-DCHROME_BUILD_ID=""' \ 85 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 86 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 87 '-D_DEBUG' 88 89 90 # Include paths placed before CFLAGS/CPPFLAGS 91 LOCAL_C_INCLUDES_Debug := \ 92 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 93 $(LOCAL_PATH)/sandbox \ 94 $(LOCAL_PATH) \ 95 $(PWD)/frameworks/wilhelm/include \ 96 $(PWD)/bionic \ 97 $(PWD)/external/stlport/stlport 98 99 100 # Flags passed to only C++ (and not C) files. 101 LOCAL_CPPFLAGS_Debug := \ 102 -fno-rtti \ 103 -fno-threadsafe-statics \ 104 -fvisibility-inlines-hidden \ 105 -Wsign-compare \ 106 -Wno-uninitialized \ 107 -Wno-error=c++0x-compat \ 108 -Wno-non-virtual-dtor \ 109 -Wno-sign-promo 110 111 112 # Flags passed to both C and C++ files. 113 MY_CFLAGS_Release := \ 114 -fstack-protector \ 115 --param=ssp-buffer-size=4 \ 116 \ 117 -fno-exceptions \ 118 -fno-strict-aliasing \ 119 -Wall \ 120 -Wno-unused-parameter \ 121 -Wno-missing-field-initializers \ 122 -fvisibility=hidden \ 123 -pipe \ 124 -fPIC \ 125 -EL \ 126 -mhard-float \ 127 -ffunction-sections \ 128 -funwind-tables \ 129 -g \ 130 -fstack-protector \ 131 -fno-short-enums \ 132 -finline-limit=64 \ 133 -Wa,--noexecstack \ 134 -U_FORTIFY_SOURCE \ 135 -Wno-extra \ 136 -Wno-ignored-qualifiers \ 137 -Wno-type-limits \ 138 -Os \ 139 -fno-ident \ 140 -fdata-sections \ 141 -ffunction-sections \ 142 -fomit-frame-pointer 143 144 MY_DEFS_Release := \ 145 '-DANGLE_DX11' \ 146 '-D_FILE_OFFSET_BITS=64' \ 147 '-DNO_TCMALLOC' \ 148 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 149 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 150 '-DDISABLE_NACL' \ 151 '-DCHROMIUM_BUILD' \ 152 '-DUSE_LIBJPEG_TURBO=1' \ 153 '-DUSE_PROPRIETARY_CODECS' \ 154 '-DENABLE_CONFIGURATION_POLICY' \ 155 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 156 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 157 '-DENABLE_GPU=1' \ 158 '-DUSE_OPENSSL=1' \ 159 '-DENABLE_EGLIMAGE=1' \ 160 '-DENABLE_PRINTING=1' \ 161 '-D__STDC_CONSTANT_MACROS' \ 162 '-D__STDC_FORMAT_MACROS' \ 163 '-DANDROID' \ 164 '-D__GNU_SOURCE=1' \ 165 '-DUSE_STLPORT=1' \ 166 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 167 '-DCHROME_BUILD_ID=""' \ 168 '-DNDEBUG' \ 169 '-DNVALGRIND' \ 170 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 171 '-D_FORTIFY_SOURCE=2' 172 173 174 # Include paths placed before CFLAGS/CPPFLAGS 175 LOCAL_C_INCLUDES_Release := \ 176 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 177 $(LOCAL_PATH)/sandbox \ 178 $(LOCAL_PATH) \ 179 $(PWD)/frameworks/wilhelm/include \ 180 $(PWD)/bionic \ 181 $(PWD)/external/stlport/stlport 182 183 184 # Flags passed to only C++ (and not C) files. 185 LOCAL_CPPFLAGS_Release := \ 186 -fno-rtti \ 187 -fno-threadsafe-statics \ 188 -fvisibility-inlines-hidden \ 189 -Wsign-compare \ 190 -Wno-uninitialized \ 191 -Wno-error=c++0x-compat \ 192 -Wno-non-virtual-dtor \ 193 -Wno-sign-promo 194 195 196 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 197 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 198 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 199 ### Rules for final target. 200 201 LOCAL_LDFLAGS_Debug := \ 202 -Wl,-z,now \ 203 -Wl,-z,relro \ 204 -Wl,-z,noexecstack \ 205 -fPIC \ 206 -EL \ 207 -Wl,--no-keep-memory \ 208 -nostdlib \ 209 -Wl,--no-undefined \ 210 -Wl,--exclude-libs=ALL \ 211 -Wl,--fatal-warnings \ 212 -Wl,--gc-sections \ 213 -Wl,--warn-shared-textrel \ 214 -Wl,-O1 \ 215 -Wl,--as-needed 216 217 218 LOCAL_LDFLAGS_Release := \ 219 -Wl,-z,now \ 220 -Wl,-z,relro \ 221 -Wl,-z,noexecstack \ 222 -fPIC \ 223 -EL \ 224 -Wl,--no-keep-memory \ 225 -nostdlib \ 226 -Wl,--no-undefined \ 227 -Wl,--exclude-libs=ALL \ 228 -Wl,-O1 \ 229 -Wl,--as-needed \ 230 -Wl,--gc-sections \ 231 -Wl,--fatal-warnings \ 232 -Wl,--warn-shared-textrel 233 234 235 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 236 237 LOCAL_STATIC_LIBRARIES := 238 239 # Enable grouping to fix circular references 240 LOCAL_GROUP_STATIC_LIBRARIES := true 241 242 LOCAL_SHARED_LIBRARIES := \ 243 libstlport \ 244 libdl 245 246 # Add target alias to "gyp_all_modules" target. 247 .PHONY: gyp_all_modules 248 gyp_all_modules: sandbox_sandbox_services_gyp 249 250 # Alias gyp target name. 251 .PHONY: sandbox_services 252 sandbox_services: sandbox_sandbox_services_gyp 253 254 include $(BUILD_STATIC_LIBRARY) 255