Home | History | Annotate | Download | only in sandbox
      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 := sandbox_sandbox_services_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 	sandbox/linux/services/broker_process.cc \
     27 	sandbox/linux/services/init_process_reaper.cc \
     28 	sandbox/linux/services/scoped_process.cc \
     29 	sandbox/linux/services/thread_helpers.cc \
     30 	sandbox/linux/services/yama.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 	'-DSANDBOX_IMPLEMENTATION' \
    100 	'-DUSE_OPENSSL=1' \
    101 	'-DUSE_OPENSSL_CERTS=1' \
    102 	'-D__STDC_CONSTANT_MACROS' \
    103 	'-D__STDC_FORMAT_MACROS' \
    104 	'-DANDROID' \
    105 	'-D__GNU_SOURCE=1' \
    106 	'-DUSE_STLPORT=1' \
    107 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    108 	'-DCHROME_BUILD_ID=""' \
    109 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    110 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    111 	'-D_DEBUG'
    112 
    113 
    114 # Include paths placed before CFLAGS/CPPFLAGS
    115 LOCAL_C_INCLUDES_Debug := \
    116 	$(gyp_shared_intermediate_dir) \
    117 	$(LOCAL_PATH)/sandbox \
    118 	$(LOCAL_PATH) \
    119 	$(PWD)/frameworks/wilhelm/include \
    120 	$(PWD)/bionic \
    121 	$(PWD)/external/stlport/stlport
    122 
    123 
    124 # Flags passed to only C++ (and not C) files.
    125 LOCAL_CPPFLAGS_Debug := \
    126 	-fno-exceptions \
    127 	-fno-rtti \
    128 	-fno-threadsafe-statics \
    129 	-fvisibility-inlines-hidden \
    130 	-Wsign-compare \
    131 	-Wno-abi \
    132 	-std=gnu++11 \
    133 	-Wno-narrowing \
    134 	-Wno-literal-suffix \
    135 	-Wno-non-virtual-dtor \
    136 	-Wno-sign-promo
    137 
    138 
    139 # Flags passed to both C and C++ files.
    140 MY_CFLAGS_Release := \
    141 	-fstack-protector \
    142 	--param=ssp-buffer-size=4 \
    143 	-Werror \
    144 	-fno-strict-aliasing \
    145 	-Wall \
    146 	-Wno-unused-parameter \
    147 	-Wno-missing-field-initializers \
    148 	-fvisibility=hidden \
    149 	-pipe \
    150 	-fPIC \
    151 	-Wno-unused-local-typedefs \
    152 	-fno-tree-sra \
    153 	-fno-caller-saves \
    154 	-Wno-psabi \
    155 	-fno-partial-inlining \
    156 	-fno-early-inlining \
    157 	-fno-tree-copy-prop \
    158 	-fno-tree-loop-optimize \
    159 	-fno-move-loop-invariants \
    160 	-ffunction-sections \
    161 	-funwind-tables \
    162 	-g \
    163 	-fstack-protector \
    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 	-Os \
    173 	-fno-ident \
    174 	-fdata-sections \
    175 	-ffunction-sections \
    176 	-fomit-frame-pointer \
    177 	-funwind-tables
    178 
    179 MY_DEFS_Release := \
    180 	'-DV8_DEPRECATION_WARNINGS' \
    181 	'-D_FILE_OFFSET_BITS=64' \
    182 	'-DNO_TCMALLOC' \
    183 	'-DDISABLE_NACL' \
    184 	'-DCHROMIUM_BUILD' \
    185 	'-DUSE_LIBJPEG_TURBO=1' \
    186 	'-DENABLE_WEBRTC=1' \
    187 	'-DUSE_PROPRIETARY_CODECS' \
    188 	'-DENABLE_BROWSER_CDMS' \
    189 	'-DENABLE_CONFIGURATION_POLICY' \
    190 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    191 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    192 	'-DENABLE_EGLIMAGE=1' \
    193 	'-DCLD_VERSION=1' \
    194 	'-DENABLE_PRINTING=1' \
    195 	'-DENABLE_MANAGED_USERS=1' \
    196 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    197 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    198 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    199 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    200 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    201 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    202 	'-DVIDEO_HOLE=1' \
    203 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    204 	'-DSANDBOX_IMPLEMENTATION' \
    205 	'-DUSE_OPENSSL=1' \
    206 	'-DUSE_OPENSSL_CERTS=1' \
    207 	'-D__STDC_CONSTANT_MACROS' \
    208 	'-D__STDC_FORMAT_MACROS' \
    209 	'-DANDROID' \
    210 	'-D__GNU_SOURCE=1' \
    211 	'-DUSE_STLPORT=1' \
    212 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    213 	'-DCHROME_BUILD_ID=""' \
    214 	'-DNDEBUG' \
    215 	'-DNVALGRIND' \
    216 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    217 	'-D_FORTIFY_SOURCE=2'
    218 
    219 
    220 # Include paths placed before CFLAGS/CPPFLAGS
    221 LOCAL_C_INCLUDES_Release := \
    222 	$(gyp_shared_intermediate_dir) \
    223 	$(LOCAL_PATH)/sandbox \
    224 	$(LOCAL_PATH) \
    225 	$(PWD)/frameworks/wilhelm/include \
    226 	$(PWD)/bionic \
    227 	$(PWD)/external/stlport/stlport
    228 
    229 
    230 # Flags passed to only C++ (and not C) files.
    231 LOCAL_CPPFLAGS_Release := \
    232 	-fno-exceptions \
    233 	-fno-rtti \
    234 	-fno-threadsafe-statics \
    235 	-fvisibility-inlines-hidden \
    236 	-Wsign-compare \
    237 	-Wno-abi \
    238 	-std=gnu++11 \
    239 	-Wno-narrowing \
    240 	-Wno-literal-suffix \
    241 	-Wno-non-virtual-dtor \
    242 	-Wno-sign-promo
    243 
    244 
    245 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    246 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    247 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    248 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    249 ### Rules for final target.
    250 
    251 LOCAL_SHARED_LIBRARIES := \
    252 	libstlport \
    253 	libdl
    254 
    255 # Add target alias to "gyp_all_modules" target.
    256 .PHONY: gyp_all_modules
    257 gyp_all_modules: sandbox_sandbox_services_gyp
    258 
    259 # Alias gyp target name.
    260 .PHONY: sandbox_services
    261 sandbox_services: sandbox_sandbox_services_gyp
    262 
    263 include $(BUILD_STATIC_LIBRARY)
    264