protobuf_full_do_not_use.host.linux-x86.mk revision 5d1f7b1de12d16ceb2c938c56701a3e8bfa558f7
1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_protobuf_protobuf_full_do_not_use_host_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9LOCAL_IS_HOST_MODULE := true 10gyp_intermediate_dir := $(call local-intermediates-dir) 11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 12 13# Make sure our deps are built first. 14GYP_TARGET_DEPENDENCIES := 15 16GYP_GENERATED_OUTPUTS := 17 18# Make sure our deps and generated files are built first. 19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21LOCAL_CPP_EXTENSION := .cc 22LOCAL_GENERATED_SOURCES := 23 24GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26LOCAL_SRC_FILES := \ 27 third_party/protobuf/src/google/protobuf/compiler/java/java_doc_comment.cc \ 28 third_party/protobuf/src/google/protobuf/stubs/strutil.cc \ 29 third_party/protobuf/src/google/protobuf/stubs/substitute.cc \ 30 third_party/protobuf/src/google/protobuf/stubs/stringprintf.cc \ 31 third_party/protobuf/src/google/protobuf/stubs/structurally_valid.cc \ 32 third_party/protobuf/src/google/protobuf/descriptor.cc \ 33 third_party/protobuf/src/google/protobuf/descriptor.pb.cc \ 34 third_party/protobuf/src/google/protobuf/descriptor_database.cc \ 35 third_party/protobuf/src/google/protobuf/dynamic_message.cc \ 36 third_party/protobuf/src/google/protobuf/extension_set.cc \ 37 third_party/protobuf/src/google/protobuf/extension_set_heavy.cc \ 38 third_party/protobuf/src/google/protobuf/generated_message_reflection.cc \ 39 third_party/protobuf/src/google/protobuf/message.cc \ 40 third_party/protobuf/src/google/protobuf/reflection_ops.cc \ 41 third_party/protobuf/src/google/protobuf/service.cc \ 42 third_party/protobuf/src/google/protobuf/text_format.cc \ 43 third_party/protobuf/src/google/protobuf/wire_format.cc \ 44 third_party/protobuf/src/google/protobuf/io/printer.cc \ 45 third_party/protobuf/src/google/protobuf/io/tokenizer.cc \ 46 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc \ 47 third_party/protobuf/src/google/protobuf/compiler/importer.cc \ 48 third_party/protobuf/src/google/protobuf/compiler/parser.cc \ 49 third_party/protobuf/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc \ 50 third_party/protobuf/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc \ 51 third_party/protobuf/src/google/protobuf/unknown_field_set.cc \ 52 third_party/protobuf/src/google/protobuf/stubs/common.cc \ 53 third_party/protobuf/src/google/protobuf/stubs/once.cc \ 54 third_party/protobuf/src/google/protobuf/generated_message_util.cc \ 55 third_party/protobuf/src/google/protobuf/message_lite.cc \ 56 third_party/protobuf/src/google/protobuf/repeated_field.cc \ 57 third_party/protobuf/src/google/protobuf/wire_format_lite.cc \ 58 third_party/protobuf/src/google/protobuf/io/coded_stream.cc \ 59 third_party/protobuf/src/google/protobuf/io/zero_copy_stream.cc \ 60 third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc 61 62 63# Flags passed to both C and C++ files. 64MY_CFLAGS_Debug := \ 65 -fstack-protector \ 66 --param=ssp-buffer-size=4 \ 67 -pthread \ 68 -fno-exceptions \ 69 -fno-strict-aliasing \ 70 -Wno-unused-parameter \ 71 -Wno-missing-field-initializers \ 72 -fvisibility=hidden \ 73 -pipe \ 74 -fPIC \ 75 -Wno-format \ 76 -Os \ 77 -g \ 78 -fomit-frame-pointer \ 79 -fdata-sections \ 80 -ffunction-sections \ 81 -funwind-tables 82 83MY_DEFS_Debug := \ 84 '-DV8_DEPRECATION_WARNINGS' \ 85 '-D_FILE_OFFSET_BITS=64' \ 86 '-DNO_TCMALLOC' \ 87 '-DDISABLE_NACL' \ 88 '-DCHROMIUM_BUILD' \ 89 '-DUSE_LIBJPEG_TURBO=1' \ 90 '-DUSE_PROPRIETARY_CODECS' \ 91 '-DENABLE_CONFIGURATION_POLICY' \ 92 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 93 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 94 '-DUSE_OPENSSL=1' \ 95 '-DENABLE_EGLIMAGE=1' \ 96 '-DCLD_VERSION=1' \ 97 '-DENABLE_PRINTING=1' \ 98 '-DENABLE_MANAGED_USERS=1' \ 99 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 100 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 101 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 102 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 103 '-D_DEBUG' 104 105 106# Include paths placed before CFLAGS/CPPFLAGS 107LOCAL_C_INCLUDES_Debug := \ 108 $(LOCAL_PATH)/third_party/protobuf \ 109 $(LOCAL_PATH)/third_party/protobuf/src 110 111 112# Flags passed to only C++ (and not C) files. 113LOCAL_CPPFLAGS_Debug := \ 114 -fno-rtti \ 115 -fno-threadsafe-statics \ 116 -fvisibility-inlines-hidden \ 117 -Wno-deprecated 118 119 120# Flags passed to both C and C++ files. 121MY_CFLAGS_Release := \ 122 -fstack-protector \ 123 --param=ssp-buffer-size=4 \ 124 -pthread \ 125 -fno-exceptions \ 126 -fno-strict-aliasing \ 127 -Wno-unused-parameter \ 128 -Wno-missing-field-initializers \ 129 -fvisibility=hidden \ 130 -pipe \ 131 -fPIC \ 132 -Wno-format \ 133 -Os \ 134 -fno-ident \ 135 -fdata-sections \ 136 -ffunction-sections \ 137 -fomit-frame-pointer \ 138 -funwind-tables 139 140MY_DEFS_Release := \ 141 '-DV8_DEPRECATION_WARNINGS' \ 142 '-D_FILE_OFFSET_BITS=64' \ 143 '-DNO_TCMALLOC' \ 144 '-DDISABLE_NACL' \ 145 '-DCHROMIUM_BUILD' \ 146 '-DUSE_LIBJPEG_TURBO=1' \ 147 '-DUSE_PROPRIETARY_CODECS' \ 148 '-DENABLE_CONFIGURATION_POLICY' \ 149 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 150 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 151 '-DUSE_OPENSSL=1' \ 152 '-DENABLE_EGLIMAGE=1' \ 153 '-DCLD_VERSION=1' \ 154 '-DENABLE_PRINTING=1' \ 155 '-DENABLE_MANAGED_USERS=1' \ 156 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 157 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 158 '-DNDEBUG' \ 159 '-DNVALGRIND' \ 160 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 161 162 163# Include paths placed before CFLAGS/CPPFLAGS 164LOCAL_C_INCLUDES_Release := \ 165 $(LOCAL_PATH)/third_party/protobuf \ 166 $(LOCAL_PATH)/third_party/protobuf/src 167 168 169# Flags passed to only C++ (and not C) files. 170LOCAL_CPPFLAGS_Release := \ 171 -fno-rtti \ 172 -fno-threadsafe-statics \ 173 -fvisibility-inlines-hidden \ 174 -Wno-deprecated 175 176 177LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 178# Undefine ANDROID for host modules 179LOCAL_CFLAGS += -UANDROID 180LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 181LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 182### Rules for final target. 183 184LOCAL_LDFLAGS_Debug := \ 185 -Wl,-z,now \ 186 -Wl,-z,relro \ 187 -pthread \ 188 -fPIC 189 190 191LOCAL_LDFLAGS_Release := \ 192 -Wl,-z,now \ 193 -Wl,-z,relro \ 194 -pthread \ 195 -fPIC 196 197 198LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 199 200LOCAL_STATIC_LIBRARIES := 201 202# Enable grouping to fix circular references 203LOCAL_GROUP_STATIC_LIBRARIES := true 204 205LOCAL_SHARED_LIBRARIES := 206 207# Add target alias to "gyp_all_modules" target. 208.PHONY: gyp_all_modules 209gyp_all_modules: third_party_protobuf_protobuf_full_do_not_use_host_gyp 210 211# Alias gyp target name. 212.PHONY: protobuf_full_do_not_use 213protobuf_full_do_not_use: third_party_protobuf_protobuf_full_do_not_use_host_gyp 214 215include $(BUILD_HOST_STATIC_LIBRARY) 216