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_lite_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
      9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES :=
     14 
     15 GYP_GENERATED_OUTPUTS :=
     16 
     17 # Make sure our deps and generated files are built first.
     18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     19 
     20 LOCAL_CPP_EXTENSION := .cc
     21 LOCAL_GENERATED_SOURCES :=
     22 
     23 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     24 
     25 LOCAL_SRC_FILES := \
     26 	third_party/protobuf/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc \
     27 	third_party/protobuf/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc \
     28 	third_party/protobuf/src/google/protobuf/unknown_field_set.cc \
     29 	third_party/protobuf/src/google/protobuf/stubs/common.cc \
     30 	third_party/protobuf/src/google/protobuf/stubs/once.cc \
     31 	third_party/protobuf/src/google/protobuf/extension_set.cc \
     32 	third_party/protobuf/src/google/protobuf/generated_message_util.cc \
     33 	third_party/protobuf/src/google/protobuf/message_lite.cc \
     34 	third_party/protobuf/src/google/protobuf/repeated_field.cc \
     35 	third_party/protobuf/src/google/protobuf/wire_format_lite.cc \
     36 	third_party/protobuf/src/google/protobuf/io/coded_stream.cc \
     37 	third_party/protobuf/src/google/protobuf/io/zero_copy_stream.cc \
     38 	third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc
     39 
     40 
     41 # Flags passed to both C and C++ files.
     42 MY_CFLAGS_Debug := \
     43 	--param=ssp-buffer-size=4 \
     44 	-fno-strict-aliasing \
     45 	-Wno-unused-parameter \
     46 	-Wno-missing-field-initializers \
     47 	-fvisibility=hidden \
     48 	-pipe \
     49 	-fPIC \
     50 	-Wno-unused-local-typedefs \
     51 	-Wno-format \
     52 	-msse2 \
     53 	-mfpmath=sse \
     54 	-mmmx \
     55 	-m32 \
     56 	-ffunction-sections \
     57 	-funwind-tables \
     58 	-g \
     59 	-fno-short-enums \
     60 	-finline-limit=64 \
     61 	-Wa,--noexecstack \
     62 	-U_FORTIFY_SOURCE \
     63 	-Wno-extra \
     64 	-Wno-ignored-qualifiers \
     65 	-Wno-type-limits \
     66 	-Wno-unused-but-set-variable \
     67 	-fno-stack-protector \
     68 	-Wno-address \
     69 	-Wno-format-security \
     70 	-Wno-return-type \
     71 	-Wno-sequence-point \
     72 	-Os \
     73 	-g \
     74 	-gdwarf-4 \
     75 	-fdata-sections \
     76 	-ffunction-sections \
     77 	-fomit-frame-pointer \
     78 	-funwind-tables
     79 
     80 MY_DEFS_Debug := \
     81 	'-DV8_DEPRECATION_WARNINGS' \
     82 	'-D_FILE_OFFSET_BITS=64' \
     83 	'-DNO_TCMALLOC' \
     84 	'-DDISABLE_NACL' \
     85 	'-DCHROMIUM_BUILD' \
     86 	'-DUSE_LIBJPEG_TURBO=1' \
     87 	'-DENABLE_WEBRTC=1' \
     88 	'-DUSE_PROPRIETARY_CODECS' \
     89 	'-DENABLE_BROWSER_CDMS' \
     90 	'-DENABLE_CONFIGURATION_POLICY' \
     91 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     92 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     93 	'-DENABLE_EGLIMAGE=1' \
     94 	'-DCLD_VERSION=1' \
     95 	'-DENABLE_PRINTING=1' \
     96 	'-DENABLE_MANAGED_USERS=1' \
     97 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     98 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     99 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    100 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    101 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    102 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    103 	'-DVIDEO_HOLE=1' \
    104 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    105 	'-DLIBPROTOBUF_EXPORTS' \
    106 	'-DPROTOBUF_USE_DLLS' \
    107 	'-DGOOGLE_PROTOBUF_NO_RTTI' \
    108 	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
    109 	'-DUSE_OPENSSL=1' \
    110 	'-DUSE_OPENSSL_CERTS=1' \
    111 	'-DANDROID' \
    112 	'-D__GNU_SOURCE=1' \
    113 	'-DUSE_STLPORT=1' \
    114 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    115 	'-DCHROME_BUILD_ID=""' \
    116 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    117 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    118 	'-D_DEBUG'
    119 
    120 
    121 # Include paths placed before CFLAGS/CPPFLAGS
    122 LOCAL_C_INCLUDES_Debug := \
    123 	$(gyp_shared_intermediate_dir) \
    124 	$(LOCAL_PATH)/third_party/protobuf \
    125 	$(LOCAL_PATH)/third_party/protobuf/src \
    126 	$(PWD)/frameworks/wilhelm/include \
    127 	$(PWD)/bionic \
    128 	$(PWD)/external/stlport/stlport
    129 
    130 
    131 # Flags passed to only C++ (and not C) files.
    132 LOCAL_CPPFLAGS_Debug := \
    133 	-fno-exceptions \
    134 	-fno-rtti \
    135 	-fno-threadsafe-statics \
    136 	-fvisibility-inlines-hidden \
    137 	-Wno-deprecated \
    138 	-std=gnu++11 \
    139 	-Wno-narrowing \
    140 	-Wno-literal-suffix \
    141 	-Wno-non-virtual-dtor \
    142 	-Wno-sign-promo \
    143 	-Wno-non-virtual-dtor
    144 
    145 
    146 # Flags passed to both C and C++ files.
    147 MY_CFLAGS_Release := \
    148 	--param=ssp-buffer-size=4 \
    149 	-fno-strict-aliasing \
    150 	-Wno-unused-parameter \
    151 	-Wno-missing-field-initializers \
    152 	-fvisibility=hidden \
    153 	-pipe \
    154 	-fPIC \
    155 	-Wno-unused-local-typedefs \
    156 	-Wno-format \
    157 	-msse2 \
    158 	-mfpmath=sse \
    159 	-mmmx \
    160 	-m32 \
    161 	-ffunction-sections \
    162 	-funwind-tables \
    163 	-g \
    164 	-fno-short-enums \
    165 	-finline-limit=64 \
    166 	-Wa,--noexecstack \
    167 	-U_FORTIFY_SOURCE \
    168 	-Wno-extra \
    169 	-Wno-ignored-qualifiers \
    170 	-Wno-type-limits \
    171 	-Wno-unused-but-set-variable \
    172 	-fno-stack-protector \
    173 	-Wno-address \
    174 	-Wno-format-security \
    175 	-Wno-return-type \
    176 	-Wno-sequence-point \
    177 	-Os \
    178 	-fno-ident \
    179 	-fdata-sections \
    180 	-ffunction-sections \
    181 	-fomit-frame-pointer \
    182 	-funwind-tables
    183 
    184 MY_DEFS_Release := \
    185 	'-DV8_DEPRECATION_WARNINGS' \
    186 	'-D_FILE_OFFSET_BITS=64' \
    187 	'-DNO_TCMALLOC' \
    188 	'-DDISABLE_NACL' \
    189 	'-DCHROMIUM_BUILD' \
    190 	'-DUSE_LIBJPEG_TURBO=1' \
    191 	'-DENABLE_WEBRTC=1' \
    192 	'-DUSE_PROPRIETARY_CODECS' \
    193 	'-DENABLE_BROWSER_CDMS' \
    194 	'-DENABLE_CONFIGURATION_POLICY' \
    195 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    196 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    197 	'-DENABLE_EGLIMAGE=1' \
    198 	'-DCLD_VERSION=1' \
    199 	'-DENABLE_PRINTING=1' \
    200 	'-DENABLE_MANAGED_USERS=1' \
    201 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    202 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    203 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    204 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    205 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    206 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    207 	'-DVIDEO_HOLE=1' \
    208 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    209 	'-DLIBPROTOBUF_EXPORTS' \
    210 	'-DPROTOBUF_USE_DLLS' \
    211 	'-DGOOGLE_PROTOBUF_NO_RTTI' \
    212 	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
    213 	'-DUSE_OPENSSL=1' \
    214 	'-DUSE_OPENSSL_CERTS=1' \
    215 	'-DANDROID' \
    216 	'-D__GNU_SOURCE=1' \
    217 	'-DUSE_STLPORT=1' \
    218 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    219 	'-DCHROME_BUILD_ID=""' \
    220 	'-DNDEBUG' \
    221 	'-DNVALGRIND' \
    222 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    223 
    224 
    225 # Include paths placed before CFLAGS/CPPFLAGS
    226 LOCAL_C_INCLUDES_Release := \
    227 	$(gyp_shared_intermediate_dir) \
    228 	$(LOCAL_PATH)/third_party/protobuf \
    229 	$(LOCAL_PATH)/third_party/protobuf/src \
    230 	$(PWD)/frameworks/wilhelm/include \
    231 	$(PWD)/bionic \
    232 	$(PWD)/external/stlport/stlport
    233 
    234 
    235 # Flags passed to only C++ (and not C) files.
    236 LOCAL_CPPFLAGS_Release := \
    237 	-fno-exceptions \
    238 	-fno-rtti \
    239 	-fno-threadsafe-statics \
    240 	-fvisibility-inlines-hidden \
    241 	-Wno-deprecated \
    242 	-std=gnu++11 \
    243 	-Wno-narrowing \
    244 	-Wno-literal-suffix \
    245 	-Wno-non-virtual-dtor \
    246 	-Wno-sign-promo \
    247 	-Wno-non-virtual-dtor
    248 
    249 
    250 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    251 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    252 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    253 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    254 ### Rules for final target.
    255 
    256 LOCAL_SHARED_LIBRARIES := \
    257 	libstlport \
    258 	libdl
    259 
    260 # Add target alias to "gyp_all_modules" target.
    261 .PHONY: gyp_all_modules
    262 gyp_all_modules: third_party_protobuf_protobuf_lite_gyp
    263 
    264 # Alias gyp target name.
    265 .PHONY: protobuf_lite
    266 protobuf_lite: third_party_protobuf_protobuf_lite_gyp
    267 
    268 include $(BUILD_STATIC_LIBRARY)
    269