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