Home | History | Annotate | Download | only in gin
      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 := gin_gin_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,v8_tools_gyp_v8_gyp,,,$(GYP_VAR_PREFIX))/v8.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 	gin/arguments.cc \
     28 	gin/array_buffer.cc \
     29 	gin/context_holder.cc \
     30 	gin/converter.cc \
     31 	gin/debug_impl.cc \
     32 	gin/dictionary.cc \
     33 	gin/function_template.cc \
     34 	gin/interceptor.cc \
     35 	gin/isolate_holder.cc \
     36 	gin/modules/console.cc \
     37 	gin/modules/file_module_provider.cc \
     38 	gin/modules/module_registry.cc \
     39 	gin/modules/module_runner_delegate.cc \
     40 	gin/modules/timer.cc \
     41 	gin/object_template_builder.cc \
     42 	gin/per_context_data.cc \
     43 	gin/per_isolate_data.cc \
     44 	gin/runner.cc \
     45 	gin/run_microtasks_observer.cc \
     46 	gin/shell_runner.cc \
     47 	gin/try_catch.cc \
     48 	gin/v8_platform.cc \
     49 	gin/wrappable.cc \
     50 	gin/wrapper_info.cc
     51 
     52 
     53 # Flags passed to both C and C++ files.
     54 MY_CFLAGS_Debug := \
     55 	--param=ssp-buffer-size=4 \
     56 	-Werror \
     57 	-fno-strict-aliasing \
     58 	-Wall \
     59 	-Wno-unused-parameter \
     60 	-Wno-missing-field-initializers \
     61 	-fvisibility=hidden \
     62 	-pipe \
     63 	-fPIC \
     64 	-Wno-unused-local-typedefs \
     65 	-ffunction-sections \
     66 	-funwind-tables \
     67 	-g \
     68 	-fno-short-enums \
     69 	-finline-limit=64 \
     70 	-Wa,--noexecstack \
     71 	-U_FORTIFY_SOURCE \
     72 	-Wno-extra \
     73 	-Wno-ignored-qualifiers \
     74 	-Wno-type-limits \
     75 	-Wno-unused-but-set-variable \
     76 	-Os \
     77 	-g \
     78 	-gdwarf-4 \
     79 	-fdata-sections \
     80 	-ffunction-sections \
     81 	-funwind-tables
     82 
     83 MY_DEFS_Debug := \
     84 	'-DV8_DEPRECATION_WARNINGS' \
     85 	'-D_FILE_OFFSET_BITS=64' \
     86 	'-DNO_TCMALLOC' \
     87 	'-DDISABLE_NACL' \
     88 	'-DCHROMIUM_BUILD' \
     89 	'-DUSE_LIBJPEG_TURBO=1' \
     90 	'-DENABLE_WEBRTC=1' \
     91 	'-DUSE_PROPRIETARY_CODECS' \
     92 	'-DENABLE_BROWSER_CDMS' \
     93 	'-DENABLE_CONFIGURATION_POLICY' \
     94 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     95 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     96 	'-DENABLE_EGLIMAGE=1' \
     97 	'-DCLD_VERSION=1' \
     98 	'-DENABLE_PRINTING=1' \
     99 	'-DENABLE_MANAGED_USERS=1' \
    100 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    101 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    102 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    103 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    104 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    105 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    106 	'-DVIDEO_HOLE=1' \
    107 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    108 	'-DGIN_IMPLEMENTATION' \
    109 	'-DUSE_OPENSSL=1' \
    110 	'-DUSE_OPENSSL_CERTS=1' \
    111 	'-D__STDC_CONSTANT_MACROS' \
    112 	'-D__STDC_FORMAT_MACROS' \
    113 	'-DANDROID' \
    114 	'-D__GNU_SOURCE=1' \
    115 	'-DUSE_STLPORT=1' \
    116 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    117 	'-DCHROME_BUILD_ID=""' \
    118 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    119 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    120 	'-D_DEBUG'
    121 
    122 
    123 # Include paths placed before CFLAGS/CPPFLAGS
    124 LOCAL_C_INCLUDES_Debug := \
    125 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    126 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    127 	$(gyp_shared_intermediate_dir) \
    128 	$(LOCAL_PATH) \
    129 	$(LOCAL_PATH)/v8/include \
    130 	$(PWD)/frameworks/wilhelm/include \
    131 	$(PWD)/bionic \
    132 	$(PWD)/external/stlport/stlport
    133 
    134 
    135 # Flags passed to only C++ (and not C) files.
    136 LOCAL_CPPFLAGS_Debug := \
    137 	-fno-exceptions \
    138 	-fno-rtti \
    139 	-fno-threadsafe-statics \
    140 	-fvisibility-inlines-hidden \
    141 	-Wsign-compare \
    142 	-std=gnu++11 \
    143 	-Wno-narrowing \
    144 	-Wno-literal-suffix \
    145 	-Wno-non-virtual-dtor \
    146 	-Wno-sign-promo
    147 
    148 
    149 # Flags passed to both C and C++ files.
    150 MY_CFLAGS_Release := \
    151 	--param=ssp-buffer-size=4 \
    152 	-Werror \
    153 	-fno-strict-aliasing \
    154 	-Wall \
    155 	-Wno-unused-parameter \
    156 	-Wno-missing-field-initializers \
    157 	-fvisibility=hidden \
    158 	-pipe \
    159 	-fPIC \
    160 	-Wno-unused-local-typedefs \
    161 	-ffunction-sections \
    162 	-funwind-tables \
    163 	-g \
    164 	-fno-short-enums \
    165 	-finline-limit=64 \
    166 	-Wa,--noexecstack \
    167 	-U_FORTIFY_SOURCE \
    168 	-Wno-extra \
    169 	-Wno-ignored-qualifiers \
    170 	-Wno-type-limits \
    171 	-Wno-unused-but-set-variable \
    172 	-Os \
    173 	-fno-ident \
    174 	-fdata-sections \
    175 	-ffunction-sections \
    176 	-funwind-tables
    177 
    178 MY_DEFS_Release := \
    179 	'-DV8_DEPRECATION_WARNINGS' \
    180 	'-D_FILE_OFFSET_BITS=64' \
    181 	'-DNO_TCMALLOC' \
    182 	'-DDISABLE_NACL' \
    183 	'-DCHROMIUM_BUILD' \
    184 	'-DUSE_LIBJPEG_TURBO=1' \
    185 	'-DENABLE_WEBRTC=1' \
    186 	'-DUSE_PROPRIETARY_CODECS' \
    187 	'-DENABLE_BROWSER_CDMS' \
    188 	'-DENABLE_CONFIGURATION_POLICY' \
    189 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    190 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    191 	'-DENABLE_EGLIMAGE=1' \
    192 	'-DCLD_VERSION=1' \
    193 	'-DENABLE_PRINTING=1' \
    194 	'-DENABLE_MANAGED_USERS=1' \
    195 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    196 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    197 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    198 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    199 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    200 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    201 	'-DVIDEO_HOLE=1' \
    202 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    203 	'-DGIN_IMPLEMENTATION' \
    204 	'-DUSE_OPENSSL=1' \
    205 	'-DUSE_OPENSSL_CERTS=1' \
    206 	'-D__STDC_CONSTANT_MACROS' \
    207 	'-D__STDC_FORMAT_MACROS' \
    208 	'-DANDROID' \
    209 	'-D__GNU_SOURCE=1' \
    210 	'-DUSE_STLPORT=1' \
    211 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    212 	'-DCHROME_BUILD_ID=""' \
    213 	'-DNDEBUG' \
    214 	'-DNVALGRIND' \
    215 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    216 	'-D_FORTIFY_SOURCE=2'
    217 
    218 
    219 # Include paths placed before CFLAGS/CPPFLAGS
    220 LOCAL_C_INCLUDES_Release := \
    221 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    222 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    223 	$(gyp_shared_intermediate_dir) \
    224 	$(LOCAL_PATH) \
    225 	$(LOCAL_PATH)/v8/include \
    226 	$(PWD)/frameworks/wilhelm/include \
    227 	$(PWD)/bionic \
    228 	$(PWD)/external/stlport/stlport
    229 
    230 
    231 # Flags passed to only C++ (and not C) files.
    232 LOCAL_CPPFLAGS_Release := \
    233 	-fno-exceptions \
    234 	-fno-rtti \
    235 	-fno-threadsafe-statics \
    236 	-fvisibility-inlines-hidden \
    237 	-Wsign-compare \
    238 	-std=gnu++11 \
    239 	-Wno-narrowing \
    240 	-Wno-literal-suffix \
    241 	-Wno-non-virtual-dtor \
    242 	-Wno-sign-promo
    243 
    244 
    245 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    246 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    247 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    248 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    249 ### Rules for final target.
    250 
    251 LOCAL_SHARED_LIBRARIES := \
    252 	libstlport \
    253 	libdl
    254 
    255 # Add target alias to "gyp_all_modules" target.
    256 .PHONY: gyp_all_modules
    257 gyp_all_modules: gin_gin_gyp
    258 
    259 # Alias gyp target name.
    260 .PHONY: gin
    261 gin: gin_gin_gyp
    262 
    263 include $(BUILD_STATIC_LIBRARY)
    264