Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 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 := gpu_gles2_cmd_helper_gyp |
| 7 | LOCAL_MODULE_SUFFIX := .a |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 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)) |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 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 | gpu/command_buffer/client/gles2_cmd_helper.cc |
| 27 | |
| 28 | |
| 29 | # Flags passed to both C and C++ files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 30 | MY_CFLAGS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 31 | --param=ssp-buffer-size=4 \ |
| 32 | -Werror \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 33 | -fno-strict-aliasing \ |
| 34 | -Wall \ |
| 35 | -Wno-unused-parameter \ |
| 36 | -Wno-missing-field-initializers \ |
| 37 | -fvisibility=hidden \ |
| 38 | -pipe \ |
| 39 | -fPIC \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 40 | -Wno-unused-local-typedefs \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 41 | -msse2 \ |
| 42 | -mfpmath=sse \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 43 | -mmmx \ |
| 44 | -m32 \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 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 \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 55 | -Wno-unused-but-set-variable \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 56 | -fno-stack-protector \ |
| 57 | -Os \ |
| 58 | -g \ |
Primiano Tucci | 1320f92 | 2014-09-30 14:45:55 +0100 | [diff] [blame] | 59 | -gdwarf-4 \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 60 | -fdata-sections \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 61 | -ffunction-sections \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 62 | -fomit-frame-pointer \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 63 | -funwind-tables |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 64 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 65 | MY_DEFS_Debug := \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 66 | '-DV8_DEPRECATION_WARNINGS' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 67 | '-D_FILE_OFFSET_BITS=64' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 68 | '-DNO_TCMALLOC' \ |
| 69 | '-DDISABLE_NACL' \ |
| 70 | '-DCHROMIUM_BUILD' \ |
| 71 | '-DUSE_LIBJPEG_TURBO=1' \ |
Ben Murdoch | e5d81f5 | 2014-04-03 12:29:45 +0100 | [diff] [blame] | 72 | '-DENABLE_WEBRTC=1' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 73 | '-DUSE_PROPRIETARY_CODECS' \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 74 | '-DENABLE_BROWSER_CDMS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 75 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 76 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 77 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 78 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 79 | '-DCLD_VERSION=1' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 80 | '-DENABLE_PRINTING=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 81 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 82 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
Primiano Tucci | 1320f92 | 2014-09-30 14:45:55 +0100 | [diff] [blame] | 83 | '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ |
| 84 | '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 85 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 86 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 87 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Torne (Richard Coles) | 0de6073 | 2014-05-15 12:16:31 +0100 | [diff] [blame] | 88 | '-DVIDEO_HOLE=1' \ |
Primiano Tucci | 1320f92 | 2014-09-30 14:45:55 +0100 | [diff] [blame] | 89 | '-DENABLE_LOAD_COMPLETION_HACKS=1' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 90 | '-DUSE_OPENSSL=1' \ |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 91 | '-DUSE_OPENSSL_CERTS=1' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 92 | '-D__STDC_CONSTANT_MACROS' \ |
| 93 | '-D__STDC_FORMAT_MACROS' \ |
| 94 | '-DANDROID' \ |
| 95 | '-D__GNU_SOURCE=1' \ |
| 96 | '-DUSE_STLPORT=1' \ |
| 97 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 98 | '-DCHROME_BUILD_ID=""' \ |
| 99 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 100 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 101 | '-D_DEBUG' |
| 102 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 103 | |
| 104 | # Include paths placed before CFLAGS/CPPFLAGS |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 105 | LOCAL_C_INCLUDES_Debug := \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 106 | $(gyp_shared_intermediate_dir) \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 107 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 108 | $(LOCAL_PATH)/third_party/khronos \ |
| 109 | $(LOCAL_PATH)/gpu \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 110 | $(PWD)/frameworks/wilhelm/include \ |
| 111 | $(PWD)/bionic \ |
| 112 | $(PWD)/external/stlport/stlport |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 113 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 114 | |
| 115 | # Flags passed to only C++ (and not C) files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 116 | LOCAL_CPPFLAGS_Debug := \ |
Primiano Tucci | 1320f92 | 2014-09-30 14:45:55 +0100 | [diff] [blame] | 117 | -fno-exceptions \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 118 | -fno-rtti \ |
| 119 | -fno-threadsafe-statics \ |
| 120 | -fvisibility-inlines-hidden \ |
| 121 | -Wsign-compare \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 122 | -std=gnu++11 \ |
| 123 | -Wno-narrowing \ |
| 124 | -Wno-literal-suffix \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 125 | -Wno-non-virtual-dtor \ |
| 126 | -Wno-sign-promo |
| 127 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 128 | |
| 129 | # Flags passed to both C and C++ files. |
| 130 | MY_CFLAGS_Release := \ |
| 131 | --param=ssp-buffer-size=4 \ |
| 132 | -Werror \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 133 | -fno-strict-aliasing \ |
| 134 | -Wall \ |
| 135 | -Wno-unused-parameter \ |
| 136 | -Wno-missing-field-initializers \ |
| 137 | -fvisibility=hidden \ |
| 138 | -pipe \ |
| 139 | -fPIC \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 140 | -Wno-unused-local-typedefs \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 141 | -msse2 \ |
| 142 | -mfpmath=sse \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 143 | -mmmx \ |
| 144 | -m32 \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 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 \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 155 | -Wno-unused-but-set-variable \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 156 | -fno-stack-protector \ |
| 157 | -Os \ |
| 158 | -fno-ident \ |
| 159 | -fdata-sections \ |
| 160 | -ffunction-sections \ |
| 161 | -fomit-frame-pointer \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 162 | -funwind-tables |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 163 | |
| 164 | MY_DEFS_Release := \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 165 | '-DV8_DEPRECATION_WARNINGS' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 166 | '-D_FILE_OFFSET_BITS=64' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 167 | '-DNO_TCMALLOC' \ |
| 168 | '-DDISABLE_NACL' \ |
| 169 | '-DCHROMIUM_BUILD' \ |
| 170 | '-DUSE_LIBJPEG_TURBO=1' \ |
Ben Murdoch | e5d81f5 | 2014-04-03 12:29:45 +0100 | [diff] [blame] | 171 | '-DENABLE_WEBRTC=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 172 | '-DUSE_PROPRIETARY_CODECS' \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 173 | '-DENABLE_BROWSER_CDMS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 174 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 175 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 176 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 177 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 178 | '-DCLD_VERSION=1' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 179 | '-DENABLE_PRINTING=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 180 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 181 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
Primiano Tucci | 1320f92 | 2014-09-30 14:45:55 +0100 | [diff] [blame] | 182 | '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ |
| 183 | '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 184 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 185 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 186 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Torne (Richard Coles) | 0de6073 | 2014-05-15 12:16:31 +0100 | [diff] [blame] | 187 | '-DVIDEO_HOLE=1' \ |
Primiano Tucci | 1320f92 | 2014-09-30 14:45:55 +0100 | [diff] [blame] | 188 | '-DENABLE_LOAD_COMPLETION_HACKS=1' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 189 | '-DUSE_OPENSSL=1' \ |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 190 | '-DUSE_OPENSSL_CERTS=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 191 | '-D__STDC_CONSTANT_MACROS' \ |
| 192 | '-D__STDC_FORMAT_MACROS' \ |
| 193 | '-DANDROID' \ |
| 194 | '-D__GNU_SOURCE=1' \ |
| 195 | '-DUSE_STLPORT=1' \ |
| 196 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 197 | '-DCHROME_BUILD_ID=""' \ |
| 198 | '-DNDEBUG' \ |
| 199 | '-DNVALGRIND' \ |
| 200 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ |
| 201 | '-D_FORTIFY_SOURCE=2' |
| 202 | |
| 203 | |
| 204 | # Include paths placed before CFLAGS/CPPFLAGS |
| 205 | LOCAL_C_INCLUDES_Release := \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 206 | $(gyp_shared_intermediate_dir) \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 207 | $(LOCAL_PATH) \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 208 | $(LOCAL_PATH)/third_party/khronos \ |
| 209 | $(LOCAL_PATH)/gpu \ |
| 210 | $(PWD)/frameworks/wilhelm/include \ |
| 211 | $(PWD)/bionic \ |
| 212 | $(PWD)/external/stlport/stlport |
| 213 | |
| 214 | |
| 215 | # Flags passed to only C++ (and not C) files. |
| 216 | LOCAL_CPPFLAGS_Release := \ |
Primiano Tucci | 1320f92 | 2014-09-30 14:45:55 +0100 | [diff] [blame] | 217 | -fno-exceptions \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 218 | -fno-rtti \ |
| 219 | -fno-threadsafe-statics \ |
| 220 | -fvisibility-inlines-hidden \ |
| 221 | -Wsign-compare \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 222 | -std=gnu++11 \ |
| 223 | -Wno-narrowing \ |
| 224 | -Wno-literal-suffix \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 225 | -Wno-non-virtual-dtor \ |
| 226 | -Wno-sign-promo |
| 227 | |
| 228 | |
| 229 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 230 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 231 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 232 | LOCAL_ASFLAGS := $(LOCAL_CFLAGS) |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 233 | ### Rules for final target. |
| 234 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 235 | LOCAL_SHARED_LIBRARIES := \ |
| 236 | libstlport \ |
| 237 | libdl |
| 238 | |
| 239 | # Add target alias to "gyp_all_modules" target. |
| 240 | .PHONY: gyp_all_modules |
| 241 | gyp_all_modules: gpu_gles2_cmd_helper_gyp |
| 242 | |
| 243 | # Alias gyp target name. |
| 244 | .PHONY: gles2_cmd_helper |
| 245 | gles2_cmd_helper: gpu_gles2_cmd_helper_gyp |
| 246 | |
| 247 | include $(BUILD_STATIC_LIBRARY) |