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