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