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