| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/nacl/config.gni") | 6 import("//build/config/nacl/config.gni") |
| 7 import("//build/config/nacl/rules.gni") | 7 import("//build/config/nacl/rules.gni") |
| 8 import("//ppapi/features/features.gni") | 8 import("//ppapi/features/features.gni") |
| 9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 if (is_mac) { | 10 if (is_mac) { |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 "//build/config:precompiled_headers", | 227 "//build/config:precompiled_headers", |
| 228 "//v8:external_startup_data", | 228 "//v8:external_startup_data", |
| 229 ] | 229 ] |
| 230 | 230 |
| 231 defines = [ "GL_GLEXT_PROTOTYPES" ] | 231 defines = [ "GL_GLEXT_PROTOTYPES" ] |
| 232 include_dirs = [ "lib/gl/include" ] | 232 include_dirs = [ "lib/gl/include" ] |
| 233 | 233 |
| 234 deps = [ | 234 deps = [ |
| 235 ":copy_test_files", | 235 ":copy_test_files", |
| 236 ":copy_test_files2", | 236 ":copy_test_files2", |
| 237 "//build/config/sanitizers:deps", | 237 "//build/config:exe_and_shlib_deps", |
| 238 "//ppapi/cpp", | 238 "//ppapi/cpp", |
| 239 "//ppapi/shared_impl", | 239 "//ppapi/shared_impl", |
| 240 ] | 240 ] |
| 241 } | 241 } |
| 242 | 242 |
| 243 if (is_mac) { | 243 if (is_mac) { |
| 244 ppapi_tests_target_type = "mac_plugin_bundle" | 244 ppapi_tests_target_type = "mac_plugin_bundle" |
| 245 } else { | 245 } else { |
| 246 ppapi_tests_target_type = "shared_library" | 246 ppapi_tests_target_type = "shared_library" |
| 247 } | 247 } |
| 248 target(ppapi_tests_target_type, "ppapi_tests") { | 248 target(ppapi_tests_target_type, "ppapi_tests") { |
| 249 deps = [ | 249 deps = [ |
| 250 ":ppapi_tests_sources", | 250 ":ppapi_tests_sources", |
| 251 ] | 251 ] |
| 252 } | 252 } |
| 253 | 253 |
| 254 source_set("power_saver_test_plugin_sources") { | 254 source_set("power_saver_test_plugin_sources") { |
| 255 sources = [ | 255 sources = [ |
| 256 "tests/power_saver_test_plugin.cc", | 256 "tests/power_saver_test_plugin.cc", |
| 257 "tests/test_utils.cc", | 257 "tests/test_utils.cc", |
| 258 ] | 258 ] |
| 259 | 259 |
| 260 deps = [ | 260 deps = [ |
| 261 "//build/config/sanitizers:deps", | 261 "//build/config:exe_and_shlib_deps", |
| 262 "//ppapi/cpp", | 262 "//ppapi/cpp", |
| 263 "//ppapi/shared_impl", | 263 "//ppapi/shared_impl", |
| 264 ] | 264 ] |
| 265 } | 265 } |
| 266 | 266 |
| 267 if (!is_mac) { | 267 if (!is_mac) { |
| 268 shared_library("power_saver_test_plugin") { | 268 shared_library("power_saver_test_plugin") { |
| 269 deps = [ | 269 deps = [ |
| 270 ":power_saver_test_plugin_sources", | 270 ":power_saver_test_plugin_sources", |
| 271 ] | 271 ] |
| 272 } | 272 } |
| 273 } else { | 273 } else { |
| 274 mac_plugin_bundle("power_saver_test_plugin") { | 274 mac_plugin_bundle("power_saver_test_plugin") { |
| 275 deps = [ | 275 deps = [ |
| 276 ":power_saver_test_plugin_sources", | 276 ":power_saver_test_plugin_sources", |
| 277 ] | 277 ] |
| 278 } | 278 } |
| 279 } | 279 } |
| 280 | 280 |
| 281 source_set("blink_deprecated_test_plugin_sources") { | 281 source_set("blink_deprecated_test_plugin_sources") { |
| 282 sources = [ | 282 sources = [ |
| 283 "tests/blink_deprecated_test_plugin.cc", | 283 "tests/blink_deprecated_test_plugin.cc", |
| 284 ] | 284 ] |
| 285 | 285 |
| 286 deps = [ | 286 deps = [ |
| 287 "//base", | 287 "//base", |
| 288 "//build/config/sanitizers:deps", | 288 "//build/config:exe_and_shlib_deps", |
| 289 "//ppapi/cpp", | 289 "//ppapi/cpp", |
| 290 "//ppapi/shared_impl", | 290 "//ppapi/shared_impl", |
| 291 ] | 291 ] |
| 292 } | 292 } |
| 293 | 293 |
| 294 if (!is_mac) { | 294 if (!is_mac) { |
| 295 loadable_module("blink_deprecated_test_plugin") { | 295 loadable_module("blink_deprecated_test_plugin") { |
| 296 deps = [ | 296 deps = [ |
| 297 ":blink_deprecated_test_plugin_sources", | 297 ":blink_deprecated_test_plugin_sources", |
| 298 ] | 298 ] |
| 299 } | 299 } |
| 300 } else { | 300 } else { |
| 301 mac_plugin_bundle("blink_deprecated_test_plugin") { | 301 mac_plugin_bundle("blink_deprecated_test_plugin") { |
| 302 deps = [ | 302 deps = [ |
| 303 ":blink_deprecated_test_plugin_sources", | 303 ":blink_deprecated_test_plugin_sources", |
| 304 ] | 304 ] |
| 305 } | 305 } |
| 306 } | 306 } |
| 307 | 307 |
| 308 source_set("blink_test_plugin_sources") { | 308 source_set("blink_test_plugin_sources") { |
| 309 sources = [ | 309 sources = [ |
| 310 "tests/blink_test_plugin.cc", | 310 "tests/blink_test_plugin.cc", |
| 311 ] | 311 ] |
| 312 | 312 |
| 313 deps = [ | 313 deps = [ |
| 314 "//base", | 314 "//base", |
| 315 "//build/config/sanitizers:deps", | 315 "//build/config:exe_and_shlib_deps", |
| 316 "//ppapi/cpp", | 316 "//ppapi/cpp", |
| 317 "//ppapi/shared_impl", | 317 "//ppapi/shared_impl", |
| 318 ] | 318 ] |
| 319 } | 319 } |
| 320 | 320 |
| 321 if (!is_mac) { | 321 if (!is_mac) { |
| 322 loadable_module("blink_test_plugin") { | 322 loadable_module("blink_test_plugin") { |
| 323 deps = [ | 323 deps = [ |
| 324 ":blink_test_plugin_sources", | 324 ":blink_test_plugin_sources", |
| 325 ] | 325 ] |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 ] | 404 ] |
| 405 } | 405 } |
| 406 | 406 |
| 407 executable("pepper_hash_for_uma") { | 407 executable("pepper_hash_for_uma") { |
| 408 sources = [ | 408 sources = [ |
| 409 "tools/pepper_hash_for_uma.cc", | 409 "tools/pepper_hash_for_uma.cc", |
| 410 ] | 410 ] |
| 411 | 411 |
| 412 deps = [ | 412 deps = [ |
| 413 "//base", | 413 "//base", |
| 414 "//build/config/sanitizers:deps", | 414 "//build/config:exe_and_shlib_deps", |
| 415 "//build/win:default_exe_manifest", | 415 "//build/win:default_exe_manifest", |
| 416 ] | 416 ] |
| 417 } | 417 } |
| 418 | 418 |
| 419 source_set("ppapi_gles2_lib") { | 419 source_set("ppapi_gles2_lib") { |
| 420 include_dirs = [ "lib/gl/include" ] | 420 include_dirs = [ "lib/gl/include" ] |
| 421 sources = [ | 421 sources = [ |
| 422 "lib/gl/gles2/gl2ext_ppapi.c", | 422 "lib/gl/gles2/gl2ext_ppapi.c", |
| 423 "lib/gl/gles2/gl2ext_ppapi.h", | 423 "lib/gl/gles2/gl2ext_ppapi.h", |
| 424 "lib/gl/gles2/gles2.c", | 424 "lib/gl/gles2/gles2.c", |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 data_deps += | 471 data_deps += |
| 472 [ ":ppapi_nacl_tests(//build/toolchain/nacl:glibc_${target_cpu})" ] | 472 [ ":ppapi_nacl_tests(//build/toolchain/nacl:glibc_${target_cpu})" ] |
| 473 } | 473 } |
| 474 | 474 |
| 475 if (is_linux && enable_nacl_nonsfi) { | 475 if (is_linux && enable_nacl_nonsfi) { |
| 476 data_deps += | 476 data_deps += |
| 477 [ ":ppapi_nacl_tests(//build/toolchain/nacl:newlib_pnacl_nonsfi)" ] | 477 [ ":ppapi_nacl_tests(//build/toolchain/nacl:newlib_pnacl_nonsfi)" ] |
| 478 } | 478 } |
| 479 } | 479 } |
| 480 } | 480 } |
| OLD | NEW |