Home | History | Annotate | Download | only in npapi
      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 	--param=ssp-buffer-size=4 \
     31 	-fno-exceptions \
     32 	-fno-strict-aliasing \
     33 	-Wno-unused-parameter \
     34 	-Wno-missing-field-initializers \
     35 	-fvisibility=hidden \
     36 	-pipe \
     37 	-fPIC \
     38 	-Wno-format \
     39 	-m32 \
     40 	-mmmx \
     41 	-march=pentium4 \
     42 	-msse2 \
     43 	-mfpmath=sse \
     44 	-fuse-ld=gold \
     45 	-ffunction-sections \
     46 	-funwind-tables \
     47 	-g \
     48 	-fno-short-enums \
     49 	-finline-limit=64 \
     50 	-Wa,--noexecstack \
     51 	-U_FORTIFY_SOURCE \
     52 	-Wno-extra \
     53 	-Wno-ignored-qualifiers \
     54 	-Wno-type-limits \
     55 	-fno-stack-protector \
     56 	-Wno-address \
     57 	-Wno-format-security \
     58 	-Wno-return-type \
     59 	-Wno-sequence-point \
     60 	-Os \
     61 	-g \
     62 	-fomit-frame-pointer \
     63 	-fdata-sections \
     64 	-ffunction-sections
     65 
     66 MY_DEFS_Debug := \
     67 	'-DV8_DEPRECATION_WARNINGS' \
     68 	'-D_FILE_OFFSET_BITS=64' \
     69 	'-DNO_TCMALLOC' \
     70 	'-DDISABLE_NACL' \
     71 	'-DCHROMIUM_BUILD' \
     72 	'-DUSE_LIBJPEG_TURBO=1' \
     73 	'-DUSE_PROPRIETARY_CODECS' \
     74 	'-DENABLE_CONFIGURATION_POLICY' \
     75 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     76 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     77 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     78 	'-DUSE_OPENSSL=1' \
     79 	'-DENABLE_EGLIMAGE=1' \
     80 	'-DCLD_VERSION=1' \
     81 	'-DENABLE_PRINTING=1' \
     82 	'-DENABLE_MANAGED_USERS=1' \
     83 	'-DANDROID' \
     84 	'-D__GNU_SOURCE=1' \
     85 	'-DUSE_STLPORT=1' \
     86 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     87 	'-DCHROME_BUILD_ID=""' \
     88 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     89 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     90 	'-D_DEBUG'
     91 
     92 
     93 # Include paths placed before CFLAGS/CPPFLAGS
     94 LOCAL_C_INCLUDES_Debug := \
     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 	-Wno-deprecated \
    106 	-Wno-error=c++0x-compat \
    107 	-Wno-non-virtual-dtor \
    108 	-Wno-sign-promo \
    109 	-Wno-non-virtual-dtor
    110 
    111 
    112 # Flags passed to both C and C++ files.
    113 MY_CFLAGS_Release := \
    114 	--param=ssp-buffer-size=4 \
    115 	-fno-exceptions \
    116 	-fno-strict-aliasing \
    117 	-Wno-unused-parameter \
    118 	-Wno-missing-field-initializers \
    119 	-fvisibility=hidden \
    120 	-pipe \
    121 	-fPIC \
    122 	-Wno-format \
    123 	-m32 \
    124 	-mmmx \
    125 	-march=pentium4 \
    126 	-msse2 \
    127 	-mfpmath=sse \
    128 	-fuse-ld=gold \
    129 	-ffunction-sections \
    130 	-funwind-tables \
    131 	-g \
    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 	-fno-stack-protector \
    140 	-Wno-address \
    141 	-Wno-format-security \
    142 	-Wno-return-type \
    143 	-Wno-sequence-point \
    144 	-Os \
    145 	-fno-ident \
    146 	-fdata-sections \
    147 	-ffunction-sections \
    148 	-fomit-frame-pointer \
    149 	-fno-unwind-tables \
    150 	-fno-asynchronous-unwind-tables
    151 
    152 MY_DEFS_Release := \
    153 	'-DV8_DEPRECATION_WARNINGS' \
    154 	'-D_FILE_OFFSET_BITS=64' \
    155 	'-DNO_TCMALLOC' \
    156 	'-DDISABLE_NACL' \
    157 	'-DCHROMIUM_BUILD' \
    158 	'-DUSE_LIBJPEG_TURBO=1' \
    159 	'-DUSE_PROPRIETARY_CODECS' \
    160 	'-DENABLE_CONFIGURATION_POLICY' \
    161 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    162 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    163 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    164 	'-DUSE_OPENSSL=1' \
    165 	'-DENABLE_EGLIMAGE=1' \
    166 	'-DCLD_VERSION=1' \
    167 	'-DENABLE_PRINTING=1' \
    168 	'-DENABLE_MANAGED_USERS=1' \
    169 	'-DANDROID' \
    170 	'-D__GNU_SOURCE=1' \
    171 	'-DUSE_STLPORT=1' \
    172 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    173 	'-DCHROME_BUILD_ID=""' \
    174 	'-DNDEBUG' \
    175 	'-DNVALGRIND' \
    176 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    177 
    178 
    179 # Include paths placed before CFLAGS/CPPFLAGS
    180 LOCAL_C_INCLUDES_Release := \
    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 	-Wno-deprecated \
    192 	-Wno-error=c++0x-compat \
    193 	-Wno-non-virtual-dtor \
    194 	-Wno-sign-promo \
    195 	-Wno-non-virtual-dtor
    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 # Add target alias to "gyp_all_modules" target.
    203 .PHONY: gyp_all_modules
    204 gyp_all_modules: third_party_npapi_npapi_gyp
    205 
    206 # Alias gyp target name.
    207 .PHONY: npapi
    208 npapi: third_party_npapi_npapi_gyp
    209 
    210 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp
    211 LOCAL_UNINSTALLABLE_MODULE := true
    212 
    213 include $(BUILD_SYSTEM)/base_rules.mk
    214 
    215 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES)
    216 	$(hide) echo "Gyp timestamp: $@"
    217 	$(hide) mkdir -p $(dir $@)
    218 	$(hide) touch $@
    219