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