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