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