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_TAGS := optional
      9 gyp_intermediate_dir := $(call local-intermediates-dir)
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     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 	-fstack-protector \
     44 	--param=ssp-buffer-size=4 \
     45 	-fno-exceptions \
     46 	-fno-strict-aliasing \
     47 	-Wno-unused-parameter \
     48 	-Wno-missing-field-initializers \
     49 	-fvisibility=hidden \
     50 	-pipe \
     51 	-fPIC \
     52 	-Wno-format \
     53 	-fno-tree-sra \
     54 	-fuse-ld=gold \
     55 	-Wno-psabi \
     56 	-ffunction-sections \
     57 	-funwind-tables \
     58 	-g \
     59 	-fstack-protector \
     60 	-fno-short-enums \
     61 	-finline-limit=64 \
     62 	-Wa,--noexecstack \
     63 	-U_FORTIFY_SOURCE \
     64 	-Wno-extra \
     65 	-Wno-ignored-qualifiers \
     66 	-Wno-type-limits \
     67 	-Wno-address \
     68 	-Wno-format-security \
     69 	-Wno-return-type \
     70 	-Wno-sequence-point \
     71 	-Os \
     72 	-g \
     73 	-fomit-frame-pointer \
     74 	-fdata-sections \
     75 	-ffunction-sections
     76 
     77 MY_DEFS_Debug := \
     78 	'-DANGLE_DX11' \
     79 	'-D_FILE_OFFSET_BITS=64' \
     80 	'-DNO_TCMALLOC' \
     81 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     82 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     83 	'-DDISABLE_NACL' \
     84 	'-DCHROMIUM_BUILD' \
     85 	'-DUSE_LIBJPEG_TURBO=1' \
     86 	'-DUSE_PROPRIETARY_CODECS' \
     87 	'-DENABLE_CONFIGURATION_POLICY' \
     88 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
     89 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
     90 	'-DENABLE_GPU=1' \
     91 	'-DUSE_OPENSSL=1' \
     92 	'-DENABLE_EGLIMAGE=1' \
     93 	'-DENABLE_PRINTING=1' \
     94 	'-DLIBPROTOBUF_EXPORTS' \
     95 	'-DPROTOBUF_USE_DLLS' \
     96 	'-DGOOGLE_PROTOBUF_NO_RTTI' \
     97 	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
     98 	'-DANDROID' \
     99 	'-D__GNU_SOURCE=1' \
    100 	'-DUSE_STLPORT=1' \
    101 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    102 	'-DCHROME_BUILD_ID=""' \
    103 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    104 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    105 	'-D_DEBUG'
    106 
    107 
    108 # Include paths placed before CFLAGS/CPPFLAGS
    109 LOCAL_C_INCLUDES_Debug := \
    110 	$(LOCAL_PATH)/third_party/protobuf \
    111 	$(LOCAL_PATH)/third_party/protobuf/src \
    112 	$(PWD)/frameworks/wilhelm/include \
    113 	$(PWD)/bionic \
    114 	$(PWD)/external/stlport/stlport
    115 
    116 
    117 # Flags passed to only C++ (and not C) files.
    118 LOCAL_CPPFLAGS_Debug := \
    119 	-fno-rtti \
    120 	-fno-threadsafe-statics \
    121 	-fvisibility-inlines-hidden \
    122 	-Wno-deprecated \
    123 	-Wno-abi \
    124 	-Wno-error=c++0x-compat \
    125 	-Wno-non-virtual-dtor \
    126 	-Wno-sign-promo \
    127 	-Wno-non-virtual-dtor
    128 
    129 
    130 # Flags passed to both C and C++ files.
    131 MY_CFLAGS_Release := \
    132 	-fstack-protector \
    133 	--param=ssp-buffer-size=4 \
    134 	-fno-exceptions \
    135 	-fno-strict-aliasing \
    136 	-Wno-unused-parameter \
    137 	-Wno-missing-field-initializers \
    138 	-fvisibility=hidden \
    139 	-pipe \
    140 	-fPIC \
    141 	-Wno-format \
    142 	-fno-tree-sra \
    143 	-fuse-ld=gold \
    144 	-Wno-psabi \
    145 	-ffunction-sections \
    146 	-funwind-tables \
    147 	-g \
    148 	-fstack-protector \
    149 	-fno-short-enums \
    150 	-finline-limit=64 \
    151 	-Wa,--noexecstack \
    152 	-U_FORTIFY_SOURCE \
    153 	-Wno-extra \
    154 	-Wno-ignored-qualifiers \
    155 	-Wno-type-limits \
    156 	-Wno-address \
    157 	-Wno-format-security \
    158 	-Wno-return-type \
    159 	-Wno-sequence-point \
    160 	-Os \
    161 	-fno-ident \
    162 	-fdata-sections \
    163 	-ffunction-sections \
    164 	-fomit-frame-pointer
    165 
    166 MY_DEFS_Release := \
    167 	'-DANGLE_DX11' \
    168 	'-D_FILE_OFFSET_BITS=64' \
    169 	'-DNO_TCMALLOC' \
    170 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    171 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    172 	'-DDISABLE_NACL' \
    173 	'-DCHROMIUM_BUILD' \
    174 	'-DUSE_LIBJPEG_TURBO=1' \
    175 	'-DUSE_PROPRIETARY_CODECS' \
    176 	'-DENABLE_CONFIGURATION_POLICY' \
    177 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    178 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    179 	'-DENABLE_GPU=1' \
    180 	'-DUSE_OPENSSL=1' \
    181 	'-DENABLE_EGLIMAGE=1' \
    182 	'-DENABLE_PRINTING=1' \
    183 	'-DLIBPROTOBUF_EXPORTS' \
    184 	'-DPROTOBUF_USE_DLLS' \
    185 	'-DGOOGLE_PROTOBUF_NO_RTTI' \
    186 	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
    187 	'-DANDROID' \
    188 	'-D__GNU_SOURCE=1' \
    189 	'-DUSE_STLPORT=1' \
    190 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    191 	'-DCHROME_BUILD_ID=""' \
    192 	'-DNDEBUG' \
    193 	'-DNVALGRIND' \
    194 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    195 
    196 
    197 # Include paths placed before CFLAGS/CPPFLAGS
    198 LOCAL_C_INCLUDES_Release := \
    199 	$(LOCAL_PATH)/third_party/protobuf \
    200 	$(LOCAL_PATH)/third_party/protobuf/src \
    201 	$(PWD)/frameworks/wilhelm/include \
    202 	$(PWD)/bionic \
    203 	$(PWD)/external/stlport/stlport
    204 
    205 
    206 # Flags passed to only C++ (and not C) files.
    207 LOCAL_CPPFLAGS_Release := \
    208 	-fno-rtti \
    209 	-fno-threadsafe-statics \
    210 	-fvisibility-inlines-hidden \
    211 	-Wno-deprecated \
    212 	-Wno-abi \
    213 	-Wno-error=c++0x-compat \
    214 	-Wno-non-virtual-dtor \
    215 	-Wno-sign-promo \
    216 	-Wno-non-virtual-dtor
    217 
    218 
    219 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    220 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    221 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    222 ### Rules for final target.
    223 
    224 LOCAL_LDFLAGS_Debug := \
    225 	-Wl,-z,now \
    226 	-Wl,-z,relro \
    227 	-Wl,-z,noexecstack \
    228 	-fPIC \
    229 	-Wl,-z,relro \
    230 	-Wl,-z,now \
    231 	-fuse-ld=gold \
    232 	-nostdlib \
    233 	-Wl,--no-undefined \
    234 	-Wl,--exclude-libs=ALL \
    235 	-Wl,--icf=safe \
    236 	-Wl,--fatal-warnings \
    237 	-Wl,--gc-sections \
    238 	-Wl,--warn-shared-textrel \
    239 	-Wl,-O1 \
    240 	-Wl,--as-needed
    241 
    242 
    243 LOCAL_LDFLAGS_Release := \
    244 	-Wl,-z,now \
    245 	-Wl,-z,relro \
    246 	-Wl,-z,noexecstack \
    247 	-fPIC \
    248 	-Wl,-z,relro \
    249 	-Wl,-z,now \
    250 	-fuse-ld=gold \
    251 	-nostdlib \
    252 	-Wl,--no-undefined \
    253 	-Wl,--exclude-libs=ALL \
    254 	-Wl,--icf=safe \
    255 	-Wl,-O1 \
    256 	-Wl,--as-needed \
    257 	-Wl,--gc-sections \
    258 	-Wl,--fatal-warnings \
    259 	-Wl,--warn-shared-textrel
    260 
    261 
    262 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    263 
    264 LOCAL_STATIC_LIBRARIES :=
    265 
    266 # Enable grouping to fix circular references
    267 LOCAL_GROUP_STATIC_LIBRARIES := true
    268 
    269 LOCAL_SHARED_LIBRARIES := \
    270 	libstlport \
    271 	libdl
    272 
    273 # Add target alias to "gyp_all_modules" target.
    274 .PHONY: gyp_all_modules
    275 gyp_all_modules: third_party_protobuf_protobuf_lite_gyp
    276 
    277 # Alias gyp target name.
    278 .PHONY: protobuf_lite
    279 protobuf_lite: third_party_protobuf_protobuf_lite_gyp
    280 
    281 include $(BUILD_STATIC_LIBRARY)
    282