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_seccomp_bpf_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 	$(call intermediates-dir-for,GYP,sandbox_sandbox_services_headers_gyp,,,$(GYP_VAR_PREFIX))/sandbox_services_headers.stamp
     15 
     16 GYP_GENERATED_OUTPUTS :=
     17 
     18 # Make sure our deps and generated files are built first.
     19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     20 
     21 LOCAL_CPP_EXTENSION := .cc
     22 LOCAL_GENERATED_SOURCES :=
     23 
     24 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     25 
     26 LOCAL_SRC_FILES := \
     27 	sandbox/linux/bpf_dsl/bpf_dsl.cc \
     28 	sandbox/linux/seccomp-bpf/basicblock.cc \
     29 	sandbox/linux/seccomp-bpf/codegen.cc \
     30 	sandbox/linux/seccomp-bpf/die.cc \
     31 	sandbox/linux/seccomp-bpf/errorcode.cc \
     32 	sandbox/linux/seccomp-bpf/sandbox_bpf.cc \
     33 	sandbox/linux/seccomp-bpf/sandbox_bpf_policy.cc \
     34 	sandbox/linux/seccomp-bpf/syscall.cc \
     35 	sandbox/linux/seccomp-bpf/syscall_iterator.cc \
     36 	sandbox/linux/seccomp-bpf/trap.cc \
     37 	sandbox/linux/seccomp-bpf/verifier.cc
     38 
     39 
     40 # Flags passed to both C and C++ files.
     41 MY_CFLAGS_Debug := \
     42 	--param=ssp-buffer-size=4 \
     43 	-Werror \
     44 	-fno-strict-aliasing \
     45 	-Wall \
     46 	-Wno-unused-parameter \
     47 	-Wno-missing-field-initializers \
     48 	-fvisibility=hidden \
     49 	-pipe \
     50 	-fPIC \
     51 	-Wno-unused-local-typedefs \
     52 	-ffunction-sections \
     53 	-funwind-tables \
     54 	-g \
     55 	-fno-short-enums \
     56 	-finline-limit=64 \
     57 	-Wa,--noexecstack \
     58 	-U_FORTIFY_SOURCE \
     59 	-Wno-extra \
     60 	-Wno-ignored-qualifiers \
     61 	-Wno-type-limits \
     62 	-Wno-unused-but-set-variable \
     63 	-Os \
     64 	-g \
     65 	-gdwarf-4 \
     66 	-fdata-sections \
     67 	-ffunction-sections \
     68 	-funwind-tables
     69 
     70 MY_DEFS_Debug := \
     71 	'-DV8_DEPRECATION_WARNINGS' \
     72 	'-D_FILE_OFFSET_BITS=64' \
     73 	'-DNO_TCMALLOC' \
     74 	'-DDISABLE_NACL' \
     75 	'-DCHROMIUM_BUILD' \
     76 	'-DUSE_LIBJPEG_TURBO=1' \
     77 	'-DENABLE_WEBRTC=1' \
     78 	'-DUSE_PROPRIETARY_CODECS' \
     79 	'-DENABLE_BROWSER_CDMS' \
     80 	'-DENABLE_CONFIGURATION_POLICY' \
     81 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     82 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     83 	'-DENABLE_EGLIMAGE=1' \
     84 	'-DCLD_VERSION=1' \
     85 	'-DENABLE_PRINTING=1' \
     86 	'-DENABLE_MANAGED_USERS=1' \
     87 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     88 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     89 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     90 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     91 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     92 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     93 	'-DVIDEO_HOLE=1' \
     94 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     95 	'-DSANDBOX_IMPLEMENTATION' \
     96 	'-DUSE_OPENSSL=1' \
     97 	'-DUSE_OPENSSL_CERTS=1' \
     98 	'-D__STDC_CONSTANT_MACROS' \
     99 	'-D__STDC_FORMAT_MACROS' \
    100 	'-DANDROID' \
    101 	'-D__GNU_SOURCE=1' \
    102 	'-DUSE_STLPORT=1' \
    103 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    104 	'-DCHROME_BUILD_ID=""' \
    105 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    106 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    107 	'-D_DEBUG'
    108 
    109 
    110 # Include paths placed before CFLAGS/CPPFLAGS
    111 LOCAL_C_INCLUDES_Debug := \
    112 	$(gyp_shared_intermediate_dir) \
    113 	$(LOCAL_PATH) \
    114 	$(PWD)/frameworks/wilhelm/include \
    115 	$(PWD)/bionic \
    116 	$(PWD)/external/stlport/stlport
    117 
    118 
    119 # Flags passed to only C++ (and not C) files.
    120 LOCAL_CPPFLAGS_Debug := \
    121 	-fno-exceptions \
    122 	-fno-rtti \
    123 	-fno-threadsafe-statics \
    124 	-fvisibility-inlines-hidden \
    125 	-Wsign-compare \
    126 	-std=gnu++11 \
    127 	-Wno-narrowing \
    128 	-Wno-literal-suffix \
    129 	-Wno-non-virtual-dtor \
    130 	-Wno-sign-promo
    131 
    132 
    133 # Flags passed to both C and C++ files.
    134 MY_CFLAGS_Release := \
    135 	--param=ssp-buffer-size=4 \
    136 	-Werror \
    137 	-fno-strict-aliasing \
    138 	-Wall \
    139 	-Wno-unused-parameter \
    140 	-Wno-missing-field-initializers \
    141 	-fvisibility=hidden \
    142 	-pipe \
    143 	-fPIC \
    144 	-Wno-unused-local-typedefs \
    145 	-ffunction-sections \
    146 	-funwind-tables \
    147 	-g \
    148 	-fno-short-enums \
    149 	-finline-limit=64 \
    150 	-Wa,--noexecstack \
    151 	-U_FORTIFY_SOURCE \
    152 	-Wno-extra \
    153 	-Wno-ignored-qualifiers \
    154 	-Wno-type-limits \
    155 	-Wno-unused-but-set-variable \
    156 	-Os \
    157 	-fno-ident \
    158 	-fdata-sections \
    159 	-ffunction-sections \
    160 	-funwind-tables
    161 
    162 MY_DEFS_Release := \
    163 	'-DV8_DEPRECATION_WARNINGS' \
    164 	'-D_FILE_OFFSET_BITS=64' \
    165 	'-DNO_TCMALLOC' \
    166 	'-DDISABLE_NACL' \
    167 	'-DCHROMIUM_BUILD' \
    168 	'-DUSE_LIBJPEG_TURBO=1' \
    169 	'-DENABLE_WEBRTC=1' \
    170 	'-DUSE_PROPRIETARY_CODECS' \
    171 	'-DENABLE_BROWSER_CDMS' \
    172 	'-DENABLE_CONFIGURATION_POLICY' \
    173 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    174 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    175 	'-DENABLE_EGLIMAGE=1' \
    176 	'-DCLD_VERSION=1' \
    177 	'-DENABLE_PRINTING=1' \
    178 	'-DENABLE_MANAGED_USERS=1' \
    179 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    180 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    181 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    182 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    183 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    184 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    185 	'-DVIDEO_HOLE=1' \
    186 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    187 	'-DSANDBOX_IMPLEMENTATION' \
    188 	'-DUSE_OPENSSL=1' \
    189 	'-DUSE_OPENSSL_CERTS=1' \
    190 	'-D__STDC_CONSTANT_MACROS' \
    191 	'-D__STDC_FORMAT_MACROS' \
    192 	'-DANDROID' \
    193 	'-D__GNU_SOURCE=1' \
    194 	'-DUSE_STLPORT=1' \
    195 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    196 	'-DCHROME_BUILD_ID=""' \
    197 	'-DNDEBUG' \
    198 	'-DNVALGRIND' \
    199 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    200 	'-D_FORTIFY_SOURCE=2'
    201 
    202 
    203 # Include paths placed before CFLAGS/CPPFLAGS
    204 LOCAL_C_INCLUDES_Release := \
    205 	$(gyp_shared_intermediate_dir) \
    206 	$(LOCAL_PATH) \
    207 	$(PWD)/frameworks/wilhelm/include \
    208 	$(PWD)/bionic \
    209 	$(PWD)/external/stlport/stlport
    210 
    211 
    212 # Flags passed to only C++ (and not C) files.
    213 LOCAL_CPPFLAGS_Release := \
    214 	-fno-exceptions \
    215 	-fno-rtti \
    216 	-fno-threadsafe-statics \
    217 	-fvisibility-inlines-hidden \
    218 	-Wsign-compare \
    219 	-std=gnu++11 \
    220 	-Wno-narrowing \
    221 	-Wno-literal-suffix \
    222 	-Wno-non-virtual-dtor \
    223 	-Wno-sign-promo
    224 
    225 
    226 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    227 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    228 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    229 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    230 ### Rules for final target.
    231 
    232 LOCAL_SHARED_LIBRARIES := \
    233 	libstlport \
    234 	libdl
    235 
    236 # Add target alias to "gyp_all_modules" target.
    237 .PHONY: gyp_all_modules
    238 gyp_all_modules: sandbox_seccomp_bpf_gyp
    239 
    240 # Alias gyp target name.
    241 .PHONY: seccomp_bpf
    242 seccomp_bpf: sandbox_seccomp_bpf_gyp
    243 
    244 include $(BUILD_STATIC_LIBRARY)
    245