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