1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := EXECUTABLES 6 LOCAL_MODULE := third_party_protobuf_protoc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 7 LOCAL_MODULE_STEM := protoc 8 LOCAL_MODULE_SUFFIX := 9 LOCAL_MODULE_TAGS := optional 10 LOCAL_IS_HOST_MODULE := true 11 LOCAL_MULTILIB := $(GYP_HOST_MULTILIB) 12 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX)) 13 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 14 15 # Make sure our deps are built first. 16 GYP_TARGET_DEPENDENCIES := \ 17 $(call intermediates-dir-for,STATIC_LIBRARIES,third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp.a 18 19 GYP_GENERATED_OUTPUTS := 20 21 # Make sure our deps and generated files are built first. 22 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 23 24 LOCAL_CPP_EXTENSION := .cc 25 LOCAL_GENERATED_SOURCES := 26 27 GYP_COPIED_SOURCE_ORIGIN_DIRS := 28 29 LOCAL_SRC_FILES := \ 30 third_party/protobuf/src/google/protobuf/compiler/code_generator.cc \ 31 third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc \ 32 third_party/protobuf/src/google/protobuf/compiler/plugin.cc \ 33 third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc \ 34 third_party/protobuf/src/google/protobuf/compiler/subprocess.cc \ 35 third_party/protobuf/src/google/protobuf/compiler/zip_writer.cc \ 36 third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_enum.cc \ 37 third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_enum_field.cc \ 38 third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_extension.cc \ 39 third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_field.cc \ 40 third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_file.cc \ 41 third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_generator.cc \ 42 third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_helpers.cc \ 43 third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message.cc \ 44 third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message_field.cc \ 45 third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc \ 46 third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_service.cc \ 47 third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_string_field.cc \ 48 third_party/protobuf/src/google/protobuf/compiler/java/java_enum.cc \ 49 third_party/protobuf/src/google/protobuf/compiler/java/java_enum_field.cc \ 50 third_party/protobuf/src/google/protobuf/compiler/java/java_extension.cc \ 51 third_party/protobuf/src/google/protobuf/compiler/java/java_field.cc \ 52 third_party/protobuf/src/google/protobuf/compiler/java/java_file.cc \ 53 third_party/protobuf/src/google/protobuf/compiler/java/java_generator.cc \ 54 third_party/protobuf/src/google/protobuf/compiler/java/java_helpers.cc \ 55 third_party/protobuf/src/google/protobuf/compiler/java/java_message.cc \ 56 third_party/protobuf/src/google/protobuf/compiler/java/java_message_field.cc \ 57 third_party/protobuf/src/google/protobuf/compiler/java/java_primitive_field.cc \ 58 third_party/protobuf/src/google/protobuf/compiler/java/java_service.cc \ 59 third_party/protobuf/src/google/protobuf/compiler/java/java_string_field.cc \ 60 third_party/protobuf/src/google/protobuf/compiler/python/python_generator.cc \ 61 third_party/protobuf/src/google/protobuf/compiler/main.cc 62 63 64 # Flags passed to both C and C++ files. 65 MY_CFLAGS_Debug := \ 66 -fstack-protector \ 67 --param=ssp-buffer-size=4 \ 68 -pthread \ 69 -fno-exceptions \ 70 -fno-strict-aliasing \ 71 -Wno-unused-parameter \ 72 -Wno-missing-field-initializers \ 73 -fvisibility=hidden \ 74 -pipe \ 75 -fPIC \ 76 -Wno-unused-local-typedefs \ 77 -Wno-format \ 78 -Os \ 79 -g \ 80 -fdata-sections \ 81 -ffunction-sections \ 82 -fomit-frame-pointer \ 83 -funwind-tables 84 85 MY_DEFS_Debug := \ 86 '-DV8_DEPRECATION_WARNINGS' \ 87 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 88 '-D_FILE_OFFSET_BITS=64' \ 89 '-DNO_TCMALLOC' \ 90 '-DDISABLE_NACL' \ 91 '-DCHROMIUM_BUILD' \ 92 '-DUSE_LIBJPEG_TURBO=1' \ 93 '-DENABLE_WEBRTC=1' \ 94 '-DUSE_PROPRIETARY_CODECS' \ 95 '-DENABLE_BROWSER_CDMS' \ 96 '-DENABLE_CONFIGURATION_POLICY' \ 97 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 98 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 99 '-DENABLE_EGLIMAGE=1' \ 100 '-DCLD_VERSION=1' \ 101 '-DENABLE_PRINTING=1' \ 102 '-DENABLE_MANAGED_USERS=1' \ 103 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 104 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 105 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 106 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 107 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 108 '-DVIDEO_HOLE=1' \ 109 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 110 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 111 '-DUSE_OPENSSL=1' \ 112 '-DUSE_OPENSSL_CERTS=1' \ 113 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 114 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 115 '-D_DEBUG' 116 117 118 # Include paths placed before CFLAGS/CPPFLAGS 119 LOCAL_C_INCLUDES_Debug := \ 120 $(gyp_shared_intermediate_dir) \ 121 $(LOCAL_PATH)/third_party/protobuf \ 122 $(LOCAL_PATH)/third_party/protobuf/src/src \ 123 $(LOCAL_PATH)/third_party/protobuf/src 124 125 126 # Flags passed to only C++ (and not C) files. 127 LOCAL_CPPFLAGS_Debug := \ 128 -fno-rtti \ 129 -fno-threadsafe-statics \ 130 -fvisibility-inlines-hidden \ 131 -Wno-deprecated 132 133 134 LOCAL_FDO_SUPPORT_Debug := false 135 136 # Flags passed to both C and C++ files. 137 MY_CFLAGS_Release := \ 138 -fstack-protector \ 139 --param=ssp-buffer-size=4 \ 140 -pthread \ 141 -fno-exceptions \ 142 -fno-strict-aliasing \ 143 -Wno-unused-parameter \ 144 -Wno-missing-field-initializers \ 145 -fvisibility=hidden \ 146 -pipe \ 147 -fPIC \ 148 -Wno-unused-local-typedefs \ 149 -Wno-format \ 150 -Os \ 151 -fno-ident \ 152 -fdata-sections \ 153 -ffunction-sections \ 154 -fomit-frame-pointer \ 155 -funwind-tables 156 157 MY_DEFS_Release := \ 158 '-DV8_DEPRECATION_WARNINGS' \ 159 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 160 '-D_FILE_OFFSET_BITS=64' \ 161 '-DNO_TCMALLOC' \ 162 '-DDISABLE_NACL' \ 163 '-DCHROMIUM_BUILD' \ 164 '-DUSE_LIBJPEG_TURBO=1' \ 165 '-DENABLE_WEBRTC=1' \ 166 '-DUSE_PROPRIETARY_CODECS' \ 167 '-DENABLE_BROWSER_CDMS' \ 168 '-DENABLE_CONFIGURATION_POLICY' \ 169 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 170 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 171 '-DENABLE_EGLIMAGE=1' \ 172 '-DCLD_VERSION=1' \ 173 '-DENABLE_PRINTING=1' \ 174 '-DENABLE_MANAGED_USERS=1' \ 175 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 176 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 177 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 178 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 179 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 180 '-DVIDEO_HOLE=1' \ 181 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 182 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 183 '-DUSE_OPENSSL=1' \ 184 '-DUSE_OPENSSL_CERTS=1' \ 185 '-DNDEBUG' \ 186 '-DNVALGRIND' \ 187 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 188 189 190 # Include paths placed before CFLAGS/CPPFLAGS 191 LOCAL_C_INCLUDES_Release := \ 192 $(gyp_shared_intermediate_dir) \ 193 $(LOCAL_PATH)/third_party/protobuf \ 194 $(LOCAL_PATH)/third_party/protobuf/src/src \ 195 $(LOCAL_PATH)/third_party/protobuf/src 196 197 198 # Flags passed to only C++ (and not C) files. 199 LOCAL_CPPFLAGS_Release := \ 200 -fno-rtti \ 201 -fno-threadsafe-statics \ 202 -fvisibility-inlines-hidden \ 203 -Wno-deprecated 204 205 206 LOCAL_FDO_SUPPORT_Release := false 207 208 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 209 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 210 # Undefine ANDROID for host modules 211 LOCAL_CFLAGS += -UANDROID 212 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 213 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 214 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 215 ### Rules for final target. 216 217 LOCAL_LDFLAGS_Debug := \ 218 -Wl,-z,now \ 219 -Wl,-z,relro \ 220 -pthread \ 221 -fPIC 222 223 224 LOCAL_LDFLAGS_Release := \ 225 -Wl,-z,now \ 226 -Wl,-z,relro \ 227 -pthread \ 228 -fPIC 229 230 231 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 232 233 LOCAL_STATIC_LIBRARIES := \ 234 third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 235 236 # Enable grouping to fix circular references 237 LOCAL_GROUP_STATIC_LIBRARIES := true 238 239 LOCAL_SHARED_LIBRARIES := 240 241 # Add target alias to "gyp_all_modules" target. 242 .PHONY: gyp_all_modules 243 gyp_all_modules: third_party_protobuf_protoc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 244 245 # Alias gyp target name. 246 .PHONY: protoc 247 protoc: third_party_protobuf_protoc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 248 249 LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir) 250 include $(BUILD_HOST_EXECUTABLE) 251