Home | History | Annotate | Download | only in protobuf
      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 	 \
     69 	-pthread \
     70 	-fno-exceptions \
     71 	-fno-strict-aliasing \
     72 	-Wno-unused-parameter \
     73 	-Wno-missing-field-initializers \
     74 	-fvisibility=hidden \
     75 	-pipe \
     76 	-fPIC \
     77 	-Wno-unused-local-typedefs \
     78 	-Wno-format \
     79 	-Os \
     80 	-g \
     81 	-fdata-sections \
     82 	-ffunction-sections \
     83 	-fomit-frame-pointer \
     84 	-funwind-tables
     85 
     86 MY_DEFS_Debug := \
     87 	'-DV8_DEPRECATION_WARNINGS' \
     88 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
     89 	'-D_FILE_OFFSET_BITS=64' \
     90 	'-DNO_TCMALLOC' \
     91 	'-DDISABLE_NACL' \
     92 	'-DCHROMIUM_BUILD' \
     93 	'-DUSE_LIBJPEG_TURBO=1' \
     94 	'-DENABLE_WEBRTC=1' \
     95 	'-DUSE_PROPRIETARY_CODECS' \
     96 	'-DENABLE_BROWSER_CDMS' \
     97 	'-DENABLE_CONFIGURATION_POLICY' \
     98 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     99 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    100 	'-DENABLE_EGLIMAGE=1' \
    101 	'-DCLD_VERSION=1' \
    102 	'-DENABLE_PRINTING=1' \
    103 	'-DENABLE_MANAGED_USERS=1' \
    104 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    105 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    106 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    107 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    108 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    109 	'-DVIDEO_HOLE=1' \
    110 	'-DGOOGLE_PROTOBUF_NO_RTTI' \
    111 	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
    112 	'-DUSE_OPENSSL=1' \
    113 	'-DUSE_OPENSSL_CERTS=1' \
    114 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    115 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    116 	'-D_DEBUG'
    117 
    118 
    119 # Include paths placed before CFLAGS/CPPFLAGS
    120 LOCAL_C_INCLUDES_Debug := \
    121 	$(gyp_shared_intermediate_dir) \
    122 	$(LOCAL_PATH)/third_party/protobuf \
    123 	$(LOCAL_PATH)/third_party/protobuf/src/src \
    124 	$(LOCAL_PATH)/third_party/protobuf/src
    125 
    126 
    127 # Flags passed to only C++ (and not C) files.
    128 LOCAL_CPPFLAGS_Debug := \
    129 	-fno-rtti \
    130 	-fno-threadsafe-statics \
    131 	-fvisibility-inlines-hidden \
    132 	-Wno-deprecated
    133 
    134 
    135 LOCAL_FDO_SUPPORT_Debug := false
    136 
    137 # Flags passed to both C and C++ files.
    138 MY_CFLAGS_Release := \
    139 	-fstack-protector \
    140 	--param=ssp-buffer-size=4 \
    141 	 \
    142 	-pthread \
    143 	-fno-exceptions \
    144 	-fno-strict-aliasing \
    145 	-Wno-unused-parameter \
    146 	-Wno-missing-field-initializers \
    147 	-fvisibility=hidden \
    148 	-pipe \
    149 	-fPIC \
    150 	-Wno-unused-local-typedefs \
    151 	-Wno-format \
    152 	-Os \
    153 	-fno-ident \
    154 	-fdata-sections \
    155 	-ffunction-sections \
    156 	-fomit-frame-pointer \
    157 	-funwind-tables
    158 
    159 MY_DEFS_Release := \
    160 	'-DV8_DEPRECATION_WARNINGS' \
    161 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    162 	'-D_FILE_OFFSET_BITS=64' \
    163 	'-DNO_TCMALLOC' \
    164 	'-DDISABLE_NACL' \
    165 	'-DCHROMIUM_BUILD' \
    166 	'-DUSE_LIBJPEG_TURBO=1' \
    167 	'-DENABLE_WEBRTC=1' \
    168 	'-DUSE_PROPRIETARY_CODECS' \
    169 	'-DENABLE_BROWSER_CDMS' \
    170 	'-DENABLE_CONFIGURATION_POLICY' \
    171 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    172 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    173 	'-DENABLE_EGLIMAGE=1' \
    174 	'-DCLD_VERSION=1' \
    175 	'-DENABLE_PRINTING=1' \
    176 	'-DENABLE_MANAGED_USERS=1' \
    177 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    178 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    179 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    180 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    181 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    182 	'-DVIDEO_HOLE=1' \
    183 	'-DGOOGLE_PROTOBUF_NO_RTTI' \
    184 	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
    185 	'-DUSE_OPENSSL=1' \
    186 	'-DUSE_OPENSSL_CERTS=1' \
    187 	'-DNDEBUG' \
    188 	'-DNVALGRIND' \
    189 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    190 
    191 
    192 # Include paths placed before CFLAGS/CPPFLAGS
    193 LOCAL_C_INCLUDES_Release := \
    194 	$(gyp_shared_intermediate_dir) \
    195 	$(LOCAL_PATH)/third_party/protobuf \
    196 	$(LOCAL_PATH)/third_party/protobuf/src/src \
    197 	$(LOCAL_PATH)/third_party/protobuf/src
    198 
    199 
    200 # Flags passed to only C++ (and not C) files.
    201 LOCAL_CPPFLAGS_Release := \
    202 	-fno-rtti \
    203 	-fno-threadsafe-statics \
    204 	-fvisibility-inlines-hidden \
    205 	-Wno-deprecated
    206 
    207 
    208 LOCAL_FDO_SUPPORT_Release := false
    209 
    210 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    211 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
    212 # Undefine ANDROID for host modules
    213 LOCAL_CFLAGS += -UANDROID
    214 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    215 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    216 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    217 ### Rules for final target.
    218 
    219 LOCAL_LDFLAGS_Debug := \
    220 	-Wl,-z,now \
    221 	-Wl,-z,relro \
    222 	-pthread \
    223 	-fPIC
    224 
    225 
    226 LOCAL_LDFLAGS_Release := \
    227 	-Wl,-z,now \
    228 	-Wl,-z,relro \
    229 	-pthread \
    230 	-fPIC
    231 
    232 
    233 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    234 
    235 LOCAL_STATIC_LIBRARIES := \
    236 	third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    237 
    238 # Enable grouping to fix circular references
    239 LOCAL_GROUP_STATIC_LIBRARIES := true
    240 
    241 LOCAL_SHARED_LIBRARIES :=
    242 
    243 # Add target alias to "gyp_all_modules" target.
    244 .PHONY: gyp_all_modules
    245 gyp_all_modules: third_party_protobuf_protoc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    246 
    247 # Alias gyp target name.
    248 .PHONY: protoc
    249 protoc: third_party_protobuf_protoc_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    250 
    251 LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir)
    252 include $(BUILD_HOST_EXECUTABLE)
    253