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