1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := GYP 6 LOCAL_MODULE := third_party_npapi_npapi_gyp 7 LOCAL_MODULE_STEM := npapi 8 LOCAL_MODULE_SUFFIX := .stamp 9 LOCAL_MODULE_TAGS := optional 10 gyp_intermediate_dir := $(call local-intermediates-dir) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := 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_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := 26 27 28 # Flags passed to both C and C++ files. 29 MY_CFLAGS_Debug := \ 30 -fstack-protector \ 31 --param=ssp-buffer-size=4 \ 32 \ 33 -fno-exceptions \ 34 -fno-strict-aliasing \ 35 -Wno-unused-parameter \ 36 -Wno-missing-field-initializers \ 37 -fvisibility=hidden \ 38 -pipe \ 39 -fPIC \ 40 -Wno-format \ 41 -EL \ 42 -mhard-float \ 43 -ffunction-sections \ 44 -funwind-tables \ 45 -g \ 46 -fstack-protector \ 47 -fno-short-enums \ 48 -finline-limit=64 \ 49 -Wa,--noexecstack \ 50 -U_FORTIFY_SOURCE \ 51 -Wno-extra \ 52 -Wno-ignored-qualifiers \ 53 -Wno-type-limits \ 54 -Wno-address \ 55 -Wno-format-security \ 56 -Wno-return-type \ 57 -Wno-sequence-point \ 58 -Os \ 59 -g \ 60 -fomit-frame-pointer \ 61 -fdata-sections \ 62 -ffunction-sections 63 64 MY_DEFS_Debug := \ 65 '-DV8_DEPRECATION_WARNINGS' \ 66 '-D_FILE_OFFSET_BITS=64' \ 67 '-DNO_TCMALLOC' \ 68 '-DDISABLE_NACL' \ 69 '-DCHROMIUM_BUILD' \ 70 '-DUSE_LIBJPEG_TURBO=1' \ 71 '-DUSE_PROPRIETARY_CODECS' \ 72 '-DENABLE_CONFIGURATION_POLICY' \ 73 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 74 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 75 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 76 '-DUSE_OPENSSL=1' \ 77 '-DENABLE_EGLIMAGE=1' \ 78 '-DCLD_VERSION=1' \ 79 '-DENABLE_PRINTING=1' \ 80 '-DENABLE_MANAGED_USERS=1' \ 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 $(PWD)/frameworks/wilhelm/include \ 94 $(PWD)/bionic \ 95 $(PWD)/external/stlport/stlport 96 97 98 # Flags passed to only C++ (and not C) files. 99 LOCAL_CPPFLAGS_Debug := \ 100 -fno-rtti \ 101 -fno-threadsafe-statics \ 102 -fvisibility-inlines-hidden \ 103 -Wno-deprecated \ 104 -Wno-uninitialized \ 105 -Wno-error=c++0x-compat \ 106 -Wno-non-virtual-dtor \ 107 -Wno-sign-promo \ 108 -Wno-non-virtual-dtor 109 110 111 # Flags passed to both C and C++ files. 112 MY_CFLAGS_Release := \ 113 -fstack-protector \ 114 --param=ssp-buffer-size=4 \ 115 \ 116 -fno-exceptions \ 117 -fno-strict-aliasing \ 118 -Wno-unused-parameter \ 119 -Wno-missing-field-initializers \ 120 -fvisibility=hidden \ 121 -pipe \ 122 -fPIC \ 123 -Wno-format \ 124 -EL \ 125 -mhard-float \ 126 -ffunction-sections \ 127 -funwind-tables \ 128 -g \ 129 -fstack-protector \ 130 -fno-short-enums \ 131 -finline-limit=64 \ 132 -Wa,--noexecstack \ 133 -U_FORTIFY_SOURCE \ 134 -Wno-extra \ 135 -Wno-ignored-qualifiers \ 136 -Wno-type-limits \ 137 -Wno-address \ 138 -Wno-format-security \ 139 -Wno-return-type \ 140 -Wno-sequence-point \ 141 -Os \ 142 -fno-ident \ 143 -fdata-sections \ 144 -ffunction-sections \ 145 -fomit-frame-pointer 146 147 MY_DEFS_Release := \ 148 '-DV8_DEPRECATION_WARNINGS' \ 149 '-D_FILE_OFFSET_BITS=64' \ 150 '-DNO_TCMALLOC' \ 151 '-DDISABLE_NACL' \ 152 '-DCHROMIUM_BUILD' \ 153 '-DUSE_LIBJPEG_TURBO=1' \ 154 '-DUSE_PROPRIETARY_CODECS' \ 155 '-DENABLE_CONFIGURATION_POLICY' \ 156 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 157 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 158 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 159 '-DUSE_OPENSSL=1' \ 160 '-DENABLE_EGLIMAGE=1' \ 161 '-DCLD_VERSION=1' \ 162 '-DENABLE_PRINTING=1' \ 163 '-DENABLE_MANAGED_USERS=1' \ 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 173 174 # Include paths placed before CFLAGS/CPPFLAGS 175 LOCAL_C_INCLUDES_Release := \ 176 $(PWD)/frameworks/wilhelm/include \ 177 $(PWD)/bionic \ 178 $(PWD)/external/stlport/stlport 179 180 181 # Flags passed to only C++ (and not C) files. 182 LOCAL_CPPFLAGS_Release := \ 183 -fno-rtti \ 184 -fno-threadsafe-statics \ 185 -fvisibility-inlines-hidden \ 186 -Wno-deprecated \ 187 -Wno-uninitialized \ 188 -Wno-error=c++0x-compat \ 189 -Wno-non-virtual-dtor \ 190 -Wno-sign-promo \ 191 -Wno-non-virtual-dtor 192 193 194 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 195 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 196 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 197 ### Rules for final target. 198 # Add target alias to "gyp_all_modules" target. 199 .PHONY: gyp_all_modules 200 gyp_all_modules: third_party_npapi_npapi_gyp 201 202 # Alias gyp target name. 203 .PHONY: npapi 204 npapi: third_party_npapi_npapi_gyp 205 206 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 207 LOCAL_UNINSTALLABLE_MODULE := true 208 209 include $(BUILD_SYSTEM)/base_rules.mk 210 211 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 212 $(hide) echo "Gyp timestamp: $@" 213 $(hide) mkdir -p $(dir $@) 214 $(hide) touch $@ 215