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 := STATIC_LIBRARIES
      6 LOCAL_MODULE := third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_IS_HOST_MODULE := true
      9 LOCAL_MULTILIB := $(GYP_HOST_MULTILIB)
     10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX))
     11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     12 
     13 # Make sure our deps are built first.
     14 GYP_TARGET_DEPENDENCIES :=
     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 	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.
     64 MY_CFLAGS_Debug := \
     65 	-fstack-protector \
     66 	--param=ssp-buffer-size=4 \
     67 	-pthread \
     68 	-fno-strict-aliasing \
     69 	-Wno-unused-parameter \
     70 	-Wno-missing-field-initializers \
     71 	-fvisibility=hidden \
     72 	-pipe \
     73 	-fPIC \
     74 	-Wno-format \
     75 	-Wheader-hygiene \
     76 	-Wno-char-subscripts \
     77 	-Wno-unneeded-internal-declaration \
     78 	-Wno-covered-switch-default \
     79 	-Wstring-conversion \
     80 	-Wno-c++11-narrowing \
     81 	-Wno-deprecated-register \
     82 	-Wno-unused-local-typedef \
     83 	-Os \
     84 	-g \
     85 	-gdwarf-4 \
     86 	-fdata-sections \
     87 	-ffunction-sections \
     88 	-fomit-frame-pointer \
     89 	-funwind-tables
     90 
     91 MY_DEFS_Debug := \
     92 	'-DV8_DEPRECATION_WARNINGS' \
     93 	'-D_FILE_OFFSET_BITS=64' \
     94 	'-DNO_TCMALLOC' \
     95 	'-DDISABLE_NACL' \
     96 	'-DCHROMIUM_BUILD' \
     97 	'-DUSE_LIBJPEG_TURBO=1' \
     98 	'-DENABLE_WEBRTC=1' \
     99 	'-DUSE_PROPRIETARY_CODECS' \
    100 	'-DENABLE_BROWSER_CDMS' \
    101 	'-DENABLE_CONFIGURATION_POLICY' \
    102 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    103 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    104 	'-DENABLE_EGLIMAGE=1' \
    105 	'-DCLD_VERSION=1' \
    106 	'-DENABLE_PRINTING=1' \
    107 	'-DENABLE_MANAGED_USERS=1' \
    108 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    109 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    110 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    111 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    112 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    113 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    114 	'-DVIDEO_HOLE=1' \
    115 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    116 	'-DGOOGLE_PROTOBUF_NO_RTTI' \
    117 	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
    118 	'-DUSE_OPENSSL=1' \
    119 	'-DUSE_OPENSSL_CERTS=1' \
    120 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    121 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    122 	'-D_DEBUG'
    123 
    124 
    125 # Include paths placed before CFLAGS/CPPFLAGS
    126 LOCAL_C_INCLUDES_Debug := \
    127 	$(gyp_shared_intermediate_dir) \
    128 	$(LOCAL_PATH)/third_party/protobuf \
    129 	$(LOCAL_PATH)/third_party/protobuf/src
    130 
    131 
    132 # Flags passed to only C++ (and not C) files.
    133 LOCAL_CPPFLAGS_Debug := \
    134 	-fno-exceptions \
    135 	-fno-rtti \
    136 	-fno-threadsafe-statics \
    137 	-fvisibility-inlines-hidden \
    138 	-Wno-deprecated \
    139 	-std=gnu++11
    140 
    141 
    142 # Flags passed to both C and C++ files.
    143 MY_CFLAGS_Release := \
    144 	-fstack-protector \
    145 	--param=ssp-buffer-size=4 \
    146 	-pthread \
    147 	-fno-strict-aliasing \
    148 	-Wno-unused-parameter \
    149 	-Wno-missing-field-initializers \
    150 	-fvisibility=hidden \
    151 	-pipe \
    152 	-fPIC \
    153 	-Wno-format \
    154 	-Wheader-hygiene \
    155 	-Wno-char-subscripts \
    156 	-Wno-unneeded-internal-declaration \
    157 	-Wno-covered-switch-default \
    158 	-Wstring-conversion \
    159 	-Wno-c++11-narrowing \
    160 	-Wno-deprecated-register \
    161 	-Wno-unused-local-typedef \
    162 	-Os \
    163 	-fno-ident \
    164 	-fdata-sections \
    165 	-ffunction-sections \
    166 	-fomit-frame-pointer \
    167 	-funwind-tables
    168 
    169 MY_DEFS_Release := \
    170 	'-DV8_DEPRECATION_WARNINGS' \
    171 	'-D_FILE_OFFSET_BITS=64' \
    172 	'-DNO_TCMALLOC' \
    173 	'-DDISABLE_NACL' \
    174 	'-DCHROMIUM_BUILD' \
    175 	'-DUSE_LIBJPEG_TURBO=1' \
    176 	'-DENABLE_WEBRTC=1' \
    177 	'-DUSE_PROPRIETARY_CODECS' \
    178 	'-DENABLE_BROWSER_CDMS' \
    179 	'-DENABLE_CONFIGURATION_POLICY' \
    180 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    181 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    182 	'-DENABLE_EGLIMAGE=1' \
    183 	'-DCLD_VERSION=1' \
    184 	'-DENABLE_PRINTING=1' \
    185 	'-DENABLE_MANAGED_USERS=1' \
    186 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    187 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    188 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    189 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    190 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    191 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    192 	'-DVIDEO_HOLE=1' \
    193 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    194 	'-DGOOGLE_PROTOBUF_NO_RTTI' \
    195 	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
    196 	'-DUSE_OPENSSL=1' \
    197 	'-DUSE_OPENSSL_CERTS=1' \
    198 	'-DNDEBUG' \
    199 	'-DNVALGRIND' \
    200 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    201 
    202 
    203 # Include paths placed before CFLAGS/CPPFLAGS
    204 LOCAL_C_INCLUDES_Release := \
    205 	$(gyp_shared_intermediate_dir) \
    206 	$(LOCAL_PATH)/third_party/protobuf \
    207 	$(LOCAL_PATH)/third_party/protobuf/src
    208 
    209 
    210 # Flags passed to only C++ (and not C) files.
    211 LOCAL_CPPFLAGS_Release := \
    212 	-fno-exceptions \
    213 	-fno-rtti \
    214 	-fno-threadsafe-statics \
    215 	-fvisibility-inlines-hidden \
    216 	-Wno-deprecated \
    217 	-std=gnu++11
    218 
    219 
    220 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    221 # Undefine ANDROID for host modules
    222 LOCAL_CFLAGS += -UANDROID
    223 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    224 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    225 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    226 ### Rules for final target.
    227 ### Set directly by aosp_build_settings.
    228 LOCAL_CLANG := true
    229 
    230 # Add target alias to "gyp_all_modules" target.
    231 .PHONY: gyp_all_modules
    232 gyp_all_modules: third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    233 
    234 # Alias gyp target name.
    235 .PHONY: protobuf_full_do_not_use
    236 protobuf_full_do_not_use: third_party_protobuf_protobuf_full_do_not_use_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
    237 
    238 include $(BUILD_HOST_STATIC_LIBRARY)
    239