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_host_gyp
      7 LOCAL_MODULE_STEM := protoc
      8 LOCAL_MODULE_SUFFIX := 
      9 LOCAL_MODULE_TAGS := optional
     10 LOCAL_IS_HOST_MODULE := true
     11 gyp_intermediate_dir := $(call local-intermediates-dir)
     12 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     13 
     14 # Make sure our deps are built first.
     15 GYP_TARGET_DEPENDENCIES := \
     16 	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_protobuf_protobuf_full_do_not_use_host_gyp,true)/third_party_protobuf_protobuf_full_do_not_use_host_gyp.a
     17 
     18 GYP_GENERATED_OUTPUTS :=
     19 
     20 # Make sure our deps and generated files are built first.
     21 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     22 
     23 LOCAL_CPP_EXTENSION := .cc
     24 LOCAL_GENERATED_SOURCES :=
     25 
     26 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     27 
     28 LOCAL_SRC_FILES := \
     29 	third_party/protobuf/src/google/protobuf/compiler/code_generator.cc \
     30 	third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc \
     31 	third_party/protobuf/src/google/protobuf/compiler/plugin.cc \
     32 	third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc \
     33 	third_party/protobuf/src/google/protobuf/compiler/subprocess.cc \
     34 	third_party/protobuf/src/google/protobuf/compiler/zip_writer.cc \
     35 	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_enum.cc \
     36 	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_enum_field.cc \
     37 	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_extension.cc \
     38 	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_field.cc \
     39 	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_file.cc \
     40 	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_generator.cc \
     41 	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_helpers.cc \
     42 	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message.cc \
     43 	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_message_field.cc \
     44 	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc \
     45 	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_service.cc \
     46 	third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_string_field.cc \
     47 	third_party/protobuf/src/google/protobuf/compiler/java/java_enum.cc \
     48 	third_party/protobuf/src/google/protobuf/compiler/java/java_enum_field.cc \
     49 	third_party/protobuf/src/google/protobuf/compiler/java/java_extension.cc \
     50 	third_party/protobuf/src/google/protobuf/compiler/java/java_field.cc \
     51 	third_party/protobuf/src/google/protobuf/compiler/java/java_file.cc \
     52 	third_party/protobuf/src/google/protobuf/compiler/java/java_generator.cc \
     53 	third_party/protobuf/src/google/protobuf/compiler/java/java_helpers.cc \
     54 	third_party/protobuf/src/google/protobuf/compiler/java/java_message.cc \
     55 	third_party/protobuf/src/google/protobuf/compiler/java/java_message_field.cc \
     56 	third_party/protobuf/src/google/protobuf/compiler/java/java_primitive_field.cc \
     57 	third_party/protobuf/src/google/protobuf/compiler/java/java_service.cc \
     58 	third_party/protobuf/src/google/protobuf/compiler/java/java_string_field.cc \
     59 	third_party/protobuf/src/google/protobuf/compiler/python/python_generator.cc \
     60 	third_party/protobuf/src/google/protobuf/compiler/main.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-exceptions \
     69 	-fno-strict-aliasing \
     70 	-Wno-unused-parameter \
     71 	-Wno-missing-field-initializers \
     72 	-fvisibility=hidden \
     73 	-pipe \
     74 	-fPIC \
     75 	-Wno-format \
     76 	-Os \
     77 	-g \
     78 	-fomit-frame-pointer \
     79 	-fdata-sections \
     80 	-ffunction-sections
     81 
     82 MY_DEFS_Debug := \
     83 	'-DANGLE_DX11' \
     84 	'-D_FILE_OFFSET_BITS=64' \
     85 	'-DNO_TCMALLOC' \
     86 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     87 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     88 	'-DDISABLE_NACL' \
     89 	'-DCHROMIUM_BUILD' \
     90 	'-DUSE_LIBJPEG_TURBO=1' \
     91 	'-DUSE_PROPRIETARY_CODECS' \
     92 	'-DENABLE_CONFIGURATION_POLICY' \
     93 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
     94 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
     95 	'-DENABLE_GPU=1' \
     96 	'-DUSE_OPENSSL=1' \
     97 	'-DENABLE_EGLIMAGE=1' \
     98 	'-DENABLE_PRINTING=1' \
     99 	'-DGOOGLE_PROTOBUF_NO_RTTI' \
    100 	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
    101 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    102 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    103 	'-D_DEBUG'
    104 
    105 
    106 # Include paths placed before CFLAGS/CPPFLAGS
    107 LOCAL_C_INCLUDES_Debug := \
    108 	$(LOCAL_PATH)/third_party/protobuf \
    109 	$(LOCAL_PATH)/third_party/protobuf/src/src \
    110 	$(LOCAL_PATH)/third_party/protobuf/src
    111 
    112 
    113 # Flags passed to only C++ (and not C) files.
    114 LOCAL_CPPFLAGS_Debug := \
    115 	-fno-rtti \
    116 	-fno-threadsafe-statics \
    117 	-fvisibility-inlines-hidden \
    118 	-Wno-deprecated
    119 
    120 
    121 # Flags passed to both C and C++ files.
    122 MY_CFLAGS_Release := \
    123 	-fstack-protector \
    124 	--param=ssp-buffer-size=4 \
    125 	-pthread \
    126 	-fno-exceptions \
    127 	-fno-strict-aliasing \
    128 	-Wno-unused-parameter \
    129 	-Wno-missing-field-initializers \
    130 	-fvisibility=hidden \
    131 	-pipe \
    132 	-fPIC \
    133 	-Wno-format \
    134 	-Os \
    135 	-fno-ident \
    136 	-fdata-sections \
    137 	-ffunction-sections \
    138 	-fomit-frame-pointer \
    139 	-fno-unwind-tables \
    140 	-fno-asynchronous-unwind-tables
    141 
    142 MY_DEFS_Release := \
    143 	'-DANGLE_DX11' \
    144 	'-D_FILE_OFFSET_BITS=64' \
    145 	'-DNO_TCMALLOC' \
    146 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    147 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    148 	'-DDISABLE_NACL' \
    149 	'-DCHROMIUM_BUILD' \
    150 	'-DUSE_LIBJPEG_TURBO=1' \
    151 	'-DUSE_PROPRIETARY_CODECS' \
    152 	'-DENABLE_CONFIGURATION_POLICY' \
    153 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    154 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    155 	'-DENABLE_GPU=1' \
    156 	'-DUSE_OPENSSL=1' \
    157 	'-DENABLE_EGLIMAGE=1' \
    158 	'-DENABLE_PRINTING=1' \
    159 	'-DGOOGLE_PROTOBUF_NO_RTTI' \
    160 	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
    161 	'-DNDEBUG' \
    162 	'-DNVALGRIND' \
    163 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    164 
    165 
    166 # Include paths placed before CFLAGS/CPPFLAGS
    167 LOCAL_C_INCLUDES_Release := \
    168 	$(LOCAL_PATH)/third_party/protobuf \
    169 	$(LOCAL_PATH)/third_party/protobuf/src/src \
    170 	$(LOCAL_PATH)/third_party/protobuf/src
    171 
    172 
    173 # Flags passed to only C++ (and not C) files.
    174 LOCAL_CPPFLAGS_Release := \
    175 	-fno-rtti \
    176 	-fno-threadsafe-statics \
    177 	-fvisibility-inlines-hidden \
    178 	-Wno-deprecated
    179 
    180 
    181 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    182 # Undefine ANDROID for host modules
    183 LOCAL_CFLAGS += -UANDROID
    184 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    185 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    186 ### Rules for final target.
    187 
    188 LOCAL_LDFLAGS_Debug := \
    189 	-Wl,-z,now \
    190 	-Wl,-z,relro \
    191 	-pthread \
    192 	-fPIC
    193 
    194 
    195 LOCAL_LDFLAGS_Release := \
    196 	-Wl,-z,now \
    197 	-Wl,-z,relro \
    198 	-pthread \
    199 	-fPIC
    200 
    201 
    202 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    203 
    204 LOCAL_STATIC_LIBRARIES := \
    205 	third_party_protobuf_protobuf_full_do_not_use_host_gyp
    206 
    207 # Enable grouping to fix circular references
    208 LOCAL_GROUP_STATIC_LIBRARIES := true
    209 
    210 LOCAL_SHARED_LIBRARIES :=
    211 
    212 # Add target alias to "gyp_all_modules" target.
    213 .PHONY: gyp_all_modules
    214 gyp_all_modules: third_party_protobuf_protoc_host_gyp
    215 
    216 # Alias gyp target name.
    217 .PHONY: protoc
    218 protoc: third_party_protobuf_protoc_host_gyp
    219 
    220 LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir)
    221 include $(BUILD_HOST_EXECUTABLE)
    222