1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_angle_src_preprocessor_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := 14 15GYP_GENERATED_OUTPUTS := 16 17# Make sure our deps and generated files are built first. 18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20LOCAL_GENERATED_SOURCES := 21 22GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24LOCAL_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. 39MY_CFLAGS_Debug := \ 40 -fstack-protector \ 41 --param=ssp-buffer-size=4 \ 42 \ 43 -fno-exceptions \ 44 -fno-strict-aliasing \ 45 -Wno-unused-parameter \ 46 -Wno-missing-field-initializers \ 47 -fvisibility=hidden \ 48 -pipe \ 49 -fPIC \ 50 -Wno-format \ 51 -EL \ 52 -mhard-float \ 53 -ffunction-sections \ 54 -funwind-tables \ 55 -g \ 56 -fstack-protector \ 57 -fno-short-enums \ 58 -finline-limit=64 \ 59 -Wa,--noexecstack \ 60 -U_FORTIFY_SOURCE \ 61 -Wno-extra \ 62 -Wno-ignored-qualifiers \ 63 -Wno-type-limits \ 64 -Wno-address \ 65 -Wno-format-security \ 66 -Wno-return-type \ 67 -Wno-sequence-point \ 68 -Os \ 69 -g \ 70 -fomit-frame-pointer \ 71 -fdata-sections \ 72 -ffunction-sections 73 74MY_DEFS_Debug := \ 75 '-DV8_DEPRECATION_WARNINGS' \ 76 '-DANGLE_DISABLE_TRACE' \ 77 '-DANGLE_COMPILE_OPTIMIZATION_LEVEL=D3DCOMPILE_OPTIMIZATION_LEVEL1' \ 78 '-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \ 79 '-D_FILE_OFFSET_BITS=64' \ 80 '-DNO_TCMALLOC' \ 81 '-DDISABLE_NACL' \ 82 '-DCHROMIUM_BUILD' \ 83 '-DUSE_LIBJPEG_TURBO=1' \ 84 '-DUSE_PROPRIETARY_CODECS' \ 85 '-DENABLE_CONFIGURATION_POLICY' \ 86 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 87 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 88 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 89 '-DUSE_OPENSSL=1' \ 90 '-DENABLE_EGLIMAGE=1' \ 91 '-DCLD_VERSION=1' \ 92 '-DENABLE_PRINTING=1' \ 93 '-DENABLE_MANAGED_USERS=1' \ 94 '-DANDROID' \ 95 '-D__GNU_SOURCE=1' \ 96 '-DUSE_STLPORT=1' \ 97 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 98 '-DCHROME_BUILD_ID=""' \ 99 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 100 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 101 '-D_DEBUG' 102 103 104# Include paths placed before CFLAGS/CPPFLAGS 105LOCAL_C_INCLUDES_Debug := \ 106 $(PWD)/frameworks/wilhelm/include \ 107 $(PWD)/bionic \ 108 $(PWD)/external/stlport/stlport 109 110 111# Flags passed to only C++ (and not C) files. 112LOCAL_CPPFLAGS_Debug := \ 113 -fno-rtti \ 114 -fno-threadsafe-statics \ 115 -fvisibility-inlines-hidden \ 116 -Wno-deprecated \ 117 -Wno-uninitialized \ 118 -Wno-error=c++0x-compat \ 119 -Wno-non-virtual-dtor \ 120 -Wno-sign-promo \ 121 -Wno-non-virtual-dtor 122 123 124# Flags passed to both C and C++ files. 125MY_CFLAGS_Release := \ 126 -fstack-protector \ 127 --param=ssp-buffer-size=4 \ 128 \ 129 -fno-exceptions \ 130 -fno-strict-aliasing \ 131 -Wno-unused-parameter \ 132 -Wno-missing-field-initializers \ 133 -fvisibility=hidden \ 134 -pipe \ 135 -fPIC \ 136 -Wno-format \ 137 -EL \ 138 -mhard-float \ 139 -ffunction-sections \ 140 -funwind-tables \ 141 -g \ 142 -fstack-protector \ 143 -fno-short-enums \ 144 -finline-limit=64 \ 145 -Wa,--noexecstack \ 146 -U_FORTIFY_SOURCE \ 147 -Wno-extra \ 148 -Wno-ignored-qualifiers \ 149 -Wno-type-limits \ 150 -Wno-address \ 151 -Wno-format-security \ 152 -Wno-return-type \ 153 -Wno-sequence-point \ 154 -Os \ 155 -fno-ident \ 156 -fdata-sections \ 157 -ffunction-sections \ 158 -fomit-frame-pointer 159 160MY_DEFS_Release := \ 161 '-DV8_DEPRECATION_WARNINGS' \ 162 '-DANGLE_DISABLE_TRACE' \ 163 '-DANGLE_COMPILE_OPTIMIZATION_LEVEL=D3DCOMPILE_OPTIMIZATION_LEVEL1' \ 164 '-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }' \ 165 '-D_FILE_OFFSET_BITS=64' \ 166 '-DNO_TCMALLOC' \ 167 '-DDISABLE_NACL' \ 168 '-DCHROMIUM_BUILD' \ 169 '-DUSE_LIBJPEG_TURBO=1' \ 170 '-DUSE_PROPRIETARY_CODECS' \ 171 '-DENABLE_CONFIGURATION_POLICY' \ 172 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 173 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 174 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 175 '-DUSE_OPENSSL=1' \ 176 '-DENABLE_EGLIMAGE=1' \ 177 '-DCLD_VERSION=1' \ 178 '-DENABLE_PRINTING=1' \ 179 '-DENABLE_MANAGED_USERS=1' \ 180 '-DANDROID' \ 181 '-D__GNU_SOURCE=1' \ 182 '-DUSE_STLPORT=1' \ 183 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 184 '-DCHROME_BUILD_ID=""' \ 185 '-DNDEBUG' \ 186 '-DNVALGRIND' \ 187 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 188 189 190# Include paths placed before CFLAGS/CPPFLAGS 191LOCAL_C_INCLUDES_Release := \ 192 $(PWD)/frameworks/wilhelm/include \ 193 $(PWD)/bionic \ 194 $(PWD)/external/stlport/stlport 195 196 197# Flags passed to only C++ (and not C) files. 198LOCAL_CPPFLAGS_Release := \ 199 -fno-rtti \ 200 -fno-threadsafe-statics \ 201 -fvisibility-inlines-hidden \ 202 -Wno-deprecated \ 203 -Wno-uninitialized \ 204 -Wno-error=c++0x-compat \ 205 -Wno-non-virtual-dtor \ 206 -Wno-sign-promo \ 207 -Wno-non-virtual-dtor 208 209 210LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 211LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 212LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 213### Rules for final target. 214 215LOCAL_LDFLAGS_Debug := \ 216 -Wl,-z,now \ 217 -Wl,-z,relro \ 218 -Wl,-z,noexecstack \ 219 -fPIC \ 220 -EL \ 221 -Wl,--no-keep-memory \ 222 -nostdlib \ 223 -Wl,--no-undefined \ 224 -Wl,--exclude-libs=ALL \ 225 -Wl,--fatal-warnings \ 226 -Wl,--gc-sections \ 227 -Wl,--warn-shared-textrel \ 228 -Wl,-O1 \ 229 -Wl,--as-needed 230 231 232LOCAL_LDFLAGS_Release := \ 233 -Wl,-z,now \ 234 -Wl,-z,relro \ 235 -Wl,-z,noexecstack \ 236 -fPIC \ 237 -EL \ 238 -Wl,--no-keep-memory \ 239 -nostdlib \ 240 -Wl,--no-undefined \ 241 -Wl,--exclude-libs=ALL \ 242 -Wl,-O1 \ 243 -Wl,--as-needed \ 244 -Wl,--gc-sections \ 245 -Wl,--fatal-warnings \ 246 -Wl,--warn-shared-textrel 247 248 249LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 250 251LOCAL_STATIC_LIBRARIES := 252 253# Enable grouping to fix circular references 254LOCAL_GROUP_STATIC_LIBRARIES := true 255 256LOCAL_SHARED_LIBRARIES := \ 257 libstlport \ 258 libdl 259 260# Add target alias to "gyp_all_modules" target. 261.PHONY: gyp_all_modules 262gyp_all_modules: third_party_angle_src_preprocessor_gyp 263 264# Alias gyp target name. 265.PHONY: preprocessor 266preprocessor: third_party_angle_src_preprocessor_gyp 267 268include $(BUILD_STATIC_LIBRARY) 269