Home | History | Annotate | Download | only in mojo
      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 := ipc_mojo_ipc_mojo_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 	ipc/mojo/ipc_channel_mojo.cc \
     27 	ipc/mojo/ipc_channel_mojo_host.cc \
     28 	ipc/mojo/ipc_channel_mojo_readers.cc \
     29 	ipc/mojo/ipc_mojo_bootstrap.cc \
     30 	ipc/mojo/ipc_message_pipe_reader.cc
     31 
     32 
     33 # Flags passed to both C and C++ files.
     34 MY_CFLAGS_Debug := \
     35 	-fstack-protector \
     36 	--param=ssp-buffer-size=4 \
     37 	-Werror \
     38 	-fno-strict-aliasing \
     39 	-Wall \
     40 	-Wno-unused-parameter \
     41 	-Wno-missing-field-initializers \
     42 	-fvisibility=hidden \
     43 	-pipe \
     44 	-fPIC \
     45 	-Wno-unused-local-typedefs \
     46 	-fno-tree-sra \
     47 	-fno-caller-saves \
     48 	-Wno-psabi \
     49 	-fno-partial-inlining \
     50 	-fno-early-inlining \
     51 	-fno-tree-copy-prop \
     52 	-fno-tree-loop-optimize \
     53 	-fno-move-loop-invariants \
     54 	-ffunction-sections \
     55 	-funwind-tables \
     56 	-g \
     57 	-fstack-protector \
     58 	-fno-short-enums \
     59 	-finline-limit=64 \
     60 	-Wa,--noexecstack \
     61 	-U_FORTIFY_SOURCE \
     62 	-Wno-extra \
     63 	-Wno-ignored-qualifiers \
     64 	-Wno-type-limits \
     65 	-Wno-unused-but-set-variable \
     66 	-Os \
     67 	-g \
     68 	-gdwarf-4 \
     69 	-fdata-sections \
     70 	-ffunction-sections \
     71 	-fomit-frame-pointer \
     72 	-funwind-tables
     73 
     74 MY_DEFS_Debug := \
     75 	'-DV8_DEPRECATION_WARNINGS' \
     76 	'-D_FILE_OFFSET_BITS=64' \
     77 	'-DNO_TCMALLOC' \
     78 	'-DDISABLE_NACL' \
     79 	'-DCHROMIUM_BUILD' \
     80 	'-DUSE_LIBJPEG_TURBO=1' \
     81 	'-DENABLE_WEBRTC=1' \
     82 	'-DUSE_PROPRIETARY_CODECS' \
     83 	'-DENABLE_BROWSER_CDMS' \
     84 	'-DENABLE_CONFIGURATION_POLICY' \
     85 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     86 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     87 	'-DENABLE_EGLIMAGE=1' \
     88 	'-DCLD_VERSION=1' \
     89 	'-DENABLE_PRINTING=1' \
     90 	'-DENABLE_MANAGED_USERS=1' \
     91 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     92 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     93 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     94 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     95 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     96 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     97 	'-DVIDEO_HOLE=1' \
     98 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     99 	'-DIPC_MOJO_IMPLEMENTATION' \
    100 	'-DMOJO_USE_SYSTEM_IMPL' \
    101 	'-DUSE_OPENSSL=1' \
    102 	'-DUSE_OPENSSL_CERTS=1' \
    103 	'-D__STDC_CONSTANT_MACROS' \
    104 	'-D__STDC_FORMAT_MACROS' \
    105 	'-DANDROID' \
    106 	'-D__GNU_SOURCE=1' \
    107 	'-DUSE_STLPORT=1' \
    108 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    109 	'-DCHROME_BUILD_ID=""' \
    110 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    111 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    112 	'-D_DEBUG'
    113 
    114 
    115 # Include paths placed before CFLAGS/CPPFLAGS
    116 LOCAL_C_INCLUDES_Debug := \
    117 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    118 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    119 	$(gyp_shared_intermediate_dir) \
    120 	$(LOCAL_PATH) \
    121 	$(PWD)/frameworks/wilhelm/include \
    122 	$(PWD)/bionic \
    123 	$(PWD)/external/stlport/stlport
    124 
    125 
    126 # Flags passed to only C++ (and not C) files.
    127 LOCAL_CPPFLAGS_Debug := \
    128 	-fno-exceptions \
    129 	-fno-rtti \
    130 	-fno-threadsafe-statics \
    131 	-fvisibility-inlines-hidden \
    132 	-Wsign-compare \
    133 	-Wno-abi \
    134 	-std=gnu++11 \
    135 	-Wno-narrowing \
    136 	-Wno-literal-suffix \
    137 	-Wno-non-virtual-dtor \
    138 	-Wno-sign-promo
    139 
    140 
    141 # Flags passed to both C and C++ files.
    142 MY_CFLAGS_Release := \
    143 	-fstack-protector \
    144 	--param=ssp-buffer-size=4 \
    145 	-Werror \
    146 	-fno-strict-aliasing \
    147 	-Wall \
    148 	-Wno-unused-parameter \
    149 	-Wno-missing-field-initializers \
    150 	-fvisibility=hidden \
    151 	-pipe \
    152 	-fPIC \
    153 	-Wno-unused-local-typedefs \
    154 	-fno-tree-sra \
    155 	-fno-caller-saves \
    156 	-Wno-psabi \
    157 	-fno-partial-inlining \
    158 	-fno-early-inlining \
    159 	-fno-tree-copy-prop \
    160 	-fno-tree-loop-optimize \
    161 	-fno-move-loop-invariants \
    162 	-ffunction-sections \
    163 	-funwind-tables \
    164 	-g \
    165 	-fstack-protector \
    166 	-fno-short-enums \
    167 	-finline-limit=64 \
    168 	-Wa,--noexecstack \
    169 	-U_FORTIFY_SOURCE \
    170 	-Wno-extra \
    171 	-Wno-ignored-qualifiers \
    172 	-Wno-type-limits \
    173 	-Wno-unused-but-set-variable \
    174 	-Os \
    175 	-fno-ident \
    176 	-fdata-sections \
    177 	-ffunction-sections \
    178 	-fomit-frame-pointer \
    179 	-funwind-tables
    180 
    181 MY_DEFS_Release := \
    182 	'-DV8_DEPRECATION_WARNINGS' \
    183 	'-D_FILE_OFFSET_BITS=64' \
    184 	'-DNO_TCMALLOC' \
    185 	'-DDISABLE_NACL' \
    186 	'-DCHROMIUM_BUILD' \
    187 	'-DUSE_LIBJPEG_TURBO=1' \
    188 	'-DENABLE_WEBRTC=1' \
    189 	'-DUSE_PROPRIETARY_CODECS' \
    190 	'-DENABLE_BROWSER_CDMS' \
    191 	'-DENABLE_CONFIGURATION_POLICY' \
    192 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    193 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    194 	'-DENABLE_EGLIMAGE=1' \
    195 	'-DCLD_VERSION=1' \
    196 	'-DENABLE_PRINTING=1' \
    197 	'-DENABLE_MANAGED_USERS=1' \
    198 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    199 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    200 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    201 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    202 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    203 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    204 	'-DVIDEO_HOLE=1' \
    205 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    206 	'-DIPC_MOJO_IMPLEMENTATION' \
    207 	'-DMOJO_USE_SYSTEM_IMPL' \
    208 	'-DUSE_OPENSSL=1' \
    209 	'-DUSE_OPENSSL_CERTS=1' \
    210 	'-D__STDC_CONSTANT_MACROS' \
    211 	'-D__STDC_FORMAT_MACROS' \
    212 	'-DANDROID' \
    213 	'-D__GNU_SOURCE=1' \
    214 	'-DUSE_STLPORT=1' \
    215 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    216 	'-DCHROME_BUILD_ID=""' \
    217 	'-DNDEBUG' \
    218 	'-DNVALGRIND' \
    219 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    220 	'-D_FORTIFY_SOURCE=2'
    221 
    222 
    223 # Include paths placed before CFLAGS/CPPFLAGS
    224 LOCAL_C_INCLUDES_Release := \
    225 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    226 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    227 	$(gyp_shared_intermediate_dir) \
    228 	$(LOCAL_PATH) \
    229 	$(PWD)/frameworks/wilhelm/include \
    230 	$(PWD)/bionic \
    231 	$(PWD)/external/stlport/stlport
    232 
    233 
    234 # Flags passed to only C++ (and not C) files.
    235 LOCAL_CPPFLAGS_Release := \
    236 	-fno-exceptions \
    237 	-fno-rtti \
    238 	-fno-threadsafe-statics \
    239 	-fvisibility-inlines-hidden \
    240 	-Wsign-compare \
    241 	-Wno-abi \
    242 	-std=gnu++11 \
    243 	-Wno-narrowing \
    244 	-Wno-literal-suffix \
    245 	-Wno-non-virtual-dtor \
    246 	-Wno-sign-promo
    247 
    248 
    249 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    250 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    251 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    252 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    253 ### Rules for final target.
    254 
    255 LOCAL_SHARED_LIBRARIES := \
    256 	libstlport \
    257 	libdl
    258 
    259 # Add target alias to "gyp_all_modules" target.
    260 .PHONY: gyp_all_modules
    261 gyp_all_modules: ipc_mojo_ipc_mojo_gyp
    262 
    263 # Alias gyp target name.
    264 .PHONY: ipc_mojo
    265 ipc_mojo: ipc_mojo_ipc_mojo_gyp
    266 
    267 include $(BUILD_STATIC_LIBRARY)
    268