0

Remove PPAPI gyp files.

Inlines the sources from ppapi_sources.gypi into the respective BUILD.gn files.

Previously the cpp sources were compiled into two targets, one in //ppapi:ppapi_cpp_sources (referenced only from nacl), and one in //ppapi/cpp (referenced only from trusted). This patch merges them into the cpp directory, which now morphs as required for the build type.

R=bbudge
TBR=bradnelson (chrome/test/data/nacl)

Review-Url: https://codereview.chromium.org/2289983002
Cr-Commit-Position: refs/heads/master@{#415183}
This commit is contained in:
brettw
2016-08-29 22:52:06 -07:00
committed by Commit bot
parent cf9519facc
commit 9d6a868b4d
28 changed files with 649 additions and 4366 deletions

@ -149,7 +149,7 @@ if (is_nacl) {
"manifest_file/irt_manifest_file_test.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
nmfflags = [
"-xtest_file:test_file.txt",
@ -183,7 +183,7 @@ if (is_nacl && !is_nacl_nonsfi) {
"simple.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
destination_dir = "nacl_test_data"
test_files = [ "nacl_load_test.html" ]
@ -195,7 +195,7 @@ if (is_nacl && !is_nacl_nonsfi) {
"exit_status/pm_exit_status_test.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
destination_dir = "nacl_test_data"
test_files = [ "exit_status/pm_exit_status_test.html" ]
@ -206,7 +206,7 @@ if (is_nacl && !is_nacl_nonsfi) {
"simple.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
# Need a new directory to not clash with with other extension
@ -233,7 +233,7 @@ if (is_nacl && !is_nacl_nonsfi) {
"sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
destination_dir = "nacl_test_data"
test_files =
@ -373,7 +373,7 @@ if (is_nacl && !is_nacl_nonsfi) {
"simple.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
generate_nmf = false
if (current_cpu == "pnacl") {
@ -394,7 +394,7 @@ if (is_nacl && !is_nacl_nonsfi) {
"simple.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
generate_nmf = false
if (current_cpu == "pnacl") {
@ -427,7 +427,7 @@ if (is_nacl && !is_nacl_nonsfi) {
"simple.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
generate_nmf = false
destination_dir = "nacl_test_data"
@ -445,7 +445,7 @@ if (is_nacl && !is_nacl_nonsfi) {
"pnacl_url_loader/pnacl_url_loader.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
generate_nmf = true
destination_dir = "nacl_test_data"

@ -3,13 +3,149 @@
# found in the LICENSE file.
import("//build/config/features.gni")
import("//build/config/features.gni")
import("//build/config/nacl/config.gni")
import("//build/config/nacl/rules.gni")
import("//testing/test.gni")
if (is_mac) {
import("//build/config/mac/rules.gni")
}
assert(!is_android || enable_plugins,
"//ppapi should not be referenced when is_android && !enable_plugins")
if (is_mac) {
import("//build/config/mac/rules.gni")
}
# Test files shared between several targets below.
#
# TODO(brettw) it seems like it should be possible to factor this in a source
# set that is shared in such a way that these only need to be referenced once.
test_common_source_files = [
"lib/gl/gles2/gl2ext_ppapi.c",
"lib/gl/gles2/gl2ext_ppapi.h",
"lib/gl/gles2/gles2.c",
"tests/all_c_includes.h",
"tests/all_cpp_includes.h",
"tests/arch_dependent_sizes_32.h",
"tests/arch_dependent_sizes_64.h",
"tests/pp_thread.h",
"tests/test_audio.cc",
"tests/test_audio.h",
"tests/test_audio_config.cc",
"tests/test_audio_config.h",
"tests/test_audio_encoder.cc",
"tests/test_audio_encoder.h",
"tests/test_case.cc",
"tests/test_case.h",
"tests/test_compositor.cc",
"tests/test_compositor.h",
"tests/test_console.cc",
"tests/test_console.h",
"tests/test_core.cc",
"tests/test_core.h",
"tests/test_cursor_control.cc",
"tests/test_cursor_control.h",
"tests/test_empty.cc",
"tests/test_empty.h",
"tests/test_file_io.cc",
"tests/test_file_io.h",
"tests/test_file_ref.cc",
"tests/test_file_ref.h",
"tests/test_file_system.cc",
"tests/test_file_system.h",
"tests/test_fullscreen.cc",
"tests/test_fullscreen.h",
"tests/test_graphics_2d.cc",
"tests/test_graphics_2d.h",
"tests/test_graphics_3d.cc",
"tests/test_graphics_3d.h",
"tests/test_host_resolver.cc",
"tests/test_host_resolver.h",
"tests/test_host_resolver_private.cc",
"tests/test_host_resolver_private.h",
"tests/test_host_resolver_private_disallowed.cc",
"tests/test_host_resolver_private_disallowed.h",
"tests/test_image_data.cc",
"tests/test_image_data.h",
"tests/test_ime_input_event.cc",
"tests/test_ime_input_event.h",
"tests/test_input_event.cc",
"tests/test_input_event.h",
"tests/test_media_stream_audio_track.cc",
"tests/test_media_stream_audio_track.h",
"tests/test_media_stream_video_track.cc",
"tests/test_media_stream_video_track.h",
"tests/test_memory.cc",
"tests/test_memory.h",
"tests/test_message_handler.cc",
"tests/test_message_handler.h",
"tests/test_message_loop.cc",
"tests/test_message_loop.h",
"tests/test_mouse_cursor.cc",
"tests/test_mouse_cursor.h",
"tests/test_mouse_lock.cc",
"tests/test_mouse_lock.h",
"tests/test_net_address.cc",
"tests/test_net_address.h",
"tests/test_net_address_private_untrusted.cc",
"tests/test_net_address_private_untrusted.h",
"tests/test_network_monitor.cc",
"tests/test_network_monitor.h",
"tests/test_network_proxy.cc",
"tests/test_network_proxy.h",
"tests/test_output_protection_private.cc",
"tests/test_output_protection_private.h",
"tests/test_paint_aggregator.cc",
"tests/test_paint_aggregator.h",
"tests/test_post_message.cc",
"tests/test_post_message.h",
"tests/test_printing.cc",
"tests/test_printing.h",
"tests/test_tcp_server_socket_private.cc",
"tests/test_tcp_server_socket_private.h",
"tests/test_tcp_socket.cc",
"tests/test_tcp_socket.h",
"tests/test_tcp_socket_private.cc",
"tests/test_tcp_socket_private.h",
"tests/test_test_internals.cc",
"tests/test_test_internals.h",
"tests/test_trace_event.cc",
"tests/test_trace_event.h",
"tests/test_truetype_font.cc",
"tests/test_truetype_font.h",
"tests/test_udp_socket.cc",
"tests/test_udp_socket.h",
"tests/test_udp_socket_private.cc",
"tests/test_udp_socket_private.h",
"tests/test_uma.cc",
"tests/test_uma.h",
"tests/test_url_loader.cc",
"tests/test_url_loader.h",
"tests/test_url_request.cc",
"tests/test_url_request.h",
"tests/test_utils.cc",
"tests/test_var.cc",
"tests/test_var.h",
"tests/test_var_resource.cc",
"tests/test_var_resource.h",
"tests/test_video_decoder.cc",
"tests/test_video_decoder.h",
"tests/test_video_destination.cc",
"tests/test_video_destination.h",
"tests/test_video_encoder.cc",
"tests/test_video_encoder.h",
"tests/test_video_source.cc",
"tests/test_video_source.h",
"tests/test_view.cc",
"tests/test_view.h",
"tests/test_websocket.cc",
"tests/test_websocket.h",
"tests/testing_instance.cc",
"tests/testing_instance.h",
# Compile-time tests
"tests/test_c_includes.c",
"tests/test_cpp_includes.cc",
"tests/test_struct_sizes.c",
]
copy("copy_test_files") {
visibility = [ ":*" ]
@ -35,15 +171,57 @@ copy("copy_test_files2") {
]
}
import("//build/config/features.gni")
import("//build/config/nacl/config.gni")
import("//build/config/nacl/rules.gni")
import("//ppapi/ppapi_sources.gni")
import("//testing/test.gni")
source_set("ppapi_tests_sources") {
sources = ppapi_sources.test_common_source_files +
ppapi_sources.test_trusted_source_files
sources = test_common_source_files
sources += [
"tests/test_broker.cc",
"tests/test_broker.h",
"tests/test_browser_font.cc",
"tests/test_browser_font.h",
"tests/test_buffer.cc",
"tests/test_buffer.h",
"tests/test_char_set.cc",
"tests/test_char_set.h",
"tests/test_crypto.cc",
"tests/test_crypto.h",
"tests/test_file_chooser.cc",
"tests/test_file_chooser.h",
"tests/test_flash.cc",
"tests/test_flash.h",
"tests/test_flash_clipboard.cc",
"tests/test_flash_clipboard.h",
"tests/test_flash_drm.cc",
"tests/test_flash_drm.h",
"tests/test_flash_file.cc",
"tests/test_flash_file.h",
"tests/test_flash_fullscreen.cc",
"tests/test_flash_fullscreen.h",
"tests/test_flash_fullscreen_for_browser_ui.cc",
"tests/test_flash_fullscreen_for_browser_ui.h",
"tests/test_flash_message_loop.cc",
"tests/test_flash_message_loop.h",
"tests/test_net_address_private.cc",
"tests/test_net_address_private.h",
"tests/test_pdf.cc",
"tests/test_pdf.h",
"tests/test_platform_verification_private.cc",
"tests/test_platform_verification_private.h",
"tests/test_tcp_socket_private_trusted.cc",
"tests/test_tcp_socket_private_trusted.h",
"tests/test_url_util.cc",
"tests/test_url_util.h",
"tests/test_utils.h",
"tests/test_video_decoder_dev.cc",
"tests/test_video_decoder_dev.h",
"tests/test_x509_certificate_private.cc",
"tests/test_x509_certificate_private.h",
# Deprecated test cases.
"tests/test_instance_deprecated.cc",
"tests/test_instance_deprecated.h",
"tests/test_var_deprecated.cc",
"tests/test_var_deprecated.h",
]
configs += [
"//build/config:precompiled_headers",
@ -62,18 +240,15 @@ source_set("ppapi_tests_sources") {
]
}
if (!is_mac) {
shared_library("ppapi_tests") {
deps = [
":ppapi_tests_sources",
]
}
if (is_mac) {
ppapi_tests_target_type = "mac_plugin_bundle"
} else {
mac_plugin_bundle("ppapi_tests") {
deps = [
":ppapi_tests_sources",
]
}
ppapi_tests_target_type = "shared_library"
}
target(ppapi_tests_target_type, "ppapi_tests") {
deps = [
":ppapi_tests_sources",
]
}
source_set("power_saver_test_plugin_sources") {
@ -241,39 +416,6 @@ executable("pepper_hash_for_uma") {
]
}
if (is_nacl_glibc) {
shared_library("ppapi_cpp_lib") {
# When using gcc, we hide all symbols by default, but that breaks at
# link time as the test executable requires symbols defined in the
# shared library.
configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
configs += [ "//build/config/gcc:symbol_visibility_default" ]
sources = ppapi_sources.cpp_source_files
sources += [
"cpp/module_embedder.h",
"cpp/ppp_entrypoints.cc",
]
cflags = [ "-fPIC" ]
deps = [
"//build/config/nacl:nacl_base",
]
}
} else {
static_library("ppapi_cpp_lib") {
# This library is distributed as a part of the SDK and as such has to
# be a static library rather than a source set.
sources = ppapi_sources.cpp_source_files
sources += [
"cpp/module_embedder.h",
"cpp/ppp_entrypoints.cc",
]
deps = [
"//build/config/nacl:nacl_base",
]
}
}
source_set("ppapi_gles2_lib") {
include_dirs = [ "lib/gl/include" ]
sources = [
@ -292,14 +434,22 @@ if (enable_nacl) {
if (is_nacl) {
nacl_test_data("ppapi_nacl_tests") {
include_dirs = [ "lib/gl/include" ]
sources = ppapi_sources.test_common_source_files +
ppapi_sources.test_nacl_source_files
sources = test_common_source_files
sources += [
"tests/test_nacl_irt_stack_alignment.cc",
"tests/test_nacl_irt_stack_alignment.h",
"tests/test_tcp_server_socket_private_disallowed.cc",
"tests/test_tcp_socket_private_disallowed.cc",
"tests/test_udp_socket_private_disallowed.cc",
]
defines = [
"GL_GLEXT_PROTOTYPES",
"PPAPI_TEST_IMPLEMENTATION",
]
deps = [
":ppapi_cpp_lib",
"//ppapi/cpp",
]
if (current_cpu == "pnacl") {
pretranslate_pexe = true

@ -2,9 +2,146 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//ppapi/ppapi_sources.gni")
# These are just headers.
source_set("c") {
sources = rebase_path(ppapi_sources.c_source_files, ".", "..")
sources = [
"pp_array_output.h",
"pp_bool.h",
"pp_codecs.h",
"pp_completion_callback.h",
"pp_errors.h",
"pp_file_info.h",
"pp_graphics_3d.h",
"pp_input_event.h",
"pp_instance.h",
"pp_macros.h",
"pp_module.h",
"pp_point.h",
"pp_rect.h",
"pp_resource.h",
"pp_size.h",
"pp_stdint.h",
"pp_time.h",
"pp_touch_point.h",
"pp_var.h",
"ppb.h",
"ppb_audio.h",
"ppb_audio_buffer.h",
"ppb_audio_config.h",
"ppb_audio_encoder.h",
"ppb_compositor.h",
"ppb_console.h",
"ppb_core.h",
"ppb_file_io.h",
"ppb_file_ref.h",
"ppb_file_system.h",
"ppb_fullscreen.h",
"ppb_gamepad.h",
"ppb_graphics_2d.h",
"ppb_graphics_3d.h",
"ppb_host_resolver.h",
"ppb_image_data.h",
"ppb_input_event.h",
"ppb_instance.h",
"ppb_media_stream_audio_track.h",
"ppb_media_stream_video_track.h",
"ppb_message_loop.h",
"ppb_messaging.h",
"ppb_mouse_cursor.h",
"ppb_mouse_lock.h",
"ppb_net_address.h",
"ppb_network_list.h",
"ppb_network_monitor.h",
"ppb_network_proxy.h",
"ppb_opengles2.h",
"ppb_ppb_vpn_provider.h",
"ppb_tcp_socket.h",
"ppb_text_input_controller.h",
"ppb_udp_socket.h",
"ppb_url_loader.h",
"ppb_url_request_info.h",
"ppb_url_response_info.h",
"ppb_var.h",
"ppb_var_array.h",
"ppb_var_array_buffer.h",
"ppb_var_dictionary.h",
"ppb_video_decoder.h",
"ppb_video_encoder.h",
"ppb_video_frame.h",
"ppb_view.h",
"ppb_websocket.h",
"ppp.h",
"ppp_graphics_3d.h",
"ppp_input_event.h",
"ppp_instance.h",
"ppp_messaging.h",
"ppp_mouse_lock.h",
# Dev interfaces.
"dev/pp_cursor_type_dev.h",
"dev/pp_video_dev.h",
"dev/ppb_buffer_dev.h",
"dev/ppb_char_set_dev.h",
"dev/ppb_cursor_control_dev.h",
"dev/ppb_device_ref_dev.h",
"dev/ppb_file_chooser_dev.h",
"dev/ppb_ime_input_event_dev.h",
"dev/ppb_memory_dev.h",
"dev/ppb_printing_dev.h",
"dev/ppb_text_input_dev.h",
"dev/ppb_truetype_font_dev.h",
"dev/ppb_url_util_dev.h",
"dev/ppb_video_decoder_dev.h",
"dev/ppp_network_state_dev.h",
"dev/ppp_text_input_dev.h",
"dev/ppp_video_decoder_dev.h",
# Private interfaces.
"private/pp_file_handle.h",
"private/pp_private_font_charset.h",
"private/pp_video_frame_private.h",
"private/ppb_camera_capabilities_private.h",
"private/ppb_camera_device_private.h",
"private/ppb_content_decryptor_private.h",
"private/ppb_ext_crx_file_system_private.h",
"private/ppb_find_private.h",
"private/ppb_flash.h",
"private/ppb_flash_clipboard.h",
"private/ppb_flash_file.h",
"private/ppb_flash_font_file.h",
"private/ppb_flash_fullscreen.h",
"private/ppb_flash_menu.h",
"private/ppb_flash_message_loop.h",
"private/ppb_host_resolver_private.h",
"private/ppb_instance_private.h",
"private/ppb_isolated_file_system_private.h",
"private/ppb_net_address_private.h",
"private/ppb_output_protection_private.h",
"private/ppb_pdf.h",
"private/ppb_platform_verification_private.h",
"private/ppb_proxy_private.h",
"private/ppb_tcp_server_socket_private.h",
"private/ppb_tcp_socket_private.h",
"private/ppb_testing_private.h",
"private/ppb_udp_socket_private.h",
"private/ppb_uma_private.h",
"private/ppb_video_destination_private.h",
"private/ppb_video_source_private.h",
"private/ppb_x509_certificate_private.h",
"private/ppp_content_decryptor_private.h",
"private/ppp_find_private.h",
"private/ppp_instance_private.h",
# Deprecated interfaces.
"dev/deprecated_bool.h",
"dev/ppb_var_deprecated.h",
"dev/ppp_class_deprecated.h",
# Trusted interfaces.
"trusted/ppb_broker_trusted.h",
"trusted/ppb_browser_font_trusted.h",
"trusted/ppb_file_chooser_trusted.h",
"trusted/ppb_url_loader_trusted.h",
"trusted/ppp_broker.h",
]
}

@ -2,11 +2,21 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//ppapi/ppapi_sources.gni")
if (is_nacl) {
import("//build/config/nacl/config.gni")
}
if (is_nacl && is_nacl_glibc) {
cpp_target_type = "shared_library"
} else {
cpp_target_type = "static_library"
}
# Link to this target to get the PPAPI C++ wrapper objects and plugin startup
# code. See also "objects" below.
source_set("cpp") {
target(cpp_target_type, "cpp") {
output_name = "ppapi_cpp_lib"
sources = [
"module_embedder.h",
"ppp_entrypoints.cc",
@ -16,12 +26,282 @@ source_set("cpp") {
":objects",
"//ppapi/c",
]
if (is_nacl) {
public_deps += [ "//build/config/nacl:nacl_base" ]
if (is_nacl_glibc) {
# When using gcc, we hide all symbols by default, but that breaks at
# link time as the test executable requires symbols defined in the
# shared library.
configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
configs += [ "//build/config/gcc:symbol_visibility_default" ]
cflags = [ "-fPIC" ]
} else {
# This library is distributed as a part of the SDK and as such has to
# be a static library rather than a source set.
complete_static_lib = true
}
}
}
# Link to this target to get only the PPAPI C++ wrapper objects but not the
# plugin startup code. Some plugins need special startup code that they supply
# themselves.
source_set("objects") {
sources = rebase_path(ppapi_sources.cpp_source_files, ".", "..")
sources = [
"array_output.cc",
"array_output.h",
"audio.cc",
"audio.h",
"audio_buffer.cc",
"audio_buffer.h",
"audio_config.cc",
"audio_config.h",
"audio_encoder.cc",
"audio_encoder.h",
"completion_callback.h",
"compositor.cc",
"compositor.h",
"compositor_layer.cc",
"compositor_layer.h",
"core.cc",
"core.h",
"directory_entry.cc",
"directory_entry.h",
"file_io.cc",
"file_io.h",
"file_ref.cc",
"file_ref.h",
"file_system.cc",
"file_system.h",
"fullscreen.cc",
"fullscreen.h",
"graphics_2d.cc",
"graphics_2d.h",
"graphics_3d.cc",
"graphics_3d.h",
"graphics_3d_client.cc",
"graphics_3d_client.h",
"host_resolver.cc",
"host_resolver.h",
"image_data.cc",
"image_data.h",
"input_event.cc",
"input_event.h",
"instance.cc",
"instance.h",
"instance_handle.cc",
"instance_handle.h",
"logging.h",
"media_stream_audio_track.cc",
"media_stream_audio_track.h",
"media_stream_video_track.cc",
"media_stream_video_track.h",
"message_handler.h",
"message_loop.cc",
"message_loop.h",
"module.cc",
"module.h",
"module_impl.h",
"mouse_cursor.cc",
"mouse_cursor.h",
"mouse_lock.cc",
"mouse_lock.h",
"net_address.cc",
"net_address.h",
"network_list.cc",
"network_list.h",
"network_monitor.cc",
"network_monitor.h",
"network_proxy.cc",
"network_proxy.h",
"output_traits.h",
"point.h",
"rect.cc",
"rect.h",
"resource.cc",
"resource.h",
"size.h",
"tcp_socket.cc",
"tcp_socket.h",
"text_input_controller.cc",
"text_input_controller.h",
"touch_point.h",
"udp_socket.cc",
"udp_socket.h",
"url_loader.cc",
"url_loader.h",
"url_request_info.cc",
"url_request_info.h",
"url_response_info.cc",
"url_response_info.h",
"var.cc",
"var.h",
"var_array.cc",
"var_array.h",
"var_array_buffer.cc",
"var_array_buffer.h",
"var_dictionary.cc",
"var_dictionary.h",
"video_decoder.cc",
"video_decoder.h",
"video_encoder.cc",
"video_encoder.h",
"video_frame.cc",
"video_frame.h",
"view.cc",
"view.h",
"vpn_provider.cc",
"vpn_provider.h",
"websocket.cc",
"websocket.h",
# Dev interfaces.
"dev/audio_input_dev.cc",
"dev/audio_input_dev.h",
"dev/buffer_dev.cc",
"dev/buffer_dev.h",
"dev/crypto_dev.cc",
"dev/crypto_dev.h",
"dev/cursor_control_dev.cc",
"dev/cursor_control_dev.h",
"dev/device_ref_dev.cc",
"dev/device_ref_dev.h",
"dev/file_chooser_dev.cc",
"dev/file_chooser_dev.h",
"dev/ime_input_event_dev.cc",
"dev/ime_input_event_dev.h",
"dev/memory_dev.cc",
"dev/memory_dev.h",
"dev/printing_dev.cc",
"dev/printing_dev.h",
"dev/text_input_dev.cc",
"dev/text_input_dev.h",
"dev/truetype_font_dev.cc",
"dev/truetype_font_dev.h",
"dev/url_util_dev.cc",
"dev/url_util_dev.h",
"dev/video_capture_client_dev.cc",
"dev/video_capture_client_dev.h",
"dev/video_capture_dev.cc",
"dev/video_capture_dev.h",
"dev/video_decoder_client_dev.cc",
"dev/video_decoder_client_dev.h",
"dev/video_decoder_dev.cc",
"dev/video_decoder_dev.h",
"dev/view_dev.cc",
"dev/view_dev.h",
# Deprecated interfaces.
"dev/scriptable_object_deprecated.cc",
"dev/scriptable_object_deprecated.h",
# Private interfaces.
"private/camera_capabilities_private.cc",
"private/camera_capabilities_private.h",
"private/camera_device_private.cc",
"private/camera_device_private.h",
"private/content_decryptor_private.cc",
"private/content_decryptor_private.h",
"private/ext_crx_file_system_private.cc",
"private/ext_crx_file_system_private.h",
"private/file_io_private.cc",
"private/file_io_private.h",
"private/find_private.cc",
"private/find_private.h",
"private/flash.cc",
"private/flash.h",
"private/flash_clipboard.cc",
"private/flash_clipboard.h",
"private/flash_device_id.cc",
"private/flash_device_id.h",
"private/flash_drm.cc",
"private/flash_drm.h",
"private/flash_file.cc",
"private/flash_file.h",
"private/flash_font_file.cc",
"private/flash_font_file.h",
"private/flash_fullscreen.cc",
"private/flash_fullscreen.h",
"private/flash_menu.cc",
"private/flash_menu.h",
"private/flash_message_loop.cc",
"private/flash_message_loop.h",
"private/host_resolver_private.cc",
"private/host_resolver_private.h",
"private/instance_private.cc",
"private/instance_private.h",
"private/isolated_file_system_private.cc",
"private/isolated_file_system_private.h",
"private/net_address_private.cc",
"private/net_address_private.h",
"private/output_protection_private.cc",
"private/output_protection_private.h",
"private/pass_file_handle.cc",
"private/pass_file_handle.h",
"private/pdf.cc",
"private/pdf.h",
"private/platform_verification.cc",
"private/platform_verification.h",
"private/tcp_server_socket_private.cc",
"private/tcp_server_socket_private.h",
"private/tcp_socket_private.cc",
"private/tcp_socket_private.h",
"private/udp_socket_private.cc",
"private/udp_socket_private.h",
"private/uma_private.cc",
"private/uma_private.h",
"private/var_private.cc",
"private/var_private.h",
"private/video_destination_private.cc",
"private/video_destination_private.h",
"private/video_frame_private.cc",
"private/video_frame_private.h",
"private/video_source_private.cc",
"private/video_source_private.h",
"private/x509_certificate_private.cc",
"private/x509_certificate_private.h",
# Trusted interfaces.
"trusted/browser_font_trusted.cc",
"trusted/browser_font_trusted.h",
"trusted/file_chooser_trusted.cc",
"trusted/file_chooser_trusted.h",
# Utility sources.
"../utility/completion_callback_factory.h",
"../utility/completion_callback_factory_thread_traits.h",
"../utility/graphics/paint_aggregator.cc",
"../utility/graphics/paint_aggregator.h",
"../utility/graphics/paint_manager.cc",
"../utility/graphics/paint_manager.h",
"../utility/threading/lock.cc",
"../utility/threading/lock.h",
"../utility/threading/simple_thread.cc",
"../utility/threading/simple_thread.h",
"../utility/websocket/websocket_api.cc",
"../utility/websocket/websocket_api.h",
]
configs += [ "//build/config:precompiled_headers" ]
public_deps = [
"//ppapi/c",
]
if (is_nacl) {
public_deps += [ "//build/config/nacl:nacl_base" ]
if (is_nacl_glibc) {
# When using gcc, we hide all symbols by default, but that breaks at
# link time as the test executable requires symbols defined in the
# shared library.
configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
configs += [ "//build/config/gcc:symbol_visibility_default" ]
cflags = [ "-fPIC" ]
}
}
}

@ -1,319 +0,0 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'includes': [
'../../build/common_untrusted.gypi',
],
'conditions': [
['disable_nacl==0 and disable_nacl_untrusted==0', {
'targets': [
{
'target_name': 'ppapi_lib',
'type': 'none',
'dependencies': [
'../../native_client/src/untrusted/pthread/pthread.gyp:pthread_lib',
'src/untrusted/irt_stub/irt_stub.gyp:ppapi_stub_lib',
],
'include_dirs': [
'..',
],
'copies': [
{
'destination': '>(tc_include_dir_newlib)/nacl',
'files': [
'src/shared/ppapi_proxy/ppruntime.h',
],
},
{
'destination': '>(tc_lib_dir_pnacl_newlib)',
'files': [
'src/untrusted/irt_stub/libppapi.a',
],
},
],
'conditions': [
['target_arch=="ia32" or target_arch=="x64"', {
'copies': [
{
'destination': '>(tc_include_dir_glibc)/include/nacl',
'files': [
'src/shared/ppapi_proxy/ppruntime.h',
],
},
],
}],
['target_arch=="ia32"', {
'copies': [
# Here we copy linker scripts out of the Native Client repo..
# These are source, not build artifacts.
{
'destination': '>(tc_lib_dir_newlib32)',
'files': [
'src/untrusted/irt_stub/libppapi.a',
],
},
{
'destination': '>(tc_lib_dir_glibc32)',
'files': [
'src/untrusted/irt_stub/libppapi.a',
'src/untrusted/irt_stub/libppapi.so',
],
},
],
}],
['target_arch=="x64" or (target_arch=="ia32" and OS=="win")', {
'copies': [
{
'destination': '>(tc_lib_dir_newlib64)',
'files': [
'src/untrusted/irt_stub/libppapi.a',
],
},
{
'destination': '>(tc_lib_dir_glibc64)',
'files': [
'src/untrusted/irt_stub/libppapi.a',
'src/untrusted/irt_stub/libppapi.so',
],
},
]
}],
['target_arch=="arm"', {
'copies': [
{
'destination': '>(tc_lib_dir_newlib_arm)',
'files': [
'src/untrusted/irt_stub/libppapi.a',
],
},
{
'destination': '>(tc_lib_dir_glibc_arm)',
'files': [
'src/untrusted/irt_stub/libppapi.a',
'src/untrusted/irt_stub/libppapi.so',
],
},
]
}],
['target_arch=="mipsel"', {
'copies': [
{
'destination': '>(tc_lib_dir_newlib_mips)',
'files': [
'src/untrusted/irt_stub/libppapi.a',
],
},
]
}]
],
},
{
'target_name': 'nacl_irt',
'type': 'none',
'variables': {
'nexe_target': 'nacl_irt',
# These out_* fields override the default filenames, which
# include a "_newlib" suffix and places them in the target
# directory.
'out_newlib64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
'out_newlib32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
'out_newlib_arm': '<(PRODUCT_DIR)/nacl_irt_arm.nexe',
'out_newlib_mips': '<(PRODUCT_DIR)/nacl_irt_mips32.nexe',
'build_glibc': 0,
'build_newlib': 0,
'build_irt': 1,
'include_dirs': [
'..',
],
'link_flags': [
'-Wl,--start-group',
'-lirt_browser',
'-lpnacl_irt_shim_for_irt',
'-lppapi_proxy_nacl',
'-lppapi_ipc_nacl',
'-lppapi_shared_nacl',
'-lgles2_implementation_nacl',
'-lgles2_cmd_helper_nacl',
'-lgles2_utils_nacl',
'-lgfx_geometry_nacl',
'-lgfx_ipc_geometry_nacl',
'-lcommand_buffer_client_nacl',
'-lcommand_buffer_common_nacl',
'-ltracing_nacl',
'-lgpu_ipc_nacl',
'-lipc_nacl',
'-lbase_nacl',
'-lshared_memory_support_nacl',
'-limc_syscalls',
'-lplatform',
'-lgio',
'-lmojo_cpp_bindings_nacl',
'-lmojo_cpp_system_nacl',
'-lmojo_public_system_nacl',
'-lmojo_system_impl_nacl',
'-Wl,--end-group',
'-lm',
],
'extra_args': [
'--strip-all',
],
'conditions': [
# untrusted.gypi and build_nexe.py currently build
# both x86-32 and x86-64 whenever target_arch is some
# flavor of x86. However, on non-windows platforms
# we only need one architecture.
['OS!="win" and target_arch=="ia32"',
{
'enable_x86_64': 0
}
],
['target_arch=="x64"',
{
'enable_x86_32': 0
}
],
['target_arch=="ia32" or target_arch=="x64"', {
'extra_deps_newlib64': [
'>(tc_lib_dir_irt64)/libppapi_proxy_nacl.a',
'>(tc_lib_dir_irt64)/libppapi_ipc_nacl.a',
'>(tc_lib_dir_irt64)/libppapi_shared_nacl.a',
'>(tc_lib_dir_irt64)/libgles2_implementation_nacl.a',
'>(tc_lib_dir_irt64)/libcommand_buffer_client_nacl.a',
'>(tc_lib_dir_irt64)/libcommand_buffer_common_nacl.a',
'>(tc_lib_dir_irt64)/libgpu_ipc_nacl.a',
'>(tc_lib_dir_irt64)/libtracing_nacl.a',
'>(tc_lib_dir_irt64)/libgles2_cmd_helper_nacl.a',
'>(tc_lib_dir_irt64)/libgles2_utils_nacl.a',
'>(tc_lib_dir_irt64)/libgfx_geometry_nacl.a',
'>(tc_lib_dir_irt64)/libgfx_ipc_geometry_nacl.a',
'>(tc_lib_dir_irt64)/libipc_nacl.a',
'>(tc_lib_dir_irt64)/libbase_nacl.a',
'>(tc_lib_dir_irt64)/libirt_browser.a',
'>(tc_lib_dir_irt64)/libpnacl_irt_shim_for_irt.a',
'>(tc_lib_dir_irt64)/libshared_memory_support_nacl.a',
'>(tc_lib_dir_irt64)/libplatform.a',
'>(tc_lib_dir_irt64)/libimc_syscalls.a',
'>(tc_lib_dir_irt64)/libgio.a',
'>(tc_lib_dir_irt64)/libmojo_cpp_bindings_nacl.a',
'>(tc_lib_dir_irt64)/libmojo_cpp_system_nacl.a',
'>(tc_lib_dir_irt64)/libmojo_public_system_nacl.a',
'>(tc_lib_dir_irt64)/libmojo_system_impl_nacl.a',
],
'extra_deps_newlib32': [
'>(tc_lib_dir_irt32)/libppapi_proxy_nacl.a',
'>(tc_lib_dir_irt32)/libppapi_ipc_nacl.a',
'>(tc_lib_dir_irt32)/libppapi_shared_nacl.a',
'>(tc_lib_dir_irt32)/libgles2_implementation_nacl.a',
'>(tc_lib_dir_irt32)/libcommand_buffer_client_nacl.a',
'>(tc_lib_dir_irt32)/libcommand_buffer_common_nacl.a',
'>(tc_lib_dir_irt32)/libgpu_ipc_nacl.a',
'>(tc_lib_dir_irt32)/libtracing_nacl.a',
'>(tc_lib_dir_irt32)/libgles2_cmd_helper_nacl.a',
'>(tc_lib_dir_irt32)/libgles2_utils_nacl.a',
'>(tc_lib_dir_irt32)/libgfx_geometry_nacl.a',
'>(tc_lib_dir_irt32)/libgfx_ipc_geometry_nacl.a',
'>(tc_lib_dir_irt32)/libipc_nacl.a',
'>(tc_lib_dir_irt32)/libbase_nacl.a',
'>(tc_lib_dir_irt32)/libirt_browser.a',
'>(tc_lib_dir_irt32)/libpnacl_irt_shim_for_irt.a',
'>(tc_lib_dir_irt32)/libshared_memory_support_nacl.a',
'>(tc_lib_dir_irt32)/libplatform.a',
'>(tc_lib_dir_irt32)/libimc_syscalls.a',
'>(tc_lib_dir_irt32)/libgio.a',
'>(tc_lib_dir_irt32)/libmojo_cpp_bindings_nacl.a',
'>(tc_lib_dir_irt32)/libmojo_cpp_system_nacl.a',
'>(tc_lib_dir_irt32)/libmojo_public_system_nacl.a',
'>(tc_lib_dir_irt32)/libmojo_system_impl_nacl.a',
],
}],
['target_arch=="arm"', {
'extra_deps_arm': [
'>(tc_lib_dir_irt_arm)/libppapi_proxy_nacl.a',
'>(tc_lib_dir_irt_arm)/libppapi_ipc_nacl.a',
'>(tc_lib_dir_irt_arm)/libppapi_shared_nacl.a',
'>(tc_lib_dir_irt_arm)/libgles2_implementation_nacl.a',
'>(tc_lib_dir_irt_arm)/libcommand_buffer_client_nacl.a',
'>(tc_lib_dir_irt_arm)/libcommand_buffer_common_nacl.a',
'>(tc_lib_dir_irt_arm)/libgpu_ipc_nacl.a',
'>(tc_lib_dir_irt_arm)/libtracing_nacl.a',
'>(tc_lib_dir_irt_arm)/libgles2_cmd_helper_nacl.a',
'>(tc_lib_dir_irt_arm)/libgles2_utils_nacl.a',
'>(tc_lib_dir_irt_arm)/libgfx_geometry_nacl.a',
'>(tc_lib_dir_irt_arm)/libgfx_ipc_geometry_nacl.a',
'>(tc_lib_dir_irt_arm)/libipc_nacl.a',
'>(tc_lib_dir_irt_arm)/libbase_nacl.a',
'>(tc_lib_dir_irt_arm)/libirt_browser.a',
'>(tc_lib_dir_irt_arm)/libpnacl_irt_shim_for_irt.a',
'>(tc_lib_dir_irt_arm)/libshared_memory_support_nacl.a',
'>(tc_lib_dir_irt_arm)/libplatform.a',
'>(tc_lib_dir_irt_arm)/libimc_syscalls.a',
'>(tc_lib_dir_irt_arm)/libgio.a',
'>(tc_lib_dir_irt_arm)/libmojo_cpp_bindings_nacl.a',
'>(tc_lib_dir_irt_arm)/libmojo_cpp_system_nacl.a',
'>(tc_lib_dir_irt_arm)/libmojo_public_system_nacl.a',
'>(tc_lib_dir_irt_arm)/libmojo_system_impl_nacl.a',
],
}],
['target_arch=="mipsel"', {
'extra_deps_mips': [
'>(tc_lib_dir_irt_mips)/libppapi_proxy_nacl.a',
'>(tc_lib_dir_irt_mips)/libppapi_ipc_nacl.a',
'>(tc_lib_dir_irt_mips)/libppapi_shared_nacl.a',
'>(tc_lib_dir_irt_mips)/libgles2_implementation_nacl.a',
'>(tc_lib_dir_irt_mips)/libcommand_buffer_client_nacl.a',
'>(tc_lib_dir_irt_mips)/libcommand_buffer_common_nacl.a',
'>(tc_lib_dir_irt_mips)/libgpu_ipc_nacl.a',
'>(tc_lib_dir_irt_mips)/libtracing_nacl.a',
'>(tc_lib_dir_irt_mips)/libgles2_cmd_helper_nacl.a',
'>(tc_lib_dir_irt_mips)/libgles2_utils_nacl.a',
'>(tc_lib_dir_irt_mips)/libgfx_geometry_nacl.a',
'>(tc_lib_dir_irt_mips)/libgfx_ipc_geometry_nacl.a',
'>(tc_lib_dir_irt_mips)/libipc_nacl.a',
'>(tc_lib_dir_irt_mips)/libbase_nacl.a',
'>(tc_lib_dir_irt_mips)/libirt_browser.a',
'>(tc_lib_dir_irt_mips)/libpnacl_irt_shim_for_irt.a',
'>(tc_lib_dir_irt_mips)/libshared_memory_support_nacl.a',
'>(tc_lib_dir_irt_mips)/libplatform.a',
'>(tc_lib_dir_irt_mips)/libimc_syscalls.a',
'>(tc_lib_dir_irt_mips)/libgio.a',
'>(tc_lib_dir_irt_mips)/libmojo_cpp_bindings_nacl.a',
'>(tc_lib_dir_irt_mips)/libmojo_cpp_system_nacl.a',
'>(tc_lib_dir_irt_mips)/libmojo_public_system_nacl.a',
'>(tc_lib_dir_irt_mips)/libmojo_system_impl_nacl.a',
],
}],
],
},
'dependencies': [
'src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:irt',
'../ppapi_proxy_nacl.gyp:ppapi_proxy_nacl',
'../ppapi_ipc_nacl.gyp:ppapi_ipc_nacl',
'../ppapi_shared_nacl.gyp:ppapi_shared_nacl',
'../../gpu/command_buffer/command_buffer_nacl.gyp:gles2_utils_nacl',
'../../gpu/gpu_nacl.gyp:command_buffer_client_nacl',
'../../gpu/gpu_nacl.gyp:command_buffer_common_nacl',
'../../gpu/gpu_nacl.gyp:gles2_implementation_nacl',
'../../gpu/gpu_nacl.gyp:gles2_cmd_helper_nacl',
'../../gpu/gpu_nacl.gyp:gpu_ipc_nacl',
'../../components/tracing_nacl.gyp:tracing_nacl',
'../../ipc/ipc_nacl.gyp:ipc_nacl',
'../../base/base_nacl.gyp:base_nacl',
'../../media/media_nacl.gyp:shared_memory_support_nacl',
'../../mojo/mojo_edk_nacl.gyp:mojo_system_impl_nacl',
'../../mojo/mojo_public_nacl.gyp:mojo_cpp_bindings_nacl',
'../../mojo/mojo_public_nacl.gyp:mojo_cpp_system_nacl',
'../../mojo/mojo_public_nacl.gyp:mojo_public_system_nacl',
'../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib',
'../../native_client/src/shared/platform/platform.gyp:platform_lib',
'../../native_client/src/tools/tls_edit/tls_edit.gyp:tls_edit#host',
'../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib',
'../../native_client/src/shared/gio/gio.gyp:gio_lib',
],
},
],
}],
],
}

@ -1,34 +0,0 @@
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'includes': [
'../../../../../build/common_untrusted.gypi',
],
'targets' : [
{
'target_name': 'ppapi_stub_lib',
'type': 'none',
'variables': {
'nlib_target': 'libppapi_stub.a',
'build_glibc': 1,
'build_newlib': 1,
'build_pnacl_newlib': 1,
},
# Always compile libppapi_stub with -fPIC so that -lppapi can be linked
# into shared libraries (libppapi.so is a linker script that pulls in
# ppapi_stub).
'compile_flags': [ '-fPIC' ],
'include_dirs': [
'../../../..',
],
'sources': [
'plugin_main_irt.c',
'ppapi_plugin_main.c',
'ppapi_plugin_start.c',
'thread_creator.c'
],
},
],
}

@ -1,96 +0,0 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'includes': [
'../../../../../native_client/build/untrusted.gypi',
],
'targets': [
{
# The full library, which PNaCl uses for offline .pexe -> .nexe.
# We keep the target names in this file short to avoid having really long
# path names on Windows.
# https://code.google.com/p/nativeclient/issues/detail?id=3846
'target_name': 'aot',
'type': 'none',
'variables': {
'nlib_target': 'libpnacl_irt_shim.a',
'out_pnacl_newlib_arm': '>(tc_lib_dir_pnacl_translate)/lib-arm/>(nlib_target)',
'out_pnacl_newlib_x86_32': '>(tc_lib_dir_pnacl_translate)/lib-x86-32/>(nlib_target)',
'out_pnacl_newlib_x86_64': '>(tc_lib_dir_pnacl_translate)/lib-x86-64/>(nlib_target)',
'out_pnacl_newlib_mips': '>(tc_lib_dir_pnacl_translate)/lib-mips32/>(nlib_target)',
# TODO(hidehiko): When crrev.com/524573002 is submitted and NaCl
# repository is rolled out with the CL, then we can simply remove this
# variable, as it is no longer used.
'out_pnacl_newlib_x86_32_nonsfi': '>(tc_lib_dir_pnacl_translate)/lib-x86-32-nonsfi/>(nlib_target)',
'out_newlib32_nonsfi': '>(tc_lib_dir_pnacl_translate)/lib-x86-32-nonsfi/>(nlib_target)',
'out_pnacl_newlib_arm_nonsfi': '>(tc_lib_dir_pnacl_translate)/lib-arm-nonsfi/>(nlib_target)',
'out_newlib_arm_nonsfi': '>(tc_lib_dir_pnacl_translate)/lib-arm-nonsfi/>(nlib_target)',
'build_pnacl_newlib': 1,
'pnacl_native_biased': 1,
'enable_x86_32': 1,
'enable_x86_64': 1,
'enable_arm': 1,
'enable_mips': 1,
'enable_x86_32_nonsfi': 1,
'enable_arm_nonsfi': 1,
'sources': [
'irt_shim_ppapi.c',
'pnacl_shim.c',
'shim_entry.c',
'shim_ppapi.c',
],
'extra_args': [
'--strip-debug',
],
# Indicate that this variant of the shim library should not depend on
# the unstable/private IRT hook interface.
'compile_flags': [
'-DPNACL_SHIM_AOT',
],
},
},
# Smaller shim library for PNaCl in-browser translation.
# Uses an unstable IRT hook interface to get the shim from the IRT itself.
# If we ever change that hook interface or change the in-IRT shim's ABI,
# we would need to clear the translation cache to match the new IRT.
{
'target_name': 'browser',
'type': 'none',
'variables': {
# Use a different name from the AOT variant. Have the
# pnacl_support_extension rename this to the canonical name when
# copying to the final target directory.
'nlib_target': 'libpnacl_irt_shim_browser.a',
'build_newlib': 1,
'sources': [
'shim_entry.c',
'shim_ppapi.c',
],
'extra_args': [
'--strip-debug',
],
},
},
{
# Second half of shim library for PNaCl in-browser translation.
# This half goes into the IRT and is returned by the unstable
# IRT hook interface.
'target_name': 'irt',
'type': 'none',
'variables': {
'nlib_target': 'libpnacl_irt_shim_for_irt.a',
'build_glibc': 0,
'build_newlib': 0,
# Unlike the above, build this the way the IRT is built so that the
# output library directories match the IRT linking search paths.
'build_irt': 1,
'sources': [
'irt_shim_ppapi.c',
'pnacl_shim.c',
],
},
},
],
}

@ -1,180 +0,0 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
# re: untrusted.gypi -- Though this doesn't really use build_nexe.py or
# anything, it depends on untrusted nexes from the toolchain and for the shim.
'includes': [
'../../../../../build/common_untrusted.gypi',
],
'targets': [
{
'target_name': 'pnacl_support_extension',
'type': 'none',
'variables': {
'pnacl_translator_dir%': "<(DEPTH)/native_client/toolchain/<(TOOLCHAIN_OS)_x86/pnacl_translator",
'pnacl_translator_stamp%': "pnacl_translator.json",
'pnacl_output_prefix': '<(PRODUCT_DIR)/pnacl/pnacl_public_',
},
'conditions': [
['disable_nacl==0 and disable_pnacl==0 and disable_nacl_untrusted==0', {
'dependencies': [
'../../../../../ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:browser',
],
'sources': [
'pnacl_component_crx_gen.py',
],
# We could use 'copies', but we want to rename the files
# in a white-listed way first. Thus use a script.
'actions': [
{
'action_name': 'generate_pnacl_support_extension',
'inputs': [
'pnacl_component_crx_gen.py',
'<(DEPTH)/native_client/build/package_version/package_version.py',
# A stamp file representing the contents of pnacl_translator.
'<(pnacl_translator_dir)/<(pnacl_translator_stamp)',
'<(DEPTH)/native_client/pnacl/driver/pnacl_info_template.json',
'<(DEPTH)/native_client/toolchain_revisions/pnacl_translator.json',
],
'outputs': [
'<(pnacl_output_prefix)pnacl_json',
],
'conditions': [
# On Windows, for offline testing (i.e., without component updater
# selecting the platform-specific files with multi-CRXes), we need
# to stage both x86-32 and x86-64 (because 32-bit chrome on 64-bit
# windows will need 64-bit nexes).
['OS=="win"', {
'outputs': [
'<(pnacl_output_prefix)x86_32_crtbegin_o',
'<(pnacl_output_prefix)x86_32_ld_nexe',
'<(pnacl_output_prefix)x86_32_libcrt_platform_a',
'<(pnacl_output_prefix)x86_32_libgcc_a',
'<(pnacl_output_prefix)x86_32_libpnacl_irt_shim_a',
'<(pnacl_output_prefix)x86_32_pnacl_llc_nexe',
'<(pnacl_output_prefix)x86_32_pnacl_sz_nexe',
'<(pnacl_output_prefix)x86_64_crtbegin_o',
'<(pnacl_output_prefix)x86_64_ld_nexe',
'<(pnacl_output_prefix)x86_64_libcrt_platform_a',
'<(pnacl_output_prefix)x86_64_libgcc_a',
'<(pnacl_output_prefix)x86_64_libpnacl_irt_shim_a',
'<(pnacl_output_prefix)x86_64_pnacl_llc_nexe',
'<(pnacl_output_prefix)x86_64_pnacl_sz_nexe',
],
'inputs': [
'>(tc_lib_dir_newlib32)/libpnacl_irt_shim_browser.a',
'>(tc_lib_dir_newlib64)/libpnacl_irt_shim_browser.a',
],
'variables': {
'lib_overrides': [
# Use the two freshly generated shims.
'--lib_override=ia32,>(tc_lib_dir_newlib32)/libpnacl_irt_shim_browser.a,libpnacl_irt_shim.a',
'--lib_override=x64,>(tc_lib_dir_newlib64)/libpnacl_irt_shim_browser.a,libpnacl_irt_shim.a',
],
},
}],
# Non-windows installers only need the matching architecture.
['OS!="win"', {
'conditions': [
['target_arch=="arm"', {
'outputs': [
'<(pnacl_output_prefix)arm_crtbegin_o',
'<(pnacl_output_prefix)arm_ld_nexe',
'<(pnacl_output_prefix)arm_libcrt_platform_a',
'<(pnacl_output_prefix)arm_libgcc_a',
'<(pnacl_output_prefix)arm_libpnacl_irt_shim_a',
'<(pnacl_output_prefix)arm_pnacl_llc_nexe',
'<(pnacl_output_prefix)arm_pnacl_sz_nexe',
],
'inputs': [
'>(tc_lib_dir_newlib_arm)/libpnacl_irt_shim_browser.a',
],
'variables': {
'lib_overrides': [
# Use the freshly generated shim.
'--lib_override=arm,>(tc_lib_dir_newlib_arm)/libpnacl_irt_shim_browser.a,libpnacl_irt_shim.a',
],
},
}],
['target_arch=="mipsel"', {
'outputs': [
'<(pnacl_output_prefix)mips32_crtbegin_o',
'<(pnacl_output_prefix)mips32_ld_nexe',
'<(pnacl_output_prefix)mips32_libcrt_platform_a',
'<(pnacl_output_prefix)mips32_libgcc_a',
'<(pnacl_output_prefix)mips32_libpnacl_irt_shim_a',
'<(pnacl_output_prefix)mips32_pnacl_llc_nexe',
],
'inputs': [
'>(tc_lib_dir_newlib_mips)/libpnacl_irt_shim_browser.a',
],
'variables': {
'lib_overrides': [
# Use the freshly generated shim.
'--lib_override=mipsel,>(tc_lib_dir_newlib_mips)/libpnacl_irt_shim_browser.a,libpnacl_irt_shim.a',
],
},
}],
['target_arch=="ia32"', {
'outputs': [
'<(pnacl_output_prefix)x86_32_crtbegin_o',
'<(pnacl_output_prefix)x86_32_ld_nexe',
'<(pnacl_output_prefix)x86_32_libcrt_platform_a',
'<(pnacl_output_prefix)x86_32_libgcc_a',
'<(pnacl_output_prefix)x86_32_libpnacl_irt_shim_a',
'<(pnacl_output_prefix)x86_32_pnacl_llc_nexe',
'<(pnacl_output_prefix)x86_32_pnacl_sz_nexe',
],
'inputs': [
'>(tc_lib_dir_newlib32)/libpnacl_irt_shim_browser.a',
],
'variables': {
'lib_overrides': [
# Use the freshly generated shim.
'--lib_override=ia32,>(tc_lib_dir_newlib32)/libpnacl_irt_shim_browser.a,libpnacl_irt_shim.a',
],
},
}],
['target_arch=="x64"', {
'outputs': [
'<(pnacl_output_prefix)x86_64_crtbegin_o',
'<(pnacl_output_prefix)x86_64_ld_nexe',
'<(pnacl_output_prefix)x86_64_libcrt_platform_a',
'<(pnacl_output_prefix)x86_64_libgcc_a',
'<(pnacl_output_prefix)x86_64_libpnacl_irt_shim_a',
'<(pnacl_output_prefix)x86_64_pnacl_llc_nexe',
'<(pnacl_output_prefix)x86_64_pnacl_sz_nexe',
],
'inputs': [
'>(tc_lib_dir_newlib64)/libpnacl_irt_shim_browser.a',
],
'variables': {
'lib_overrides': [
# Use the freshly generated shim.
'--lib_override=x64,>(tc_lib_dir_newlib64)/libpnacl_irt_shim_browser.a,libpnacl_irt_shim.a',
],
},
}],
],
}],
],
'action': [
'python', 'pnacl_component_crx_gen.py',
'--dest=<(PRODUCT_DIR)/pnacl',
'<@(lib_overrides)',
'--target_arch=<(target_arch)',
'--info_template_path=<(DEPTH)/native_client/pnacl/driver/pnacl_info_template.json',
'--pnacl_translator_path=<(pnacl_translator_dir)',
'--package_version_path=<(DEPTH)/native_client/build/package_version/package_version.py',
'--pnacl_package_name=pnacl_translator',
# ABI Version Number.
'1',
],
},
],
}],
],
}],
}

@ -1,35 +0,0 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This is the "public" ppapi.gyp file, which must have dependencies on the
# redistributable portions of PPAPI only. This prevents circular dependencies
# in the .gyp files (since ppapi_internal depends on parts of Chrome).
{
'variables': {
'chromium_code': 1, # Use higher warning level.
},
'target_defaults': {
'conditions': [
# Linux shared libraries should always be built -fPIC.
#
# TODO(ajwong): For internal pepper plugins, which are statically linked
# into chrome, do we want to build w/o -fPIC? If so, how can we express
# that in the build system?
['os_posix == 1 and OS != "mac" and OS != "android"', {
'cflags': ['-fPIC', '-fvisibility=hidden'],
# This is needed to make the Linux shlib build happy. Without this,
# -fvisibility=hidden gets stripped by the exclusion in common.gypi
# that is triggered when a shared library build is specified.
'cflags/': [['include', '^-fvisibility=hidden$']],
}],
],
},
'includes': [
'ppapi_sources.gypi',
'ppapi_cpp.gypi',
'ppapi_gl.gypi',
],
}

@ -1,69 +0,0 @@
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Shared source lists between trusted and untrusted targets are stored in
# ppapi_sources.gypi.
{
'includes': [
'ppapi_sources.gypi',
],
'targets': [
{
# GN version: //ppapi/c
'target_name': 'ppapi_c',
'type': 'none',
'all_dependent_settings': {
'include_dirs+': [
'..',
],
},
'sources': [
'<@(c_source_files)',
],
},
{
# GN version: //ppapi/cpp:objects
'target_name': 'ppapi_cpp_objects',
'type': 'static_library',
'dependencies': [
'ppapi_c'
],
'include_dirs+': [
'..',
],
'sources': [
'<@(cpp_source_files)',
],
},
{
# GN version: //ppapi/cpp
'target_name': 'ppapi_cpp',
'type': 'static_library',
'dependencies': [
'ppapi_c',
'ppapi_cpp_objects',
],
'include_dirs+': [
'..',
],
'sources': [
'cpp/module_embedder.h',
'cpp/ppp_entrypoints.cc',
],
},
{
# GN version: //ppapi/cpp/private:internal_module
'target_name': 'ppapi_internal_module',
'type': 'static_library',
'include_dirs+': [
'..',
],
'sources': [
'cpp/private/internal_module.cc',
'cpp/private/internal_module.h',
]
},
],
}

@ -1,24 +0,0 @@
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
# GN version: //ppapi/lib/gl/gles2
'target_name': 'ppapi_gles2',
'type': 'static_library',
'dependencies': [
'ppapi_c',
],
'include_dirs': [
'lib/gl/include',
],
'sources': [
'lib/gl/gles2/gl2ext_ppapi.c',
'lib/gl/gles2/gl2ext_ppapi.h',
'lib/gl/gles2/gles2.c',
],
},
],
}

@ -1,49 +0,0 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
# GN version: //ppapi/host
'target_name': 'ppapi_host',
'type': '<(component)',
'dependencies': [
'../base/base.gyp:base',
'../ipc/ipc.gyp:ipc',
'../media/media.gyp:shared_memory_support',
'../ui/surface/surface.gyp:surface',
'../url/url.gyp:url_lib',
'ppapi.gyp:ppapi_c',
'ppapi_internal.gyp:ppapi_ipc',
'ppapi_internal.gyp:ppapi_proxy',
'ppapi_internal.gyp:ppapi_shared',
],
'defines': [
'PPAPI_HOST_IMPLEMENTATION',
],
'sources': [
# Note: sources list duplicated in GN build.
'host/dispatch_host_message.h',
'host/error_conversion.cc',
'host/error_conversion.h',
'host/host_factory.h',
'host/host_message_context.cc',
'host/host_message_context.h',
'host/instance_message_filter.cc',
'host/instance_message_filter.h',
'host/message_filter_host.cc',
'host/message_filter_host.h',
'host/ppapi_host.cc',
'host/ppapi_host.h',
'host/ppapi_host_export.h',
'host/resource_host.cc',
'host/resource_host.h',
'host/resource_message_filter.cc',
'host/resource_message_filter.h',
'host/resource_message_handler.cc',
'host/resource_message_handler.h',
],
},
],
}

@ -1,278 +0,0 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1, # Use higher warning level.
},
'target_defaults': {
'conditions': [
# Linux shared libraries should always be built -fPIC.
#
# TODO(ajwong): For internal pepper plugins, which are statically linked
# into chrome, do we want to build w/o -fPIC? If so, how can we express
# that in the build system?
['os_posix==1 and OS!="android" and OS!="mac"', {
'cflags': ['-fPIC', '-fvisibility=hidden'],
# This is needed to make the Linux shlib build happy. Without this,
# -fvisibility=hidden gets stripped by the exclusion in common.gypi
# that is triggered when a shared library build is specified.
'cflags/': [['include', '^-fvisibility=hidden$']],
}],
],
},
'includes': [
'ppapi_sources.gypi',
'ppapi_host.gypi',
'ppapi_ipc.gypi',
'ppapi_proxy.gypi',
'ppapi_shared.gypi',
'ppapi_tests.gypi',
],
'targets': [
{
# GN version: //ppapi/shared_impl and //ppapi/thunk
'target_name': 'ppapi_shared',
'type': '<(component)',
'variables': {
# Set the ppapi_shared_target variable, so that we will pull in the
# sources from ppapi_shared.gypi (and only from there). We follow the
# same pattern for the other targets defined within this file.
'ppapi_shared_target': 1,
},
'dependencies': [
'../base/base.gyp:base',
'../base/base.gyp:base_i18n',
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../gpu/command_buffer/command_buffer.gyp:gles2_utils',
'../gpu/gpu.gyp:command_buffer_client',
'../gpu/gpu.gyp:gles2_implementation',
'../ipc/ipc.gyp:ipc',
'../media/media.gyp:shared_memory_support',
'../skia/skia.gyp:skia',
'../third_party/icu/icu.gyp:icuuc',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../ui/surface/surface.gyp:surface',
'../url/url.gyp:url_lib',
'ppapi.gyp:ppapi_c',
],
'export_dependent_settings': [
'../base/base.gyp:base',
],
'conditions': [
['OS=="mac"', {
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
],
},
}],
],
},
],
'conditions': [
['component=="static_library"', {
# In a static build, build ppapi_ipc separately.
'targets': [
{
# GN version: //ppapi/proxy:ipc
'target_name': 'ppapi_ipc',
'type': 'static_library',
'variables': {
'ppapi_ipc_target': 1,
},
'dependencies': [
'../base/base.gyp:base',
'../gpu/gpu.gyp:command_buffer_traits',
'../ipc/ipc.gyp:ipc',
'../skia/skia.gyp:skia',
'../ui/gfx/ipc/geometry/gfx_ipc_geometry.gyp:gfx_ipc_geometry',
'ppapi.gyp:ppapi_c',
'ppapi_shared',
],
'all_dependent_settings': {
'include_dirs': [
'..',
],
},
},
{
# GN version: //ppapi/proxy
'target_name': 'ppapi_proxy',
'type': 'static_library',
'variables': {
'ppapi_proxy_target': 1,
},
'dependencies': [
'../base/base.gyp:base',
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../gin/gin.gyp:gin',
'../gpu/command_buffer/command_buffer.gyp:gles2_utils',
'../gpu/gpu.gyp:gles2_implementation',
'../gpu/gpu.gyp:command_buffer_traits',
'../media/media.gyp:shared_memory_support',
'../ipc/ipc.gyp:ipc',
'../mojo/mojo_edk.gyp:mojo_system_impl',
'../skia/skia.gyp:skia',
'../third_party/icu/icu.gyp:icuuc',
'../third_party/icu/icu.gyp:icui18n',
'../ui/surface/surface.gyp:surface',
'../ui/gfx/gfx.gyp:gfx_geometry',
'ppapi.gyp:ppapi_c',
'ppapi_shared',
'ppapi_ipc',
],
'all_dependent_settings': {
'include_dirs': [
'..',
],
},
'conditions': [
['chrome_multiple_dll==1', {
'dependencies': [
'../third_party/WebKit/public/blink.gyp:blink_minimal',
],
}, {
'dependencies': [
'../third_party/WebKit/public/blink.gyp:blink',
],
}],
],
},
],
},
{ # component != static_library
# In the component build, we'll just build ppapi_ipc in to ppapi_proxy.
'targets': [
{
# GN version: //ppapi:ppapi_proxy
'target_name': 'ppapi_proxy',
'type': 'shared_library',
'variables': {
# Setting both variables means we pull in the sources from both
# ppapi_ipc.gypi and ppapi_proxy.gypi.
'ppapi_ipc_target': 1,
'ppapi_proxy_target': 1,
},
'dependencies': [
'../base/base.gyp:base',
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../gin/gin.gyp:gin',
'../gpu/command_buffer/command_buffer.gyp:gles2_utils',
'../gpu/gpu.gyp:gles2_implementation',
'../gpu/gpu.gyp:command_buffer_traits',
'../media/media.gyp:shared_memory_support',
'../mojo/mojo_edk.gyp:mojo_system_impl',
'../ipc/ipc.gyp:ipc',
'../skia/skia.gyp:skia',
'../third_party/icu/icu.gyp:icuuc',
'../third_party/icu/icu.gyp:icui18n',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../ui/gfx/ipc/geometry/gfx_ipc_geometry.gyp:gfx_ipc_geometry',
'../ui/surface/surface.gyp:surface',
'ppapi.gyp:ppapi_c',
'ppapi_shared',
],
'all_dependent_settings': {
'include_dirs': [
'..',
],
},
'conditions': [
['chrome_multiple_dll==1', {
'dependencies': [
'../third_party/WebKit/public/blink.gyp:blink_minimal',
],
}, {
'dependencies': [
'../third_party/WebKit/public/blink.gyp:blink',
],
}],
],
},
{
# In component build, this is just a phony target that makes sure
# ppapi_proxy is built, since that's where the ipc sources go in the
# component build.
'target_name': 'ppapi_ipc',
'type': 'none',
'dependencies': [
'ppapi_proxy',
],
},
],
}],
['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', {
# In windows builds, we also want to define some targets to build in
# 64-bit mode for use by nacl64.exe (the NaCl helper process for 64-bit
# Windows).
'targets': [
{
# GN version: //ppapi:ppapi_shared
# (Should be automagical when compiling in the 64-bit toolchain.)
'target_name': 'ppapi_shared_win64',
'type': '<(component)',
'variables': {
'nacl_win64_target': 1,
'ppapi_shared_target': 1,
},
'dependencies': [
'ppapi.gyp:ppapi_c',
'../base/base.gyp:base_win64',
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
'../gpu/gpu.gyp:command_buffer_common_win64',
'../ipc/ipc.gyp:ipc_win64',
'../ui/gfx/gfx.gyp:gfx_geometry_win64',
],
'defines': [
'<@(nacl_win64_defines)',
],
'export_dependent_settings': [
'../base/base.gyp:base_win64',
],
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
},
{
# GN version: //ppapi:ppapi_ipc
# (Should be automagical when compiling in the 64-bit toolchain.)
'target_name': 'ppapi_ipc_win64',
'type': 'static_library',
'variables': {
'nacl_win64_target': 1,
'ppapi_ipc_target': 1,
},
'dependencies': [
'../base/base.gyp:base_win64',
'../ipc/ipc.gyp:ipc_win64',
'../gpu/gpu.gyp:command_buffer_traits_win64',
'../ui/gfx/gfx.gyp:gfx_geometry_win64',
'../ui/gfx/ipc/geometry/gfx_ipc_geometry.gyp:gfx_ipc_geometry_win64',
'ppapi.gyp:ppapi_c',
'ppapi_shared_win64',
],
'export_dependent_settings': [
'../gpu/gpu.gyp:command_buffer_traits_win64',
],
'defines': [
'<@(nacl_win64_defines)',
],
'all_dependent_settings': {
'include_dirs': [
'..',
],
},
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
}],
}],
],
}

@ -1,48 +0,0 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'target_defaults': {
'variables': {
'nacl_win64_target': 0,
'ppapi_ipc_target': 0,
},
'target_conditions': [
# This part is shared between the targets defined below.
['ppapi_ipc_target==1', {
'sources': [
'proxy/nacl_message_scanner.cc',
'proxy/nacl_message_scanner.h',
'proxy/ppapi_messages.cc',
'proxy/ppapi_messages.h',
'proxy/ppapi_param_traits.cc',
'proxy/ppapi_param_traits.h',
'proxy/raw_var_data.cc',
'proxy/raw_var_data.h',
'proxy/resource_message_params.cc',
'proxy/resource_message_params.h',
'proxy/serialized_flash_menu.cc',
'proxy/serialized_flash_menu.h',
'proxy/serialized_handle.cc',
'proxy/serialized_handle.h',
'proxy/serialized_structs.cc',
'proxy/serialized_structs.h',
'proxy/serialized_var.cc',
'proxy/serialized_var.h',
'proxy/var_serialization_rules.h',
],
'include_dirs': [
'..',
],
'target_conditions': [
['>(nacl_untrusted_build)==1 or >(nacl_win64_target)==1', {
'sources!': [
'proxy/serialized_flash_menu.cc',
],
}],
],
}],
],
},
}

@ -1,46 +0,0 @@
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../native_client/build/untrusted.gypi',
'ppapi_ipc.gypi',
],
'conditions': [
['disable_nacl==0 and disable_nacl_untrusted==0', {
'targets': [
{
'target_name': 'ppapi_ipc_nacl',
'type': 'none',
'variables': {
'ppapi_ipc_target': 1,
'nacl_win64_target': 0,
'nacl_untrusted_build': 1,
'nlib_target': 'libppapi_ipc_nacl.a',
'build_glibc': 0,
'build_newlib': 0,
'build_irt': 1,
'build_pnacl_newlib': 0,
'build_nonsfi_helper': 1,
},
'include_dirs': [
'..',
],
'dependencies': [
'../base/base_nacl.gyp:base_nacl',
'../base/base_nacl.gyp:base_nacl_nonsfi',
'../gpu/gpu_nacl.gyp:gpu_ipc_nacl',
'../ipc/ipc_nacl.gyp:ipc_nacl',
'../ipc/ipc_nacl.gyp:ipc_nacl_nonsfi',
'../ppapi/ppapi_shared_nacl.gyp:ppapi_shared_nacl',
'../components/tracing_nacl.gyp:tracing_nacl',
],
},
],
}],
],
}

@ -1,402 +0,0 @@
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This GYP file defines untrusted (NaCl) targets. All targets in this
# file should be conditionally depended upon via 'disable_nacl!=1' to avoid
# requiring NaCl sources for building.
{
'includes': [
'../build/common_untrusted.gypi',
'ppapi_sources.gypi',
],
'targets': [
{
'target_name': 'nacl_elf_loader',
'type': 'none',
'conditions': [
['target_arch=="arm" and disable_glibc==0', {
'dependencies': [
'<(DEPTH)/native_client/src/untrusted/elf_loader/elf_loader.gyp:elf_loader_nexe',
],
'actions': [
{
'action_name': 'copy_arm_elf_loader',
'message': 'Copying elf_loader_arm.nexe',
'inputs': [
'<(PRODUCT_DIR)/elf_loader_newlib_arm.nexe',
],
'outputs': [
'>(tc_lib_dir_glibc_arm)/elf_loader_arm.nexe',
],
'action': [
'python', '<(DEPTH)/build/cp.py', '>@(_inputs)', '>@(_outputs)'
],
}],
}],
],
},
{
'target_name': 'ppapi_cpp_lib',
'type': 'none',
'variables': {
'nlib_target': 'libppapi_cpp.a',
'nso_target': 'libppapi_cpp.so',
'nacl_untrusted_build': 1,
'build_glibc': 1,
'build_newlib': 1,
'build_pnacl_newlib': 1,
'sources': [
'<@(cpp_source_files)',
'cpp/module_embedder.h',
'cpp/ppp_entrypoints.cc',
],
},
},
{
'target_name': 'ppapi_gles2_lib',
'type': 'none',
'variables': {
'nlib_target': 'libppapi_gles2.a',
'nacl_untrusted_build': 1,
'nso_target': 'libppapi_gles2.so',
'build_glibc': 1,
'build_newlib': 1,
'build_pnacl_newlib': 1,
'include_dirs': [
'lib/gl/include',
],
'sources': [
'lib/gl/gles2/gl2ext_ppapi.c',
'lib/gl/gles2/gl2ext_ppapi.h',
'lib/gl/gles2/gles2.c',
],
},
},
{
'target_name': 'ppapi_nacl_tests',
'type': 'none',
'dependencies': [
'<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib',
'<(DEPTH)/native_client/src/untrusted/pthread/pthread.gyp:pthread_lib',
'ppapi_cpp_lib',
'nacl_elf_loader',
'native_client/native_client.gyp:ppapi_lib',
],
'variables': {
# This is user code (vs IRT code), so tls accesses do not
# need to be indirect through a function call.
'newlib_tls_flags=': [],
# TODO(bradnelson): Remove this compile flag once new nacl_rev is
# above 9362.
'compile_flags': [
'-DGL_GLEXT_PROTOTYPES',
],
# Speed up pnacl linking by not generating debug info for tests.
# We compile with --strip-all under extra_args so debug info is
# discarded anyway. Remove this and the --strip-all flag if
# debug info is really needed.
'compile_flags!': [
'-g',
],
'defines': [
'GL_GLEXT_PROTOTYPES',
],
'nexe_target': 'ppapi_nacl_tests',
'nacl_untrusted_build': 1,
'build_newlib': 1,
'include_dirs': [
'lib/gl/include',
'..',
],
'link_flags': [
'-lppapi_cpp',
'-lppapi',
'-pthread',
],
'link_flags!': [
'-O3',
],
'translate_flags': [
'-O0',
],
'conditions': [
['target_arch=="ia32"', {
'extra_deps_newlib32': [
'>(tc_lib_dir_newlib32)/libppapi_cpp.a',
'>(tc_lib_dir_newlib32)/libppapi.a',
],
'extra_deps_glibc32': [
'>(tc_lib_dir_glibc32)/libppapi_cpp.so',
'>(tc_lib_dir_glibc32)/libppapi.so',
],
}],
['target_arch=="x64" or (target_arch=="ia32" and OS=="win")', {
'extra_deps_newlib64': [
'>(tc_lib_dir_newlib64)/libppapi_cpp.a',
'>(tc_lib_dir_newlib64)/libppapi.a',
],
'extra_deps_glibc64': [
'>(tc_lib_dir_glibc64)/libppapi_cpp.so',
'>(tc_lib_dir_glibc64)/libppapi.so',
],
}],
['target_arch=="arm"', {
'extra_deps_arm': [
'>(tc_lib_dir_newlib_arm)/libppapi_cpp.a',
'>(tc_lib_dir_newlib_arm)/libppapi.a',
],
}],
],
'extra_deps_pnacl_newlib': [
'>(tc_lib_dir_pnacl_newlib)/libppapi_cpp.a',
'>(tc_lib_dir_pnacl_newlib)/libppapi.a',
],
'sources': [
'<@(test_common_source_files)',
'<@(test_nacl_source_files)',
],
'extra_args': [
'--strip-all',
],
'variables': {
'conditions': [
['target_arch=="arm"', {
'objdump': '>(nacl_glibc_tc_root)/bin/arm-nacl-objdump'
}, {
'objdump': '>(nacl_glibc_tc_root)/bin/x86_64-nacl-objdump'
}],
]
},
'create_nmf': '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py',
'create_nmf_flags': [
'--no-default-libpath',
'--objdump=<(objdump)',
],
'create_nonsfi_test_nmf': 'tests/create_nonsfi_test_nmf.py',
},
'conditions': [
['target_arch!="mipsel" and disable_glibc==0', {
'variables': {
'build_glibc': 1,
# NOTE: Use /lib, not /lib64 here; it is a symbolic link which
# doesn't work on Windows.
'libdir_glibc64': '>(nacl_glibc_tc_root)/x86_64-nacl/lib',
'libdir_glibc32': '>(nacl_glibc_tc_root)/x86_64-nacl/lib32',
'nmf_glibc%': '<(PRODUCT_DIR)/>(nexe_target)_glibc.nmf',
},
'actions': [
{
'action_name': 'Generate GLIBC NMF and copy libs',
# NOTE: create_nmf must be first, it is the script python executes
# below.
'inputs': ['>(create_nmf)'],
# NOTE: There is no explicit dependency for the lib32
# and lib64 directories created in the PRODUCT_DIR.
# They are created as a side-effect of NMF creation.
'outputs': ['>(nmf_glibc)'],
'action': [
'python',
'>@(_inputs)',
'>@(create_nmf_flags)',
'--output=>(nmf_glibc)',
'--stage-dependencies=<(PRODUCT_DIR)',
],
'conditions': [
['target_arch=="ia32"', {
'action': [
'--library-path=>(libdir_glibc32)',
'--library-path=>(tc_lib_dir_glibc32)',
],
'inputs': ['>(out_glibc32)'],
}],
['target_arch=="arm"', {
'action': [
'--library-path=>(nacl_glibc_tc_root)/arm-nacl/lib',
'--library-path=>(tc_lib_dir_glibc_arm)',
],
'inputs': ['>(out_glibc_arm)'],
}],
['target_arch=="x64" or (target_arch=="ia32" and OS=="win")', {
'action': [
'--library-path=>(libdir_glibc64)',
'--library-path=>(tc_lib_dir_glibc64)',
],
'inputs': ['>(out_glibc64)'],
}],
],
},
],
}],
# Test PNaCl pre-translated code (pre-translated to save bot time).
# We only care about testing that code generation is correct,
# and in-browser translation is tested elsewhere.
# NOTE: native_client/build/untrusted.gypi dictates that
# PNaCl only generate x86-32 and x86-64 on x86 platforms,
# ARM on ARM platforms, or MIPS on MIPS platforms, not all
# versions always.
# The same goes for the PNaCl shims. So, we have two variations here.
['disable_pnacl==0 and (target_arch=="ia32" or target_arch=="x64")', {
'variables': {
'build_pnacl_newlib': 1,
'translate_pexe_with_build': 1,
'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf',
},
# Shim is a dependency for the nexe because we pre-translate.
'dependencies': [
'<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:aot',
],
'actions': [
{
'action_name': 'Generate PNACL NEWLIB NMF',
# NOTE: create_nmf must be first, it is the script python executes
# below.
'inputs': [
'>(create_nmf)',
],
'outputs': ['>(nmf_pnacl)'],
'action': [
'python',
'>@(_inputs)',
'>@(create_nmf_flags)',
'--output=>(nmf_pnacl)',
],
'conditions': [
['target_arch=="ia32"', {
'inputs': [
'>(out_pnacl_newlib_x86_32_nexe)',
],
}],
['target_arch=="x64" or (target_arch=="ia32" and OS=="win")', {
'inputs': [
'>(out_pnacl_newlib_x86_64_nexe)',
],
}],
],
},
],
}],
['disable_pnacl==0 and (target_arch=="ia32" or target_arch=="x64" or target_arch=="arm") and OS=="linux"', {
# In addition to above configuration, build x86-32 and arm nonsfi
# .nexe files by translating from .pexe binary, for non-SFI mode PPAPI
# testing.
'variables': {
'translate_pexe_with_build': 1,
'nmf_nonsfi%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl_nonsfi.nmf',
},
'conditions': [
['target_arch=="ia32" or target_arch=="x64"', {
'variables': {
'enable_x86_32_nonsfi': 1,
},
}],
['target_arch=="arm"', {
'variables': {
'enable_arm_nonsfi': 1,
},
}],
],
# Shim is a dependency for the nexe because we pre-translate.
'dependencies': [
'<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:aot',
],
'actions': [
{
'action_name': 'Generate PNACL NEWLIB NONSFI NMF',
'inputs': ['>(create_nonsfi_test_nmf)'],
'outputs': ['>(nmf_nonsfi)'],
'action': [
'python',
'>(create_nonsfi_test_nmf)',
'--output=>(nmf_nonsfi)',
],
'target_conditions': [
['enable_x86_32_nonsfi==1 and "<(target_arch)"=="ia32"', {
'inputs': ['>(out_pnacl_newlib_x86_32_nonsfi_nexe)'],
'action': [
'--program=>(out_pnacl_newlib_x86_32_nonsfi_nexe)',
'--arch=x86-32',
]
}],
['enable_x86_32_nonsfi==1 and "<(target_arch)"=="x64"', {
'inputs': ['>(out_pnacl_newlib_x86_32_nonsfi_nexe)'],
'action': [
'--program=>(out_pnacl_newlib_x86_32_nonsfi_nexe)',
# This should be used only for nacl_helper_nonsfi test.
# In theory this should be x86-32. However, currently
# fallback logic to x86-32-nonsfi is not implemented,
# and, moreover, it would break the tests for current
# nacl_helper in Non-SFI mode on x64 Chrome.
# So, here we introduce the hack to use "x86-64" in order
# to take the benefit to run nacl_helper_nonsfi tests on
# x64 Chrome.
# TODO(hidehiko): Remove this hack.
'--arch=x86-64',
]
}],
['enable_arm_nonsfi==1', {
'inputs': ['>(out_pnacl_newlib_arm_nonsfi_nexe)'],
'action': [
'--program=>(out_pnacl_newlib_arm_nonsfi_nexe)',
'--arch=arm',
]
}],
],
},
],
}],
['disable_pnacl==0 and target_arch=="arm"', {
'variables': {
'build_pnacl_newlib': 1,
'translate_pexe_with_build': 1,
'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf',
},
# Shim is a dependency for the nexe because we pre-translate.
'dependencies': [
'<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:aot',
],
'actions': [
{
'action_name': 'Generate PNACL NEWLIB NMF',
# NOTE: create_nmf must be first, it is the script python executes
# below.
'inputs': ['>(create_nmf)', '>(out_pnacl_newlib_arm_nexe)'],
'outputs': ['>(nmf_pnacl)'],
'action': [
'python',
'>@(_inputs)',
'>@(create_nmf_flags)',
'--output=>(nmf_pnacl)',
],
},
],
}],
['disable_pnacl==0 and target_arch=="mipsel"', {
'variables': {
'build_pnacl_newlib': 1,
'translate_pexe_with_build': 1,
'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf',
},
# Shim is a dependency for the nexe because we pre-translate.
'dependencies': [
'<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:aot',
],
'actions': [
{
'action_name': 'Generate PNACL NEWLIB NMF',
'inputs': ['>(create_nmf)', '>(out_pnacl_newlib_mips_nexe)'],
'outputs': ['>(nmf_pnacl)'],
'action': [
'python',
'>@(_inputs)',
'>@(create_nmf_flags)',
'--output=>(nmf_pnacl)',
],
},
],
}],
],
},
],
}

@ -1,285 +0,0 @@
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'includes': [
'../build/common_untrusted.gypi',
],
'target_defaults': {
# We need to override the variables in untrusted.gypi outside of a
# target_condition block because the target_condition block in
# untrusted gypi is fully evaluated and interpolated before any of the
# target_condition blocks in this file are expanded. This means that any
# variables overriden inside a target_condition block in this file will not
# affect the values in untrusted.gypi.
'variables': {
'nacl_untrusted_build': 1,
'test_files': [],
'generate_nmf%': 1,
'nacl_newlib_out_dir': '<(PRODUCT_DIR)/>(nexe_destination_dir)/newlib',
'nacl_glibc_out_dir': '<(PRODUCT_DIR)/>(nexe_destination_dir)/glibc',
'nacl_pnacl_newlib_out_dir': '<(PRODUCT_DIR)/>(nexe_destination_dir)/pnacl',
'nacl_pnacl_newlib_nonsfi_out_dir': '<(PRODUCT_DIR)/>(nexe_destination_dir)/nonsfi',
'target_conditions': [
['nexe_target!=""', {
# These variables are used for nexe building and for library building.
'out_newlib32%': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_x86_32.nexe',
'out_newlib64%': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_x86_64.nexe',
'out_newlib_arm%': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_arm.nexe',
'out_newlib_mips%': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_mips32.nexe',
'nmf_newlib%': '>(nacl_newlib_out_dir)/>(nexe_target).nmf',
'out_glibc32%': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_32.nexe',
'out_glibc64%': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_64.nexe',
'out_glibc_arm%': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_arm.nexe',
'nmf_glibc%': '>(nacl_glibc_out_dir)/>(nexe_target).nmf',
'out_pnacl_newlib%': '>(nacl_pnacl_newlib_out_dir)/>(nexe_target)_newlib_pnacl.pexe',
'nmf_pnacl_newlib%': '>(nacl_pnacl_newlib_out_dir)/>(nexe_target).nmf',
'out_pnacl_newlib_x86_32_nonsfi_nexe': '>(nacl_pnacl_newlib_nonsfi_out_dir)/>(nexe_target)_pnacl_newlib_x32_nonsfi.nexe',
'out_pnacl_newlib_arm_nonsfi_nexe': '>(nacl_pnacl_newlib_nonsfi_out_dir)/>(nexe_target)_pnacl_newlib_arm_nonsfi.nexe',
'nmf_pnacl_newlib_nonsfi%': '>(nacl_pnacl_newlib_nonsfi_out_dir)/>(nexe_target).nmf',
}],
],
},
'dependencies': [
'<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib',
'<(DEPTH)/native_client/src/untrusted/pthread/pthread.gyp:pthread_lib',
'<(DEPTH)/ppapi/ppapi_nacl.gyp:ppapi_cpp_lib',
'<(DEPTH)/ppapi/ppapi_nacl.gyp:nacl_elf_loader',
'<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib',
],
'target_conditions': [
['test_files!=[] and build_newlib==1', {
'copies': [
{
'destination': '>(nacl_newlib_out_dir)',
'files': [
'>@(test_files)',
],
},
],
}],
['test_files!=[] and "<(target_arch)"!="mipsel" and disable_glibc==0 and build_glibc==1', {
'copies': [
{
'destination': '>(nacl_glibc_out_dir)',
'files': [
'>@(test_files)',
],
},
],
}],
# Nonsfi pnacl copy is covered below.
['test_files!=[] and build_pnacl_newlib==1 and disable_pnacl==0', {
'copies': [
{
'destination': '>(nacl_pnacl_newlib_out_dir)',
'files': [
'>@(test_files)',
],
},
],
}],
['test_files!=[] and build_pnacl_newlib==1 and (enable_x86_32_nonsfi==1 or enable_arm_nonsfi==1)', {
'copies': [
{
'destination': '>(nacl_pnacl_newlib_nonsfi_out_dir)',
'files': [
'>@(test_files)',
],
},
],
}],
['nexe_target!=""', {
'variables': {
# Patch over the fact that untrusted.gypi doesn't define these in all
# cases.
'enable_x86_64%': 0,
'enable_x86_32%': 0,
'enable_arm%': 0,
'enable_mips%': 0,
'include_dirs': [
'<(DEPTH)',
],
'link_flags': [
'-lppapi_cpp',
'-lppapi',
'-pthread',
],
'extra_args': [
'--strip-all',
],
'variables': {
'conditions': [
['target_arch=="arm"', {
'objdump': '>(nacl_glibc_tc_root)/bin/arm-nacl-objdump'
}, {
'objdump': '>(nacl_glibc_tc_root)/bin/x86_64-nacl-objdump'
}],
]
},
'create_nmf': '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py',
'create_nmf_args_portable%': [],
'create_nonsfi_test_nmf': '<(DEPTH)/ppapi/tests/create_nonsfi_test_nmf.py',
'create_nmf_args': [
'--no-default-libpath',
'--objdump=<(objdump)',
],
},
'target_conditions': [
['generate_nmf==1 and build_newlib==1 and disable_newlib==0', {
'actions': [
{
'action_name': 'Generate NEWLIB NMF',
'inputs': ['>(create_nmf)'],
'outputs': ['>(nmf_newlib)'],
'action': [
'python',
'>(create_nmf)',
'>@(create_nmf_args)',
'--output=>(nmf_newlib)',
'>@(create_nmf_args_portable)',
],
'target_conditions': [
['enable_x86_64==1', {
'inputs': ['>(out_newlib64)'],
'action': ['>(out_newlib64)'],
}],
['enable_x86_32==1', {
'inputs': ['>(out_newlib32)'],
'action': ['>(out_newlib32)'],
}],
['enable_arm==1', {
'inputs': ['>(out_newlib_arm)'],
'action': ['>(out_newlib_arm)'],
}],
['enable_mips==1', {
'inputs': ['>(out_newlib_mips)'],
'action': ['>(out_newlib_mips)'],
}],
],
},
],
}],
['"<(target_arch)"!="mipsel" and generate_nmf==1 and disable_glibc==0 and build_glibc==1', {
'variables': {
# NOTE: Use /lib, not /lib64 here; it is a symbolic link which
# doesn't work on Windows.
'libdir_glibc64': '>(nacl_glibc_tc_root)/x86_64-nacl/lib',
'libdir_glibc32': '>(nacl_glibc_tc_root)/x86_64-nacl/lib32',
'libdir_glibc_arm': '>(nacl_glibc_tc_root)/arm-nacl/lib',
},
'actions': [
{
'action_name': 'Generate GLIBC NMF and copy libs',
'inputs': ['>(create_nmf)'],
# NOTE: There is no explicit dependency for the lib32
# and lib64 directories created in the PRODUCT_DIR.
# They are created as a side-effect of NMF creation.
'outputs': ['>(nmf_glibc)'],
'action': [
'python',
'>@(_inputs)',
'>@(create_nmf_args)',
'--output=>(nmf_glibc)',
'--path-prefix=>(nexe_target)_libs',
'--stage-dependencies=<(nacl_glibc_out_dir)',
'>@(create_nmf_args_portable)',
],
'target_conditions': [
['enable_x86_64==1', {
'inputs': ['>(out_glibc64)'],
'action': [
'--library-path=>(libdir_glibc64)',
'--library-path=>(tc_lib_dir_glibc64)',
],
}],
['enable_x86_32==1', {
'inputs': ['>(out_glibc32)'],
'action': [
'--library-path=>(libdir_glibc32)',
'--library-path=>(tc_lib_dir_glibc32)',
],
}],
['enable_arm==1', {
'inputs': ['>(out_glibc_arm)'],
'action': [
'--library-path=>(libdir_glibc_arm)',
'--library-path=>(tc_lib_dir_glibc_arm)',
],
}],
],
},
],
}],
['generate_nmf==1 and build_pnacl_newlib==1 and disable_pnacl==0', {
'actions': [
{
'action_name': 'Generate PNACL NEWLIB NMF',
# NOTE: create_nmf must be first, it is the script python
# executes below.
'inputs': ['>(create_nmf)', '>(out_pnacl_newlib)'],
'outputs': ['>(nmf_pnacl_newlib)'],
'action': [
'python',
'>(create_nmf)',
'>@(create_nmf_args)',
'--output=>(nmf_pnacl_newlib)',
'>(out_pnacl_newlib)',
'>@(create_nmf_args_portable)',
],
},
],
}],
['generate_nmf==1 and build_pnacl_newlib==1 and disable_pnacl==0 and (enable_x86_32_nonsfi==1 or enable_arm_nonsfi==1)', {
'actions': [
{
'action_name': 'Generate PNACL NEWLIB nonsfi NMF',
'inputs': ['>(create_nonsfi_test_nmf)'],
'outputs': ['>(nmf_pnacl_newlib_nonsfi)'],
'action': [
'python',
'>(create_nonsfi_test_nmf)',
'>@(create_nmf_args_portable)',
'--output=>(nmf_pnacl_newlib_nonsfi)',
],
'target_conditions': [
['enable_x86_32_nonsfi==1 and "<(target_arch)"=="ia32"', {
'inputs': ['>(out_pnacl_newlib_x86_32_nonsfi_nexe)'],
'action': [
'--program=>(out_pnacl_newlib_x86_32_nonsfi_nexe)',
'--arch=x86-32',
]
}],
['enable_x86_32_nonsfi==1 and "<(target_arch)"=="x64"', {
'inputs': ['>(out_pnacl_newlib_x86_32_nonsfi_nexe)'],
'action': [
'--program=>(out_pnacl_newlib_x86_32_nonsfi_nexe)',
# This should be used only for nacl_helper_nonsfi test.
# In theory this should be x86-32. However, currently
# fallback logic to x86-32-nonsfi is not implemented,
# and, moreover, it would break the tests for current
# nacl_helper in Non-SFI mode on x64 Chrome.
# So, here we introduce the hack to use "x86-64" in order
# to take the benefit to run nacl_helper_nonsfi tests on
# x64 Chrome.
# TODO(hidehiko): Remove this hack.
'--arch=x86-64',
]
}],
['enable_arm_nonsfi==1', {
'inputs': ['>(out_pnacl_newlib_arm_nonsfi_nexe)'],
'action': [
'--program=>(out_pnacl_newlib_arm_nonsfi_nexe)',
'--arch=arm',
]
}],
],
},
],
}],
],
}],
],
},
}

@ -1,310 +0,0 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'target_defaults': {
'variables': {
'ppapi_proxy_target': 0,
},
'target_conditions': [
# This part is shared between the targets defined below.
['ppapi_proxy_target==1', {
'sources': [
# Take some standalone files from the C++ wrapper allowing us to more
# easily make async callbacks in the proxy. We can't depend on the
# full C++ wrappers at this layer since the C++ wrappers expect
# symbols defining the globals for "being a plugin" which we are not.
# These callback files are standalone.
'cpp/completion_callback.h',
'utility/completion_callback_factory.h',
'proxy/audio_buffer_resource.cc',
'proxy/audio_buffer_resource.h',
'proxy/audio_encoder_resource.cc',
'proxy/audio_encoder_resource.h',
'proxy/audio_input_resource.cc',
'proxy/audio_input_resource.h',
'proxy/broker_dispatcher.cc',
'proxy/broker_dispatcher.h',
'proxy/broker_resource.cc',
'proxy/broker_resource.h',
'proxy/browser_font_singleton_resource.cc',
'proxy/browser_font_singleton_resource.h',
'proxy/camera_capabilities_resource.cc',
'proxy/camera_capabilities_resource.h',
'proxy/camera_device_resource.cc',
'proxy/camera_device_resource.h',
'proxy/compositor_layer_resource.cc',
'proxy/compositor_layer_resource.h',
'proxy/compositor_resource.cc',
'proxy/compositor_resource.h',
'proxy/connection.h',
'proxy/device_enumeration_resource_helper.cc',
'proxy/device_enumeration_resource_helper.h',
'proxy/dispatcher.cc',
'proxy/dispatcher.h',
'proxy/enter_proxy.h',
'proxy/error_conversion.cc',
'proxy/error_conversion.h',
'proxy/file_chooser_resource.cc',
'proxy/file_chooser_resource.h',
'proxy/file_io_resource.cc',
'proxy/file_io_resource.h',
'proxy/file_ref_resource.cc',
'proxy/file_ref_resource.h',
'proxy/file_system_resource.cc',
'proxy/file_system_resource.h',
'proxy/flash_clipboard_resource.cc',
'proxy/flash_clipboard_resource.h',
'proxy/flash_drm_resource.cc',
'proxy/flash_drm_resource.h',
'proxy/flash_file_resource.cc',
'proxy/flash_file_resource.h',
'proxy/flash_font_file_resource.cc',
'proxy/flash_font_file_resource.h',
'proxy/flash_fullscreen_resource.cc',
'proxy/flash_fullscreen_resource.h',
'proxy/flash_menu_resource.cc',
'proxy/flash_menu_resource.h',
'proxy/flash_resource.cc',
'proxy/flash_resource.h',
'proxy/gamepad_resource.cc',
'proxy/gamepad_resource.h',
'proxy/graphics_2d_resource.cc',
'proxy/graphics_2d_resource.h',
'proxy/host_dispatcher.cc',
'proxy/host_dispatcher.h',
'proxy/host_resolver_private_resource.cc',
'proxy/host_resolver_private_resource.h',
'proxy/host_resolver_resource.cc',
'proxy/host_resolver_resource.h',
'proxy/host_resolver_resource_base.cc',
'proxy/host_resolver_resource_base.h',
'proxy/host_var_serialization_rules.cc',
'proxy/host_var_serialization_rules.h',
'proxy/interface_list.cc',
'proxy/interface_list.h',
'proxy/interface_proxy.cc',
'proxy/interface_proxy.h',
'proxy/isolated_file_system_private_resource.cc',
'proxy/isolated_file_system_private_resource.h',
'proxy/locking_resource_releaser.h',
'proxy/media_stream_audio_track_resource.cc',
'proxy/media_stream_audio_track_resource.h',
'proxy/media_stream_track_resource_base.cc',
'proxy/media_stream_track_resource_base.h',
'proxy/media_stream_video_track_resource.cc',
'proxy/media_stream_video_track_resource.h',
'proxy/message_handler.cc',
'proxy/message_handler.h',
'proxy/net_address_resource.cc',
'proxy/net_address_resource.h',
'proxy/network_list_resource.cc',
'proxy/network_list_resource.h',
'proxy/network_monitor_resource.cc',
'proxy/network_monitor_resource.h',
'proxy/network_proxy_resource.cc',
'proxy/network_proxy_resource.h',
'proxy/output_protection_resource.cc',
'proxy/output_protection_resource.h',
'proxy/pdf_resource.cc',
'proxy/pdf_resource.h',
'proxy/platform_verification_private_resource.cc',
'proxy/platform_verification_private_resource.h',
'proxy/plugin_array_buffer_var.cc',
'proxy/plugin_array_buffer_var.h',
'proxy/plugin_dispatcher.cc',
'proxy/plugin_dispatcher.h',
'proxy/plugin_globals.cc',
'proxy/plugin_globals.h',
'proxy/plugin_message_filter.cc',
'proxy/plugin_message_filter.h',
'proxy/plugin_resource.cc',
'proxy/plugin_resource.h',
'proxy/plugin_resource_tracker.cc',
'proxy/plugin_resource_tracker.h',
'proxy/plugin_resource_var.cc',
'proxy/plugin_resource_var.h',
'proxy/plugin_var_serialization_rules.cc',
'proxy/plugin_var_serialization_rules.h',
'proxy/plugin_var_tracker.cc',
'proxy/plugin_var_tracker.h',
'proxy/ppapi_command_buffer_proxy.cc',
'proxy/ppapi_command_buffer_proxy.h',
'proxy/ppapi_message_utils.h',
'proxy/ppapi_messages.h',
'proxy/ppb_audio_proxy.cc',
'proxy/ppb_audio_proxy.h',
'proxy/ppb_broker_proxy.cc',
'proxy/ppb_broker_proxy.h',
'proxy/ppb_buffer_proxy.cc',
'proxy/ppb_buffer_proxy.h',
'proxy/ppb_core_proxy.cc',
'proxy/ppb_core_proxy.h',
'proxy/ppb_flash_message_loop_proxy.cc',
'proxy/ppb_flash_message_loop_proxy.h',
'proxy/ppb_graphics_3d_proxy.cc',
'proxy/ppb_graphics_3d_proxy.h',
'proxy/ppb_image_data_proxy.cc',
'proxy/ppb_image_data_proxy.h',
'proxy/ppb_instance_proxy.cc',
'proxy/ppb_instance_proxy.h',
'proxy/ppb_message_loop_proxy.cc',
'proxy/ppb_message_loop_proxy.h',
'proxy/ppb_testing_proxy.cc',
'proxy/ppb_testing_proxy.h',
'proxy/ppb_var_deprecated_proxy.cc',
'proxy/ppb_var_deprecated_proxy.h',
'proxy/ppb_video_decoder_proxy.cc',
'proxy/ppb_video_decoder_proxy.h',
'proxy/ppb_x509_certificate_private_proxy.cc',
'proxy/ppb_x509_certificate_private_proxy.h',
'proxy/ppp_class_proxy.cc',
'proxy/ppp_class_proxy.h',
'proxy/ppp_content_decryptor_private_proxy.cc',
'proxy/ppp_content_decryptor_private_proxy.h',
'proxy/ppp_find_proxy.cc',
'proxy/ppp_find_proxy.h',
'proxy/ppp_graphics_3d_proxy.cc',
'proxy/ppp_graphics_3d_proxy.h',
'proxy/ppp_input_event_proxy.cc',
'proxy/ppp_input_event_proxy.h',
'proxy/ppp_instance_private_proxy.cc',
'proxy/ppp_instance_private_proxy.h',
'proxy/ppp_instance_proxy.cc',
'proxy/ppp_instance_proxy.h',
'proxy/ppp_messaging_proxy.cc',
'proxy/ppp_messaging_proxy.h',
'proxy/ppp_mouse_lock_proxy.cc',
'proxy/ppp_mouse_lock_proxy.h',
'proxy/ppp_pdf_proxy.cc',
'proxy/ppp_pdf_proxy.h',
'proxy/ppp_printing_proxy.cc',
'proxy/ppp_printing_proxy.h',
'proxy/ppp_text_input_proxy.cc',
'proxy/ppp_text_input_proxy.h',
'proxy/ppp_video_decoder_proxy.cc',
'proxy/ppp_video_decoder_proxy.h',
'proxy/printing_resource.cc',
'proxy/printing_resource.h',
'proxy/proxy_array_output.cc',
'proxy/proxy_array_output.h',
'proxy/proxy_channel.cc',
'proxy/proxy_channel.h',
'proxy/proxy_completion_callback_factory.h',
'proxy/proxy_module.cc',
'proxy/proxy_module.h',
'proxy/proxy_object_var.cc',
'proxy/proxy_object_var.h',
'proxy/resource_creation_proxy.cc',
'proxy/resource_creation_proxy.h',
'proxy/resource_message_filter.h',
'proxy/resource_reply_thread_registrar.cc',
'proxy/resource_reply_thread_registrar.h',
'proxy/tcp_server_socket_private_resource.cc',
'proxy/tcp_server_socket_private_resource.h',
'proxy/tcp_socket_private_resource.cc',
'proxy/tcp_socket_private_resource.h',
'proxy/tcp_socket_resource.cc',
'proxy/tcp_socket_resource.h',
'proxy/tcp_socket_resource_base.cc',
'proxy/tcp_socket_resource_base.h',
'proxy/truetype_font_resource.cc',
'proxy/truetype_font_resource.h',
'proxy/truetype_font_singleton_resource.cc',
'proxy/truetype_font_singleton_resource.h',
'proxy/udp_socket_filter.cc',
'proxy/udp_socket_filter.h',
'proxy/udp_socket_private_resource.cc',
'proxy/udp_socket_private_resource.h',
'proxy/udp_socket_resource.cc',
'proxy/udp_socket_resource.h',
'proxy/udp_socket_resource_base.cc',
'proxy/udp_socket_resource_base.h',
'proxy/uma_private_resource.cc',
'proxy/uma_private_resource.h',
'proxy/url_loader_resource.cc',
'proxy/url_loader_resource.h',
'proxy/url_request_info_resource.cc',
'proxy/url_request_info_resource.h',
'proxy/url_response_info_resource.cc',
'proxy/url_response_info_resource.h',
'proxy/var_serialization_rules.h',
'proxy/video_capture_resource.cc',
'proxy/video_capture_resource.h',
'proxy/video_decoder_resource.cc',
'proxy/video_decoder_resource.h',
'proxy/video_destination_resource.cc',
'proxy/video_destination_resource.h',
'proxy/video_encoder_resource.cc',
'proxy/video_encoder_resource.h',
'proxy/video_frame_resource.cc',
'proxy/video_frame_resource.h',
'proxy/video_source_resource.cc',
'proxy/video_source_resource.h',
'proxy/vpn_provider_resource.cc',
'proxy/vpn_provider_resource.h',
'proxy/websocket_resource.cc',
'proxy/websocket_resource.h',
],
'defines': [
'PPAPI_PROXY_IMPLEMENTATION',
],
'include_dirs': [
'..',
],
'target_conditions': [
['>(nacl_untrusted_build)==1', {
'sources': [
'nacl_irt/irt_interfaces.cc',
'nacl_irt/irt_interfaces.h',
'nacl_irt/irt_pnacl_translator_compile.cc',
'nacl_irt/irt_pnacl_translator_link.cc',
'nacl_irt/irt_ppapi.cc',
'nacl_irt/irt_ppapi.h',
'nacl_irt/irt_start.cc',
'nacl_irt/manifest_service.cc',
'nacl_irt/manifest_service.h',
'nacl_irt/plugin_startup.cc',
'nacl_irt/plugin_startup.h',
'nacl_irt/ppapi_dispatcher.cc',
'nacl_irt/ppapi_dispatcher.h',
],
'sources!': [
'proxy/audio_input_resource.cc',
'proxy/broker_dispatcher.cc',
'proxy/browser_font_singleton_resource.cc',
'proxy/device_enumeration_resource_helper.cc',
'proxy/flash_clipboard_resource.cc',
'proxy/flash_drm_resource.cc',
'proxy/flash_file_resource.cc',
'proxy/flash_font_file_resource.cc',
'proxy/flash_fullscreen_resource.cc',
'proxy/flash_menu_resource.cc',
'proxy/flash_resource.cc',
'proxy/host_dispatcher.cc',
'proxy/host_var_serialization_rules.cc',
'proxy/pdf_resource.cc',
'proxy/platform_verification_private_resource.cc',
'proxy/platform_verification_private_resource.h',
'proxy/ppb_broker_proxy.cc',
'proxy/ppb_buffer_proxy.cc',
'proxy/ppb_flash_message_loop_proxy.cc',
'proxy/ppb_flash_proxy.cc',
'proxy/ppb_pdf_proxy.cc',
'proxy/ppb_var_deprecated_proxy.cc',
'proxy/ppb_video_capture_proxy.cc',
'proxy/ppb_video_decoder_proxy.cc',
'proxy/ppp_content_decryptor_private_proxy.cc',
'proxy/ppp_instance_private_proxy.cc',
'proxy/ppp_video_decoder_proxy.cc',
'proxy/serialized_flash_menu.cc',
'proxy/video_capture_resource.cc',
],
}],
],
}],
],
},
}

@ -1,57 +0,0 @@
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../build/common_untrusted.gypi',
'ppapi_proxy.gypi',
],
'conditions': [
['disable_nacl==0 and disable_nacl_untrusted==0', {
'targets': [
{
'target_name': 'ppapi_proxy_nacl',
'type': 'none',
'variables': {
'ppapi_proxy_target': 1,
'nacl_untrusted_build': 1,
'nlib_target': 'libppapi_proxy_nacl.a',
'build_glibc': 0,
'build_newlib': 0,
'build_irt': 1,
'build_pnacl_newlib': 0,
'build_nonsfi_helper': 1,
},
'include_dirs': [
'..',
],
'dependencies': [
'../base/base_nacl.gyp:base_nacl',
'../base/base_nacl.gyp:base_nacl_nonsfi',
'../components/tracing_nacl.gyp:tracing_nacl',
'../gpu/command_buffer/command_buffer_nacl.gyp:gles2_utils_nacl',
'../gpu/gpu_nacl.gyp:command_buffer_client_nacl',
'../gpu/gpu_nacl.gyp:command_buffer_common_nacl',
'../gpu/gpu_nacl.gyp:gles2_cmd_helper_nacl',
'../gpu/gpu_nacl.gyp:gles2_implementation_nacl',
'../gpu/gpu_nacl.gyp:gpu_ipc_nacl',
'../ipc/ipc_nacl.gyp:ipc_nacl',
'../ipc/ipc_nacl.gyp:ipc_nacl_nonsfi',
'../mojo/mojo_edk_nacl.gyp:mojo_system_impl_nacl',
'../mojo/mojo_edk_nacl.gyp:mojo_system_impl_nacl_nonsfi',
'../ppapi/ppapi_ipc_nacl.gyp:ppapi_ipc_nacl',
'../ppapi/ppapi_shared_nacl.gyp:ppapi_shared_nacl',
'../third_party/WebKit/public/blink_headers.gyp:blink_headers',
'../third_party/khronos/khronos.gyp:khronos_headers',
'../ui/gfx/gfx_nacl.gyp:gfx_geometry_nacl',
'../ui/gfx/ipc/geometry/gfx_ipc_geometry_nacl.gyp:gfx_ipc_geometry_nacl',
],
},
],
}],
],
}

@ -1,365 +0,0 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'target_defaults': {
'variables': {
'ppapi_shared_target': 0,
},
'target_conditions': [
# This part is shared between the targets defined below.
['ppapi_shared_target==1', {
'sources': [
# Note: sources list duplicated in GN build.
'shared_impl/array_var.cc',
'shared_impl/array_var.h',
'shared_impl/array_writer.cc',
'shared_impl/array_writer.h',
'shared_impl/callback_tracker.cc',
'shared_impl/callback_tracker.h',
'shared_impl/compositor_layer_data.cc',
'shared_impl/compositor_layer_data.h',
'shared_impl/dictionary_var.cc',
'shared_impl/dictionary_var.h',
'shared_impl/file_growth.cc',
'shared_impl/file_growth.h',
'shared_impl/file_io_state_manager.cc',
'shared_impl/file_io_state_manager.h',
'shared_impl/file_path.cc',
'shared_impl/file_path.h',
'shared_impl/file_ref_create_info.cc',
'shared_impl/file_ref_create_info.h',
'shared_impl/file_ref_util.cc',
'shared_impl/file_ref_util.h',
'shared_impl/file_system_util.cc',
'shared_impl/file_system_util.h',
'shared_impl/file_type_conversion.cc',
'shared_impl/file_type_conversion.h',
'shared_impl/flash_clipboard_format_registry.cc',
'shared_impl/flash_clipboard_format_registry.h',
'shared_impl/host_resource.cc',
'shared_impl/host_resource.h',
'shared_impl/id_assignment.cc',
'shared_impl/id_assignment.h',
'shared_impl/media_stream_audio_track_shared.cc',
'shared_impl/media_stream_audio_track_shared.h',
'shared_impl/media_stream_buffer.h',
'shared_impl/media_stream_buffer_manager.cc',
'shared_impl/media_stream_buffer_manager.h',
'shared_impl/media_stream_video_track_shared.cc',
'shared_impl/media_stream_video_track_shared.h',
'shared_impl/platform_file.cc',
'shared_impl/platform_file.h',
'shared_impl/ppapi_constants.h',
'shared_impl/ppapi_globals.cc',
'shared_impl/ppapi_globals.h',
'shared_impl/ppapi_nacl_plugin_args.cc',
'shared_impl/ppapi_nacl_plugin_args.h',
'shared_impl/ppapi_permissions.cc',
'shared_impl/ppapi_permissions.h',
'shared_impl/ppapi_preferences.cc',
'shared_impl/ppapi_preferences.h',
'shared_impl/ppapi_switches.cc',
'shared_impl/ppapi_switches.h',
'shared_impl/ppb_audio_config_shared.cc',
'shared_impl/ppb_audio_config_shared.h',
'shared_impl/ppb_audio_shared.cc',
'shared_impl/ppb_audio_shared.h',
'shared_impl/ppb_crypto_shared.cc',
'shared_impl/ppb_device_ref_shared.cc',
'shared_impl/ppb_device_ref_shared.h',
'shared_impl/ppb_flash_font_file_shared.h',
'shared_impl/ppb_gamepad_shared.cc',
'shared_impl/ppb_gamepad_shared.h',
'shared_impl/ppb_graphics_3d_shared.cc',
'shared_impl/ppb_graphics_3d_shared.h',
'shared_impl/ppb_image_data_shared.cc',
'shared_impl/ppb_image_data_shared.h',
'shared_impl/ppb_input_event_shared.cc',
'shared_impl/ppb_input_event_shared.h',
'shared_impl/ppb_instance_shared.cc',
'shared_impl/ppb_instance_shared.h',
'shared_impl/ppb_memory_shared.cc',
'shared_impl/ppb_message_loop_shared.cc',
'shared_impl/ppb_message_loop_shared.h',
'shared_impl/ppb_opengles2_shared.cc',
'shared_impl/ppb_opengles2_shared.h',
'shared_impl/ppb_tcp_socket_shared.cc',
'shared_impl/ppb_tcp_socket_shared.h',
'shared_impl/ppb_trace_event_impl.cc',
'shared_impl/ppb_trace_event_impl.h',
'shared_impl/ppb_url_util_shared.cc',
'shared_impl/ppb_url_util_shared.h',
'shared_impl/ppb_var_shared.cc',
'shared_impl/ppb_var_shared.h',
'shared_impl/ppb_video_decoder_shared.cc',
'shared_impl/ppb_video_decoder_shared.h',
'shared_impl/ppb_view_shared.cc',
'shared_impl/ppb_view_shared.h',
'shared_impl/ppp_flash_browser_operations_shared.h',
'shared_impl/ppp_instance_combined.cc',
'shared_impl/ppp_instance_combined.h',
# TODO(viettrungluu): Split these out; it won't be used in NaCl.
'shared_impl/private/net_address_private_impl.cc',
'shared_impl/private/net_address_private_impl.h',
'shared_impl/private/net_address_private_impl_constants.cc',
'shared_impl/proxy_lock.cc',
'shared_impl/proxy_lock.h',
'shared_impl/resource.cc',
'shared_impl/resource.h',
'shared_impl/resource_tracker.cc',
'shared_impl/resource_tracker.h',
'shared_impl/resource_var.cc',
'shared_impl/resource_var.h',
'shared_impl/scoped_pp_resource.cc',
'shared_impl/scoped_pp_resource.h',
'shared_impl/scoped_pp_var.cc',
'shared_impl/scoped_pp_var.h',
'shared_impl/socket_option_data.cc',
'shared_impl/socket_option_data.h',
'shared_impl/thread_aware_callback.cc',
'shared_impl/thread_aware_callback.h',
'shared_impl/time_conversion.cc',
'shared_impl/time_conversion.h',
'shared_impl/tracked_callback.cc',
'shared_impl/tracked_callback.h',
'shared_impl/url_request_info_data.cc',
'shared_impl/url_request_info_data.h',
'shared_impl/url_response_info_data.cc',
'shared_impl/url_response_info_data.h',
'shared_impl/var.cc',
'shared_impl/var.h',
'shared_impl/var_tracker.cc',
'shared_impl/var_tracker.h',
'shared_impl/vpn_provider_util.cc',
'shared_impl/vpn_provider_util.h',
'shared_impl/private/ppb_char_set_shared.cc',
'shared_impl/private/ppb_char_set_shared.h',
'shared_impl/private/ppb_x509_certificate_private_shared.cc',
'shared_impl/private/ppb_x509_certificate_private_shared.h',
'thunk/enter.cc',
'thunk/enter.h',
'thunk/ppb_audio_api.h',
'thunk/ppb_audio_buffer_api.h',
'thunk/ppb_audio_buffer_thunk.cc',
'thunk/ppb_audio_config_api.h',
'thunk/ppb_audio_config_thunk.cc',
'thunk/ppb_audio_encoder_api.h',
'thunk/ppb_audio_encoder_thunk.cc',
'thunk/ppb_audio_input_api.h',
'thunk/ppb_audio_input_dev_thunk.cc',
'thunk/ppb_audio_thunk.cc',
'thunk/ppb_broker_api.h',
'thunk/ppb_broker_thunk.cc',
'thunk/ppb_browser_font_trusted_api.h',
'thunk/ppb_browser_font_trusted_thunk.cc',
'thunk/ppb_buffer_api.h',
'thunk/ppb_buffer_thunk.cc',
'thunk/ppb_camera_capabilities_api.h',
'thunk/ppb_camera_capabilities_private_thunk.cc',
'thunk/ppb_camera_device_api.h',
'thunk/ppb_camera_device_private_thunk.cc',
'thunk/ppb_char_set_thunk.cc',
'thunk/ppb_compositor_api.h',
'thunk/ppb_compositor_layer_api.h',
'thunk/ppb_compositor_layer_thunk.cc',
'thunk/ppb_compositor_thunk.cc',
'thunk/ppb_console_thunk.cc',
'thunk/ppb_content_decryptor_private_thunk.cc',
'thunk/ppb_cursor_control_thunk.cc',
'thunk/ppb_device_ref_api.h',
'thunk/ppb_device_ref_dev_thunk.cc',
'thunk/ppb_ext_crx_file_system_private_thunk.cc',
'thunk/ppb_file_chooser_api.h',
'thunk/ppb_file_chooser_dev_thunk.cc',
'thunk/ppb_file_chooser_trusted_thunk.cc',
'thunk/ppb_file_io_api.h',
'thunk/ppb_file_io_private_thunk.cc',
'thunk/ppb_file_io_thunk.cc',
'thunk/ppb_file_ref_api.h',
'thunk/ppb_file_ref_thunk.cc',
'thunk/ppb_file_system_api.h',
'thunk/ppb_file_system_thunk.cc',
'thunk/ppb_find_private_thunk.cc',
'thunk/ppb_flash_clipboard_api.h',
'thunk/ppb_flash_clipboard_thunk.cc',
'thunk/ppb_flash_device_id_thunk.cc',
'thunk/ppb_flash_drm_api.h',
'thunk/ppb_flash_drm_thunk.cc',
'thunk/ppb_flash_file_fileref_thunk.cc',
'thunk/ppb_flash_file_modulelocal_thunk.cc',
'thunk/ppb_flash_font_file_api.h',
'thunk/ppb_flash_font_file_thunk.cc',
'thunk/ppb_flash_fullscreen_api.h',
'thunk/ppb_flash_fullscreen_thunk.cc',
'thunk/ppb_flash_functions_api.h',
'thunk/ppb_flash_menu_api.h',
'thunk/ppb_flash_menu_thunk.cc',
'thunk/ppb_flash_message_loop_api.h',
'thunk/ppb_flash_message_loop_thunk.cc',
'thunk/ppb_flash_print_thunk.cc',
'thunk/ppb_flash_thunk.cc',
'thunk/ppb_fullscreen_thunk.cc',
'thunk/ppb_gamepad_api.h',
'thunk/ppb_gamepad_thunk.cc',
'thunk/ppb_gles_chromium_texture_mapping_thunk.cc',
'thunk/ppb_graphics_2d_api.h',
'thunk/ppb_graphics_2d_thunk.cc',
'thunk/ppb_graphics_3d_api.h',
'thunk/ppb_graphics_3d_thunk.cc',
'thunk/ppb_host_resolver_api.h',
'thunk/ppb_host_resolver_private_api.h',
'thunk/ppb_host_resolver_private_thunk.cc',
'thunk/ppb_host_resolver_thunk.cc',
'thunk/ppb_image_data_api.h',
'thunk/ppb_image_data_thunk.cc',
'thunk/ppb_input_event_api.h',
'thunk/ppb_input_event_thunk.cc',
'thunk/ppb_instance_api.h',
'thunk/ppb_instance_private_thunk.cc',
'thunk/ppb_instance_thunk.cc',
'thunk/ppb_isolated_file_system_private_api.h',
'thunk/ppb_isolated_file_system_private_thunk.cc',
'thunk/ppb_media_stream_audio_track_api.h',
'thunk/ppb_media_stream_audio_track_thunk.cc',
'thunk/ppb_media_stream_video_track_api.h',
'thunk/ppb_media_stream_video_track_thunk.cc',
'thunk/ppb_message_loop_api.h',
'thunk/ppb_messaging_thunk.cc',
'thunk/ppb_mouse_cursor_thunk.cc',
'thunk/ppb_mouse_lock_thunk.cc',
'thunk/ppb_net_address_api.h',
'thunk/ppb_net_address_thunk.cc',
'thunk/ppb_network_list_api.h',
'thunk/ppb_network_list_thunk.cc',
'thunk/ppb_network_monitor_api.h',
'thunk/ppb_network_monitor_thunk.cc',
'thunk/ppb_network_proxy_api.h',
'thunk/ppb_network_proxy_thunk.cc',
'thunk/ppb_output_protection_api.h',
'thunk/ppb_output_protection_private_thunk.cc',
'thunk/ppb_pdf_api.h',
'thunk/ppb_pdf_thunk.cc',
'thunk/ppb_platform_verification_api.h',
'thunk/ppb_platform_verification_private_thunk.cc',
'thunk/ppb_printing_api.h',
'thunk/ppb_printing_dev_thunk.cc',
'thunk/ppb_tcp_server_socket_private_api.h',
'thunk/ppb_tcp_server_socket_private_thunk.cc',
'thunk/ppb_tcp_socket_api.h',
'thunk/ppb_tcp_socket_private_api.h',
'thunk/ppb_tcp_socket_private_thunk.cc',
'thunk/ppb_tcp_socket_thunk.cc',
'thunk/ppb_text_input_thunk.cc',
'thunk/ppb_truetype_font_api.h',
'thunk/ppb_truetype_font_dev_thunk.cc',
'thunk/ppb_truetype_font_singleton_api.h',
'thunk/ppb_udp_socket_api.h',
'thunk/ppb_udp_socket_private_api.h',
'thunk/ppb_udp_socket_private_thunk.cc',
'thunk/ppb_udp_socket_thunk.cc',
'thunk/ppb_uma_private_thunk.cc',
'thunk/ppb_uma_singleton_api.h',
'thunk/ppb_url_loader_api.h',
'thunk/ppb_url_loader_thunk.cc',
'thunk/ppb_url_loader_trusted_thunk.cc',
'thunk/ppb_url_request_info_api.h',
'thunk/ppb_url_request_info_thunk.cc',
'thunk/ppb_url_response_info_api.h',
'thunk/ppb_url_response_info_thunk.cc',
'thunk/ppb_url_util_thunk.cc',
'thunk/ppb_var_array_thunk.cc',
'thunk/ppb_var_dictionary_thunk.cc',
'thunk/ppb_video_capture_api.h',
'thunk/ppb_video_capture_thunk.cc',
'thunk/ppb_video_decoder_api.h',
'thunk/ppb_video_decoder_dev_api.h',
'thunk/ppb_video_decoder_dev_thunk.cc',
'thunk/ppb_video_decoder_thunk.cc',
'thunk/ppb_video_destination_private_api.h',
'thunk/ppb_video_destination_private_thunk.cc',
'thunk/ppb_video_encoder_api.h',
'thunk/ppb_video_encoder_thunk.cc',
'thunk/ppb_video_frame_api.h',
'thunk/ppb_video_frame_thunk.cc',
'thunk/ppb_video_source_private_api.h',
'thunk/ppb_video_source_private_thunk.cc',
'thunk/ppb_view_api.h',
'thunk/ppb_view_dev_thunk.cc',
'thunk/ppb_view_thunk.cc',
'thunk/ppb_vpn_provider_api.h',
'thunk/ppb_vpn_provider_thunk.cc',
'thunk/ppb_websocket_api.h',
'thunk/ppb_websocket_thunk.cc',
'thunk/ppb_x509_certificate_private_api.h',
'thunk/ppb_x509_certificate_private_thunk.cc',
'thunk/thunk.h',
],
'defines': [
'PPAPI_SHARED_IMPLEMENTATION',
'PPAPI_THUNK_IMPLEMENTATION',
],
'include_dirs': [
'..',
],
'target_conditions': [
['>(nacl_untrusted_build)==1 or >(nacl_win64_target)==1', {
'sources!': [
'shared_impl/flash_clipboard_format_registry.cc',
'shared_impl/ppb_url_util_shared.cc',
'shared_impl/ppb_video_capture_shared.cc',
'shared_impl/ppb_video_decoder_shared.cc',
'shared_impl/private/ppb_browser_font_trusted_shared.cc',
'shared_impl/private/ppb_char_set_shared.cc',
'thunk/ppb_audio_input_dev_thunk.cc',
'thunk/ppb_broker_thunk.cc',
'thunk/ppb_browser_font_trusted_thunk.cc',
'thunk/ppb_buffer_thunk.cc',
'thunk/ppb_char_set_thunk.cc',
'thunk/ppb_content_decryptor_private_thunk.cc',
'thunk/ppb_flash_clipboard_thunk.cc',
'thunk/ppb_flash_device_id_thunk.cc',
'thunk/ppb_flash_drm_thunk.cc',
'thunk/ppb_flash_file_fileref_thunk.cc',
'thunk/ppb_flash_file_modulelocal_thunk.cc',
'thunk/ppb_flash_font_file_thunk.cc',
'thunk/ppb_flash_fullscreen_thunk.cc',
'thunk/ppb_flash_menu_thunk.cc',
'thunk/ppb_flash_message_loop_thunk.cc',
'thunk/ppb_flash_message_loop_thunk.cc',
'thunk/ppb_flash_thunk.cc',
'thunk/ppb_gles_chromium_texture_mapping_thunk.cc',
'thunk/ppb_pdf_thunk.cc',
'thunk/ppb_platform_verification_private_thunk.cc',
'thunk/ppb_transport_thunk.cc',
'thunk/ppb_url_util_thunk.cc',
'thunk/ppb_video_capture_thunk.cc',
'thunk/ppb_video_decoder_dev_thunk.cc',
],
}],
# We exclude a few more things for nacl_win64, to avoid pulling in
# more dependencies.
['>(nacl_win64_target)==1', {
'sources!': [
'shared_impl/ppb_audio_shared.cc',
'shared_impl/ppb_graphics_3d_shared.cc',
'shared_impl/ppb_opengles2_shared.cc',
'shared_impl/private/net_address_private_impl.cc',
'shared_impl/private/ppb_host_resolver_shared.cc',
'thunk/ppb_graphics_3d_thunk.cc',
'thunk/ppb_host_resolver_private_thunk.cc',
'thunk/ppb_tcp_server_socket_private_thunk.cc',
'thunk/ppb_tcp_socket_private_thunk.cc',
'thunk/ppb_udp_socket_private_thunk.cc',
'thunk/ppb_x509_certificate_private_thunk.cc',
],
}],
],
}],
],
},
}

@ -1,47 +0,0 @@
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../build/common_untrusted.gypi',
'ppapi_shared.gypi',
],
'conditions': [
['disable_nacl==0 and disable_nacl_untrusted==0', {
'targets': [
{
'target_name': 'ppapi_shared_nacl',
'type': 'none',
'variables': {
'ppapi_shared_target': 1,
'nacl_win64_target': 0,
'nacl_untrusted_build': 1,
'nlib_target': 'libppapi_shared_nacl.a',
'build_glibc': 0,
'build_newlib': 0,
'build_irt': 1,
'build_pnacl_newlib': 0,
'build_nonsfi_helper': 1,
},
'include_dirs': [
'..',
],
'dependencies': [
'../base/base_nacl.gyp:base_nacl',
'../base/base_nacl.gyp:base_nacl_nonsfi',
'../gpu/command_buffer/command_buffer_nacl.gyp:gles2_utils_nacl',
'../gpu/gpu_nacl.gyp:command_buffer_client_nacl',
'../gpu/gpu_nacl.gyp:gles2_implementation_nacl',
'../media/media_nacl.gyp:shared_memory_support_nacl',
'../third_party/khronos/khronos.gyp:khronos_headers',
'../ui/gfx/gfx_nacl.gyp:gfx_geometry_nacl',
],
},
],
}],
],
}

@ -1,11 +0,0 @@
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Import this file to get the ppapi_sources dictionary containing source files
# from GYP. This is a .gni file so it can be shared between different BUILD.gn
# files without having to re-run the script each time.
ppapi_sources = exec_script("//build/gypi_to_gn.py",
[ rebase_path("ppapi_sources.gypi") ],
"scope",
[ "ppapi_sources.gypi" ])

@ -1,578 +0,0 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'c_source_files': [
'c/pp_array_output.h',
'c/pp_bool.h',
'c/pp_codecs.h',
'c/pp_completion_callback.h',
'c/pp_errors.h',
'c/pp_file_info.h',
'c/pp_graphics_3d.h',
'c/pp_input_event.h',
'c/pp_instance.h',
'c/pp_macros.h',
'c/pp_module.h',
'c/pp_point.h',
'c/pp_rect.h',
'c/pp_resource.h',
'c/pp_size.h',
'c/pp_stdint.h',
'c/pp_time.h',
'c/pp_touch_point.h',
'c/pp_var.h',
'c/ppb.h',
'c/ppb_audio.h',
'c/ppb_audio_buffer.h',
'c/ppb_audio_config.h',
'c/ppb_audio_encoder.h',
'c/ppb_compositor.h',
'c/ppb_console.h',
'c/ppb_core.h',
'c/ppb_file_io.h',
'c/ppb_file_ref.h',
'c/ppb_file_system.h',
'c/ppb_fullscreen.h',
'c/ppb_gamepad.h',
'c/ppb_graphics_2d.h',
'c/ppb_graphics_3d.h',
'c/ppb_host_resolver.h',
'c/ppb_image_data.h',
'c/ppb_input_event.h',
'c/ppb_instance.h',
'c/ppb_media_stream_audio_track.h',
'c/ppb_media_stream_video_track.h',
'c/ppb_message_loop.h',
'c/ppb_messaging.h',
'c/ppb_mouse_cursor.h',
'c/ppb_mouse_lock.h',
'c/ppb_net_address.h',
'c/ppb_network_list.h',
'c/ppb_network_monitor.h',
'c/ppb_network_proxy.h',
'c/ppb_opengles2.h',
'c/ppb_tcp_socket.h',
'c/ppb_text_input_controller.h',
'c/ppb_udp_socket.h',
'c/ppb_url_loader.h',
'c/ppb_url_request_info.h',
'c/ppb_url_response_info.h',
'c/ppb_var.h',
'c/ppb_var_array.h',
'c/ppb_var_array_buffer.h',
'c/ppb_var_dictionary.h',
'c/ppb_video_decoder.h',
'c/ppb_video_encoder.h',
'c/ppb_video_frame.h',
'c/ppb_view.h',
'c/ppb_ppb_vpn_provider.h',
'c/ppb_websocket.h',
'c/ppp.h',
'c/ppp_graphics_3d.h',
'c/ppp_input_event.h',
'c/ppp_instance.h',
'c/ppp_messaging.h',
'c/ppp_mouse_lock.h',
# Dev interfaces.
'c/dev/pp_cursor_type_dev.h',
'c/dev/pp_video_dev.h',
'c/dev/ppb_buffer_dev.h',
'c/dev/ppb_char_set_dev.h',
'c/dev/ppb_cursor_control_dev.h',
'c/dev/ppb_device_ref_dev.h',
'c/dev/ppb_file_chooser_dev.h',
'c/dev/ppb_ime_input_event_dev.h',
'c/dev/ppb_memory_dev.h',
'c/dev/ppb_printing_dev.h',
'c/dev/ppb_text_input_dev.h',
'c/dev/ppb_truetype_font_dev.h',
'c/dev/ppb_url_util_dev.h',
'c/dev/ppb_video_decoder_dev.h',
'c/dev/ppp_network_state_dev.h',
'c/dev/ppp_text_input_dev.h',
'c/dev/ppp_video_decoder_dev.h',
# Private interfaces.
'c/private/pp_file_handle.h',
'c/private/pp_private_font_charset.h',
'c/private/pp_video_frame_private.h',
'c/private/ppb_camera_capabilities_private.h',
'c/private/ppb_camera_device_private.h',
'c/private/ppb_content_decryptor_private.h',
'c/private/ppb_ext_crx_file_system_private.h',
'c/private/ppb_find_private.h',
'c/private/ppb_flash.h',
'c/private/ppb_flash_clipboard.h',
'c/private/ppb_flash_file.h',
'c/private/ppb_flash_font_file.h',
'c/private/ppb_flash_fullscreen.h',
'c/private/ppb_flash_menu.h',
'c/private/ppb_flash_message_loop.h',
'c/private/ppb_host_resolver_private.h',
'c/private/ppb_instance_private.h',
'c/private/ppb_isolated_file_system_private.h',
'c/private/ppb_net_address_private.h',
'c/private/ppb_output_protection_private.h',
'c/private/ppb_pdf.h',
'c/private/ppb_platform_verification_private.h',
'c/private/ppb_proxy_private.h',
'c/private/ppb_tcp_server_socket_private.h',
'c/private/ppb_tcp_socket_private.h',
'c/private/ppb_testing_private.h',
'c/private/ppb_udp_socket_private.h',
'c/private/ppb_uma_private.h',
'c/private/ppb_video_destination_private.h',
'c/private/ppb_video_source_private.h',
'c/private/ppb_x509_certificate_private.h',
'c/private/ppp_content_decryptor_private.h',
'c/private/ppp_find_private.h',
'c/private/ppp_instance_private.h',
# Deprecated interfaces.
'c/dev/deprecated_bool.h',
'c/dev/ppb_var_deprecated.h',
'c/dev/ppp_class_deprecated.h',
# Trusted interfaces.
'c/trusted/ppb_broker_trusted.h',
'c/trusted/ppb_browser_font_trusted.h',
'c/trusted/ppb_file_chooser_trusted.h',
'c/trusted/ppb_url_loader_trusted.h',
'c/trusted/ppp_broker.h',
],
'cpp_source_files': [
'cpp/array_output.cc',
'cpp/array_output.h',
'cpp/audio.cc',
'cpp/audio.h',
'cpp/audio_buffer.cc',
'cpp/audio_buffer.h',
'cpp/audio_config.cc',
'cpp/audio_config.h',
'cpp/audio_encoder.cc',
'cpp/audio_encoder.h',
'cpp/completion_callback.h',
'cpp/compositor.cc',
'cpp/compositor.h',
'cpp/compositor_layer.cc',
'cpp/compositor_layer.h',
'cpp/core.cc',
'cpp/core.h',
'cpp/directory_entry.cc',
'cpp/directory_entry.h',
'cpp/file_io.cc',
'cpp/file_io.h',
'cpp/file_ref.cc',
'cpp/file_ref.h',
'cpp/file_system.cc',
'cpp/file_system.h',
'cpp/fullscreen.cc',
'cpp/fullscreen.h',
'cpp/graphics_2d.cc',
'cpp/graphics_2d.h',
'cpp/graphics_3d.cc',
'cpp/graphics_3d.h',
'cpp/graphics_3d_client.cc',
'cpp/graphics_3d_client.h',
'cpp/host_resolver.cc',
'cpp/host_resolver.h',
'cpp/image_data.cc',
'cpp/image_data.h',
'cpp/input_event.cc',
'cpp/input_event.h',
'cpp/instance.cc',
'cpp/instance.h',
'cpp/instance_handle.cc',
'cpp/instance_handle.h',
'cpp/logging.h',
'cpp/media_stream_audio_track.cc',
'cpp/media_stream_audio_track.h',
'cpp/media_stream_video_track.cc',
'cpp/media_stream_video_track.h',
'cpp/message_handler.h',
'cpp/message_loop.cc',
'cpp/message_loop.h',
'cpp/module.cc',
'cpp/module.h',
'cpp/module_impl.h',
'cpp/mouse_cursor.cc',
'cpp/mouse_cursor.h',
'cpp/mouse_lock.cc',
'cpp/mouse_lock.h',
'cpp/net_address.cc',
'cpp/net_address.h',
'cpp/network_list.cc',
'cpp/network_list.h',
'cpp/network_monitor.cc',
'cpp/network_monitor.h',
'cpp/network_proxy.cc',
'cpp/network_proxy.h',
'cpp/output_traits.h',
'cpp/point.h',
'cpp/rect.cc',
'cpp/rect.h',
'cpp/resource.cc',
'cpp/resource.h',
'cpp/size.h',
'cpp/tcp_socket.cc',
'cpp/tcp_socket.h',
'cpp/text_input_controller.cc',
'cpp/text_input_controller.h',
'cpp/touch_point.h',
'cpp/udp_socket.cc',
'cpp/udp_socket.h',
'cpp/url_loader.cc',
'cpp/url_loader.h',
'cpp/url_request_info.cc',
'cpp/url_request_info.h',
'cpp/url_response_info.cc',
'cpp/url_response_info.h',
'cpp/var.cc',
'cpp/var.h',
'cpp/var_array.cc',
'cpp/var_array.h',
'cpp/var_array_buffer.cc',
'cpp/var_array_buffer.h',
'cpp/var_dictionary.cc',
'cpp/var_dictionary.h',
'cpp/video_decoder.cc',
'cpp/video_decoder.h',
'cpp/video_encoder.cc',
'cpp/video_encoder.h',
'cpp/video_frame.cc',
'cpp/video_frame.h',
'cpp/view.cc',
'cpp/view.h',
'cpp/vpn_provider.h',
'cpp/vpn_provider.cc',
'cpp/websocket.cc',
'cpp/websocket.h',
# Dev interfaces.
'cpp/dev/audio_input_dev.cc',
'cpp/dev/audio_input_dev.h',
'cpp/dev/buffer_dev.cc',
'cpp/dev/buffer_dev.h',
'cpp/dev/crypto_dev.cc',
'cpp/dev/crypto_dev.h',
'cpp/dev/cursor_control_dev.cc',
'cpp/dev/cursor_control_dev.h',
'cpp/dev/device_ref_dev.cc',
'cpp/dev/device_ref_dev.h',
'cpp/dev/file_chooser_dev.cc',
'cpp/dev/file_chooser_dev.h',
'cpp/dev/ime_input_event_dev.cc',
'cpp/dev/ime_input_event_dev.h',
'cpp/dev/memory_dev.cc',
'cpp/dev/memory_dev.h',
'cpp/dev/printing_dev.cc',
'cpp/dev/printing_dev.h',
'cpp/dev/text_input_dev.cc',
'cpp/dev/text_input_dev.h',
'cpp/dev/truetype_font_dev.cc',
'cpp/dev/truetype_font_dev.h',
'cpp/dev/url_util_dev.cc',
'cpp/dev/url_util_dev.h',
'cpp/dev/video_capture_client_dev.cc',
'cpp/dev/video_capture_client_dev.h',
'cpp/dev/video_capture_dev.cc',
'cpp/dev/video_capture_dev.h',
'cpp/dev/video_decoder_client_dev.cc',
'cpp/dev/video_decoder_client_dev.h',
'cpp/dev/video_decoder_dev.cc',
'cpp/dev/video_decoder_dev.h',
'cpp/dev/view_dev.cc',
'cpp/dev/view_dev.h',
# Deprecated interfaces.
'cpp/dev/scriptable_object_deprecated.cc',
'cpp/dev/scriptable_object_deprecated.h',
# Private interfaces.
'cpp/private/camera_capabilities_private.cc',
'cpp/private/camera_capabilities_private.h',
'cpp/private/camera_device_private.cc',
'cpp/private/camera_device_private.h',
'cpp/private/content_decryptor_private.cc',
'cpp/private/content_decryptor_private.h',
'cpp/private/ext_crx_file_system_private.cc',
'cpp/private/ext_crx_file_system_private.h',
'cpp/private/file_io_private.cc',
'cpp/private/file_io_private.h',
'cpp/private/find_private.cc',
'cpp/private/find_private.h',
'cpp/private/flash.cc',
'cpp/private/flash.h',
'cpp/private/flash_clipboard.cc',
'cpp/private/flash_clipboard.h',
'cpp/private/flash_device_id.cc',
'cpp/private/flash_device_id.h',
'cpp/private/flash_drm.cc',
'cpp/private/flash_drm.h',
'cpp/private/flash_file.cc',
'cpp/private/flash_file.h',
'cpp/private/flash_font_file.cc',
'cpp/private/flash_font_file.h',
'cpp/private/flash_fullscreen.cc',
'cpp/private/flash_fullscreen.h',
'cpp/private/flash_menu.cc',
'cpp/private/flash_menu.h',
'cpp/private/flash_message_loop.cc',
'cpp/private/flash_message_loop.h',
'cpp/private/host_resolver_private.cc',
'cpp/private/host_resolver_private.h',
'cpp/private/instance_private.cc',
'cpp/private/instance_private.h',
'cpp/private/isolated_file_system_private.cc',
'cpp/private/isolated_file_system_private.h',
'cpp/private/net_address_private.cc',
'cpp/private/net_address_private.h',
'cpp/private/output_protection_private.cc',
'cpp/private/output_protection_private.h',
'cpp/private/pass_file_handle.cc',
'cpp/private/pass_file_handle.h',
'cpp/private/pdf.cc',
'cpp/private/pdf.h',
'cpp/private/platform_verification.cc',
'cpp/private/platform_verification.h',
'cpp/private/tcp_server_socket_private.cc',
'cpp/private/tcp_server_socket_private.h',
'cpp/private/tcp_socket_private.cc',
'cpp/private/tcp_socket_private.h',
'cpp/private/udp_socket_private.cc',
'cpp/private/udp_socket_private.h',
'cpp/private/uma_private.cc',
'cpp/private/uma_private.h',
'cpp/private/var_private.cc',
'cpp/private/var_private.h',
'cpp/private/video_destination_private.cc',
'cpp/private/video_destination_private.h',
'cpp/private/video_frame_private.cc',
'cpp/private/video_frame_private.h',
'cpp/private/video_source_private.cc',
'cpp/private/video_source_private.h',
'cpp/private/x509_certificate_private.cc',
'cpp/private/x509_certificate_private.h',
# Trusted interfaces.
'cpp/trusted/browser_font_trusted.cc',
'cpp/trusted/browser_font_trusted.h',
'cpp/trusted/file_chooser_trusted.cc',
'cpp/trusted/file_chooser_trusted.h',
# Utility sources.
'utility/completion_callback_factory.h',
'utility/completion_callback_factory_thread_traits.h',
'utility/graphics/paint_aggregator.cc',
'utility/graphics/paint_aggregator.h',
'utility/graphics/paint_manager.cc',
'utility/graphics/paint_manager.h',
'utility/threading/lock.cc',
'utility/threading/lock.h',
'utility/threading/simple_thread.cc',
'utility/threading/simple_thread.h',
'utility/websocket/websocket_api.cc',
'utility/websocket/websocket_api.h',
],
#
# Common Testing source for trusted and untrusted (NaCl) pugins.
#
'test_common_source_files': [
# Common test files
'lib/gl/gles2/gl2ext_ppapi.c',
'lib/gl/gles2/gl2ext_ppapi.h',
'lib/gl/gles2/gles2.c',
'tests/all_c_includes.h',
'tests/all_cpp_includes.h',
'tests/arch_dependent_sizes_32.h',
'tests/arch_dependent_sizes_64.h',
'tests/pp_thread.h',
'tests/test_audio.cc',
'tests/test_audio.h',
'tests/test_audio_config.cc',
'tests/test_audio_config.h',
'tests/test_audio_encoder.cc',
'tests/test_audio_encoder.h',
'tests/test_case.cc',
'tests/test_case.h',
'tests/test_compositor.cc',
'tests/test_compositor.h',
'tests/test_console.cc',
'tests/test_console.h',
'tests/test_core.cc',
'tests/test_core.h',
'tests/test_cursor_control.cc',
'tests/test_cursor_control.h',
'tests/test_empty.cc',
'tests/test_empty.h',
'tests/test_file_io.cc',
'tests/test_file_io.h',
'tests/test_file_ref.cc',
'tests/test_file_ref.h',
'tests/test_file_system.cc',
'tests/test_file_system.h',
'tests/test_fullscreen.cc',
'tests/test_fullscreen.h',
'tests/test_graphics_2d.cc',
'tests/test_graphics_2d.h',
'tests/test_graphics_3d.cc',
'tests/test_graphics_3d.h',
'tests/test_host_resolver.cc',
'tests/test_host_resolver.h',
'tests/test_host_resolver_private.cc',
'tests/test_host_resolver_private.h',
'tests/test_host_resolver_private_disallowed.cc',
'tests/test_host_resolver_private_disallowed.h',
'tests/test_image_data.cc',
'tests/test_image_data.h',
'tests/test_ime_input_event.cc',
'tests/test_ime_input_event.h',
'tests/test_input_event.cc',
'tests/test_input_event.h',
'tests/test_media_stream_audio_track.cc',
'tests/test_media_stream_audio_track.h',
'tests/test_media_stream_video_track.cc',
'tests/test_media_stream_video_track.h',
'tests/test_memory.cc',
'tests/test_memory.h',
'tests/test_message_handler.cc',
'tests/test_message_handler.h',
'tests/test_message_loop.cc',
'tests/test_message_loop.h',
'tests/test_mouse_cursor.cc',
'tests/test_mouse_cursor.h',
'tests/test_mouse_lock.cc',
'tests/test_mouse_lock.h',
'tests/test_net_address.cc',
'tests/test_net_address.h',
'tests/test_net_address_private_untrusted.cc',
'tests/test_net_address_private_untrusted.h',
'tests/test_network_monitor.cc',
'tests/test_network_monitor.h',
'tests/test_network_proxy.cc',
'tests/test_network_proxy.h',
'tests/test_output_protection_private.cc',
'tests/test_output_protection_private.h',
'tests/test_paint_aggregator.cc',
'tests/test_paint_aggregator.h',
'tests/test_post_message.cc',
'tests/test_post_message.h',
'tests/test_printing.cc',
'tests/test_printing.h',
'tests/test_tcp_server_socket_private.cc',
'tests/test_tcp_server_socket_private.h',
'tests/test_tcp_socket.cc',
'tests/test_tcp_socket.h',
'tests/test_tcp_socket_private.cc',
'tests/test_tcp_socket_private.h',
'tests/test_test_internals.cc',
'tests/test_test_internals.h',
'tests/test_trace_event.cc',
'tests/test_trace_event.h',
'tests/test_truetype_font.cc',
'tests/test_truetype_font.h',
'tests/test_udp_socket.cc',
'tests/test_udp_socket.h',
'tests/test_udp_socket_private.cc',
'tests/test_udp_socket_private.h',
'tests/test_uma.cc',
'tests/test_uma.h',
'tests/test_url_loader.cc',
'tests/test_url_loader.h',
'tests/test_url_request.cc',
'tests/test_url_request.h',
'tests/test_utils.cc',
'tests/test_var.cc',
'tests/test_var.h',
'tests/test_var_resource.cc',
'tests/test_var_resource.h',
'tests/test_video_decoder.cc',
'tests/test_video_decoder.h',
'tests/test_video_destination.cc',
'tests/test_video_destination.h',
'tests/test_video_encoder.cc',
'tests/test_video_encoder.h',
'tests/test_video_source.cc',
'tests/test_video_source.h',
'tests/test_view.cc',
'tests/test_view.h',
'tests/test_websocket.cc',
'tests/test_websocket.h',
'tests/testing_instance.cc',
'tests/testing_instance.h',
# Compile-time tests
'tests/test_c_includes.c',
'tests/test_cpp_includes.cc',
'tests/test_struct_sizes.c',
],
#
# Sources used in NaCl tests.
#
'test_nacl_source_files': [
# Test cases (PLEASE KEEP THIS SECTION IN ALPHABETICAL ORDER)
'tests/test_nacl_irt_stack_alignment.cc',
'tests/test_nacl_irt_stack_alignment.h',
'tests/test_tcp_server_socket_private_disallowed.cc',
'tests/test_tcp_socket_private_disallowed.cc',
'tests/test_udp_socket_private_disallowed.cc',
],
#
# Sources used in trusted tests.
#
'test_trusted_source_files': [
# Test cases (PLEASE KEEP THIS SECTION IN ALPHABETICAL ORDER)
'tests/test_broker.cc',
'tests/test_broker.h',
'tests/test_browser_font.cc',
'tests/test_browser_font.h',
'tests/test_buffer.cc',
'tests/test_buffer.h',
'tests/test_char_set.cc',
'tests/test_char_set.h',
'tests/test_crypto.cc',
'tests/test_crypto.h',
'tests/test_file_chooser.cc',
'tests/test_file_chooser.h',
'tests/test_flash.cc',
'tests/test_flash.h',
'tests/test_flash_clipboard.cc',
'tests/test_flash_clipboard.h',
'tests/test_flash_drm.cc',
'tests/test_flash_drm.h',
'tests/test_flash_file.cc',
'tests/test_flash_file.h',
'tests/test_flash_fullscreen.cc',
'tests/test_flash_fullscreen.h',
'tests/test_flash_fullscreen_for_browser_ui.cc',
'tests/test_flash_fullscreen_for_browser_ui.h',
'tests/test_flash_message_loop.cc',
'tests/test_flash_message_loop.h',
'tests/test_net_address_private.cc',
'tests/test_net_address_private.h',
'tests/test_pdf.cc',
'tests/test_pdf.h',
'tests/test_platform_verification_private.cc',
'tests/test_platform_verification_private.h',
'tests/test_tcp_socket_private_trusted.cc',
'tests/test_tcp_socket_private_trusted.h',
'tests/test_url_util.cc',
'tests/test_url_util.h',
'tests/test_utils.h',
'tests/test_video_decoder_dev.cc',
'tests/test_video_decoder_dev.h',
'tests/test_x509_certificate_private.cc',
'tests/test_x509_certificate_private.h',
# Deprecated test cases.
'tests/test_instance_deprecated.cc',
'tests/test_instance_deprecated.h',
'tests/test_var_deprecated.cc',
'tests/test_var_deprecated.h',
],
},
}

@ -1,706 +0,0 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
# GN version: //ppapi:ppapi_tests
'target_name': 'ppapi_tests',
'type': 'loadable_module',
'include_dirs': [
'lib/gl/include',
],
'defines': [
'GL_GLEXT_PROTOTYPES',
],
'sources': [
'<@(test_common_source_files)',
'<@(test_trusted_source_files)',
],
'dependencies': [
'ppapi.gyp:ppapi_cpp',
'ppapi_internal.gyp:ppapi_shared',
],
'copies': [
{
'destination': '<(PRODUCT_DIR)',
'files': [
# Keep 'test_case.html.mock-http-headers' with 'test_case.html'.
'tests/test_case.html',
'tests/test_case.html.mock-http-headers',
'tests/test_page.css',
'tests/test_page.css.mock-http-headers',
'tests/ppapi_nacl_tests_newlib.nmf',
],
},
{
'destination': '<(PRODUCT_DIR)/test_url_loader_data',
'files': [
'tests/test_url_loader_data/hello.txt',
],
},
],
'run_as': {
'action': [
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)',
'--enable-pepper-testing',
'--register-pepper-plugins=$(TargetPath);application/x-ppapi-tests',
'file://$(ProjectDir)/tests/test_case.html?testcase=',
],
},
'conditions': [
['OS=="win"', {
'defines': [
'_CRT_SECURE_NO_DEPRECATE',
'_CRT_NONSTDC_NO_WARNINGS',
'_CRT_NONSTDC_NO_DEPRECATE',
'_SCL_SECURE_NO_DEPRECATE',
],
}],
['OS=="mac"', {
'mac_bundle': 1,
'product_name': 'ppapi_tests',
'product_extension': 'plugin',
}],
],
# TODO(dmichael): Figure out what is wrong with the script on Windows and add
# it as an automated action.
# 'actions': [
# {
# 'action_name': 'generate_ppapi_include_tests',
# 'inputs': [],
# 'outputs': [
# 'tests/test_c_includes.c',
# 'tests/test_cc_includes.cc',
# ],
# 'action': [
# '<!@(python generate_ppapi_include_tests.py)',
# ],
# },
# ],
},
{
# GN version: //ppapi:power_saver_test_plugin
'target_name': 'power_saver_test_plugin',
'type': 'loadable_module',
'sources': [
'tests/power_saver_test_plugin.cc',
'tests/test_utils.cc',
],
'dependencies': [
'ppapi.gyp:ppapi_cpp',
'ppapi_internal.gyp:ppapi_shared',
],
'conditions': [
['OS=="mac"', {
'mac_bundle': 1,
'product_name': 'power_saver_test_plugin',
'product_extension': 'plugin',
}],
],
},
{
# GN version: //ppapi:blink_deprecated_test_plugin
'target_name': 'blink_deprecated_test_plugin',
'type': 'loadable_module',
'sources': [
'tests/blink_deprecated_test_plugin.cc',
],
'dependencies': [
'../base/base.gyp:base',
'ppapi.gyp:ppapi_cpp',
'ppapi_internal.gyp:ppapi_shared',
],
'conditions': [
['OS=="mac"', {
'mac_bundle': 1,
'product_name': 'blink_deprecated_test_plugin',
'product_extension': 'plugin',
}],
],
},
{
# GN version: //ppapi:blink_test_plugin
'target_name': 'blink_test_plugin',
'type': 'loadable_module',
'sources': [
'tests/blink_test_plugin.cc',
],
'dependencies': [
'../base/base.gyp:base',
'ppapi.gyp:ppapi_cpp',
'ppapi_internal.gyp:ppapi_shared',
],
'conditions': [
['OS=="mac"', {
'mac_bundle': 1,
'product_name': 'blink_test_plugin',
'product_extension': 'plugin',
}],
],
},
{
# GN version: //ppapi/proxy:test_support
# //ppapi/shared_impl:test_support
'target_name': 'ppapi_unittest_shared',
'type': 'static_library',
'dependencies': [
'ppapi_proxy',
'ppapi_shared',
'../base/base.gyp:test_support_base',
'../ipc/ipc.gyp:ipc',
'../ipc/ipc.gyp:test_support_ipc',
'../mojo/mojo_edk.gyp:mojo_system_impl',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
],
'sources': [
# Note: sources list duplicated in GN build.
'proxy/ppapi_proxy_test.cc',
'proxy/ppapi_proxy_test.h',
'proxy/resource_message_test_sink.cc',
'proxy/resource_message_test_sink.h',
'shared_impl/test_globals.cc',
'shared_impl/test_globals.h',
'shared_impl/test_utils.cc',
'shared_impl/test_utils.h',
],
},
{
# GN version: //ppapi:ppapi_perftests
'target_name': 'ppapi_perftests',
'type': 'executable',
'variables': {
'chromium_code': 1,
},
'dependencies': [
'ppapi_proxy',
'ppapi_shared',
'ppapi_unittest_shared',
'../base/base.gyp:test_support_base',
'../mojo/mojo_edk.gyp:mojo_system_impl',
'../testing/gtest.gyp:gtest',
],
'sources': [
'proxy/ppapi_perftests.cc',
'proxy/ppp_messaging_proxy_perftest.cc',
],
},
{
# GN version: //ppapi:ppapi_unittests
'target_name': 'ppapi_unittests',
'type': 'executable',
'variables': {
'chromium_code': 1,
},
'dependencies': [
'ppapi_host',
'ppapi_proxy',
'ppapi_shared',
'ppapi_unittest_shared',
'../base/base.gyp:test_support_base',
'../gpu/gpu.gyp:gpu_ipc_common',
'../ipc/ipc.gyp:ipc',
'../ipc/ipc.gyp:ipc_run_all_unittests',
'../ipc/ipc.gyp:test_support_ipc',
'../media/media.gyp:shared_memory_support',
'../skia/skia.gyp:skia',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../ui/surface/surface.gyp:surface',
],
'sources': [
# Note: sources list duplicated in GN build.
'host/resource_message_filter_unittest.cc',
'proxy/device_enumeration_resource_helper_unittest.cc',
'proxy/file_chooser_resource_unittest.cc',
'proxy/file_system_resource_unittest.cc',
'proxy/flash_resource_unittest.cc',
'proxy/interface_list_unittest.cc',
'proxy/mock_resource.cc',
'proxy/mock_resource.h',
'proxy/nacl_message_scanner_unittest.cc',
'proxy/pdf_resource_unittest.cc',
'proxy/plugin_dispatcher_unittest.cc',
'proxy/plugin_resource_tracker_unittest.cc',
'proxy/plugin_var_tracker_unittest.cc',
'proxy/ppb_var_unittest.cc',
'proxy/ppp_instance_private_proxy_unittest.cc',
'proxy/ppp_instance_proxy_unittest.cc',
'proxy/ppp_messaging_proxy_unittest.cc',
'proxy/printing_resource_unittest.cc',
'proxy/raw_var_data_unittest.cc',
'proxy/serialized_var_unittest.cc',
'proxy/tracked_callback_unittest.cc',
'proxy/video_decoder_resource_unittest.cc',
'proxy/video_encoder_resource_unittest.cc',
'proxy/websocket_resource_unittest.cc',
'shared_impl/media_stream_audio_track_shared_unittest.cc',
'shared_impl/media_stream_buffer_manager_unittest.cc',
'shared_impl/media_stream_video_track_shared_unittest.cc',
'shared_impl/proxy_lock_unittest.cc',
'shared_impl/resource_tracker_unittest.cc',
'shared_impl/thread_aware_callback_unittest.cc',
'shared_impl/time_conversion_unittest.cc',
'shared_impl/var_tracker_unittest.cc',
],
},
{
'target_name': 'ppapi_example_skeleton',
'suppress_wildcard': 1,
'type': 'none',
'direct_dependent_settings': {
'product_name': '>(_target_name)',
'conditions': [
['os_posix==1 and OS!="mac"', {
'cflags': ['-fvisibility=hidden'],
'type': 'shared_library',
}],
['OS=="win"', {
'type': 'shared_library',
}],
['OS=="mac"', {
'type': 'loadable_module',
'mac_bundle': 1,
'product_extension': 'plugin',
'xcode_settings': {
'OTHER_LDFLAGS': [
# Not to strip important symbols by -Wl,-dead_strip.
'-Wl,-exported_symbol,_PPP_GetInterface',
'-Wl,-exported_symbol,_PPP_InitializeModule',
'-Wl,-exported_symbol,_PPP_ShutdownModule'
]},
}],
],
},
},
{
# GN version: //ppapi/examples/mouse_cursor
'target_name': 'ppapi_example_mouse_cursor',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/mouse_cursor/mouse_cursor.cc',
],
},
{
# GN version: //ppapi/examples/mouse_lock
'target_name': 'ppapi_example_mouse_lock',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/mouse_lock/mouse_lock.cc',
],
},
{
# GN version: //ppapi/examples/gamepad
'target_name': 'ppapi_example_gamepad',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/gamepad/gamepad.cc',
],
},
{
# GN version: //ppapi/examples/stub:c_stub
'target_name': 'ppapi_example_c_stub',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_c',
],
'sources': [
'examples/stub/stub.c',
],
},
{
# GN version: //ppapi/examples/stub:cc_stub
'target_name': 'ppapi_example_cc_stub',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/stub/stub.cc',
],
},
{
# GN version: //ppapi/examples/crxfs
'target_name': 'ppapi_example_crxfs',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/crxfs/crxfs.cc',
],
},
{
# GN version: //ppapi/examples/audio
'target_name': 'ppapi_example_audio',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/audio/audio.cc',
],
},
{
'target_name': 'ppapi_example_audio_encode',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/audio_encode/audio_encode.cc',
],
},
{
# GN version: //ppapi/examples/audio_input
'target_name': 'ppapi_example_audio_input',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/audio_input/audio_input.cc',
],
},
{
# GN version: //ppapi/examples/file_chooser
'target_name': 'ppapi_example_file_chooser',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/file_chooser/file_chooser.cc',
],
},
{
# GN version: //ppapi/examples/2d:graphics_2d
'target_name': 'ppapi_example_graphics_2d',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_c',
],
'sources': [
'examples/2d/graphics_2d_example.c',
],
},
{
# GN version: //ppapi/examples/ime
'target_name': 'ppapi_example_ime',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/ime/ime.cc',
],
},
{
# GN version: //ppapi/examples/2d:paint_manager
'target_name': 'ppapi_example_paint_manager',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/2d/paint_manager_example.cc',
],
},
{
# GN version: //ppapi/examples/input
'target_name': 'ppapi_example_input',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/input/pointer_event_input.cc',
],
},
{
# GN version: //ppapi/examples/scripting
'target_name': 'ppapi_example_post_message',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/scripting/post_message.cc',
],
},
{
# GN version: //ppapi/examples/scaling
'target_name': 'ppapi_example_scaling',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/scaling/scaling.cc',
],
},
{
# GN version: //ppapi/examples/2d:scroll
'target_name': 'ppapi_example_scroll',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/2d/scroll.cc',
],
},
{
# GN version: //ppapi/examples/font
'target_name': 'ppapi_example_simple_font',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/font/simple_font.cc',
],
},
{
# GN version: //ppapi/examples/threading
'target_name': 'ppapi_example_threading',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/threading/threading.cc',
],
},
{
# GN version: //ppapi/examples/url_loader:streaming
'target_name': 'ppapi_example_url_loader',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/url_loader/streaming.cc',
],
},
{
# GN version: //ppapi/examples/url_loader:file
'target_name': 'ppapi_example_url_loader_file',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/url_loader/stream_to_file.cc',
],
},
{
# GN version: //ppapi/examples/gles2
'target_name': 'ppapi_example_gles2',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
'ppapi.gyp:ppapi_gles2',
],
'include_dirs': [
'lib/gl/include',
],
'sources': [
'examples/gles2/gles2.cc',
],
},
{
# GN version: //ppapi/examples/video_decode:stable
'target_name': 'ppapi_example_video_decode',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
'ppapi.gyp:ppapi_gles2',
],
'include_dirs': [
'lib/gl/include',
],
'sources': [
'examples/video_decode/testdata.h',
'examples/video_decode/video_decode.cc',
],
},
{
# GN version: //ppapi/examples/video_decode:dev
'target_name': 'ppapi_example_video_decode_dev',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
'ppapi.gyp:ppapi_gles2',
],
'include_dirs': [
'lib/gl/include',
],
'sources': [
'examples/video_decode/testdata.h',
'examples/video_decode/video_decode_dev.cc',
],
},
{
'target_name': 'ppapi_example_video_encode',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/video_encode/video_encode.cc',
],
},
{
# GN version: //ppapi/example/video_capture
'target_name': 'ppapi_example_vc',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
'ppapi.gyp:ppapi_gles2',
],
'include_dirs': [
'lib/gl/include',
],
'sources': [
'examples/video_capture/video_capture.cc',
],
},
{
# GN version: //ppapi/examples/video_effects
'target_name': 'ppapi_example_video_effects',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/video_effects/video_effects.cc',
],
},
{
# GN version: //ppapi/examples/enumerate_devices
'target_name': 'ppapi_example_enumerate_devices',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/enumerate_devices/enumerate_devices.cc',
],
},
{
# GN version: //ppapi/examples/flash_topmost
'target_name': 'ppapi_example_flash_topmost',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/flash_topmost/flash_topmost.cc',
],
},
{
# GN version: //ppapi/examples/printing
'target_name': 'ppapi_example_printing',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/printing/printing.cc',
],
},
{
# GN version: //ppapi/examples/media_stream_audio
'target_name': 'ppapi_example_media_stream_audio',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
],
'sources': [
'examples/media_stream_audio/media_stream_audio.cc',
],
},
{
# GN version: //ppapi/examples/media_stream_video
'target_name': 'ppapi_example_media_stream_video',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
'ppapi.gyp:ppapi_gles2',
],
'include_dirs': [
'lib/gl/include',
],
'sources': [
'examples/media_stream_video/media_stream_video.cc',
],
},
{
# GN version: //ppapi/examples/gles2_spinning_cube
'target_name': 'ppapi_example_gles2_spinning_cube',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
'ppapi.gyp:ppapi_gles2',
],
'include_dirs': [
'lib/gl/include',
],
'sources': [
'examples/gles2_spinning_cube/gles2_spinning_cube.cc',
'examples/gles2_spinning_cube/spinning_cube.cc',
'examples/gles2_spinning_cube/spinning_cube.h',
],
},
{
# GN version: //ppapi/examples/compositor
'target_name': 'ppapi_example_compositor',
'dependencies': [
'ppapi_example_skeleton',
'ppapi.gyp:ppapi_cpp',
'ppapi.gyp:ppapi_gles2',
],
'include_dirs': [
'lib/gl/include',
],
'sources': [
'examples/compositor/compositor.cc',
'examples/compositor/spinning_cube.cc',
'examples/compositor/spinning_cube.h',
],
},
# Adding a new PPAPI example? Don't forget to update the GN build.
# See //ppapi/examples/BUILD.gn
],
'conditions': [
['test_isolation_mode != "noop"', {
'targets': [
{
'target_name': 'ppapi_unittests_run',
'type': 'none',
'dependencies': [
'ppapi_unittests',
],
'includes': [ '../build/isolate.gypi' ],
'sources': [ 'ppapi_unittests.isolate' ],
},
],
}],
],
}

@ -33,7 +33,7 @@ if (is_nacl && !is_nacl_nonsfi) {
"background_keepalive/background.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
destination_dir = "test_data/ppapi/tests/extensions/background_keepalive"
test_files = [
@ -47,7 +47,7 @@ if (is_nacl && !is_nacl_nonsfi) {
"load_unload/load_unload.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
destination_dir = "test_data/ppapi/tests/extensions/load_unload"
test_files = [
@ -64,7 +64,7 @@ if (is_nacl && !is_nacl_nonsfi) {
"media_galleries/test_galleries.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
destination_dir = "test_data/ppapi/tests/extensions/media_galleries"
test_files = [
@ -80,7 +80,7 @@ if (is_nacl && !is_nacl_nonsfi) {
"multicast_permissions/test_multicast_permissions.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
destination_dir = "test_data/ppapi/tests/extensions/multicast_permissions"
test_files = [
@ -96,7 +96,7 @@ if (is_nacl && !is_nacl_nonsfi) {
"no_socket_permissions/test_no_socket_permissions.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
destination_dir = "test_data/ppapi/tests/extensions/no_socket_permissions"
test_files = [
@ -112,7 +112,7 @@ if (is_nacl && !is_nacl_nonsfi) {
"popup/module.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
destination_dir = "test_data/ppapi/tests/extensions/popup"
test_files = [
@ -128,7 +128,7 @@ if (is_nacl && !is_nacl_nonsfi) {
"socket_permissions/test_socket_permissions.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
destination_dir = "test_data/ppapi/tests/extensions/socket_permissions"
test_files = [
@ -146,7 +146,7 @@ if (is_nacl) {
"packaged_app/test_packaged_app.cc",
]
deps = [
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
]
destination_dir = "test_data/ppapi/tests/extensions/packaged_app"
test_files = [

@ -1,327 +0,0 @@
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'includes': [
'../../../ppapi/ppapi_nacl_test_common.gypi',
],
'targets': [
{
'target_name': 'ppapi_tests_extensions_background_keepalive',
'type': 'none',
'variables': {
'nexe_target': 'ppapi_tests_extensions_background_keepalive',
# Only newlib build is used in tests, no need to build others.
'build_newlib': 1,
'build_glibc': 0,
'build_pnacl_newlib': 0,
'nexe_destination_dir': 'test_data/ppapi/tests/extensions/background_keepalive',
'sources': [
'background_keepalive/background.cc',
],
'test_files': [
'background_keepalive/background.js',
'background_keepalive/manifest.json',
],
},
},
{
'target_name': 'ppapi_tests_extensions_load_unload',
'type': 'none',
'variables': {
'nexe_target': 'ppapi_tests_extensions_load_unload',
# Only newlib build is used in tests, no need to build others.
'build_newlib': 1,
'build_glibc': 0,
'build_pnacl_newlib': 0,
'nexe_destination_dir': 'test_data/ppapi/tests/extensions/load_unload',
'sources': [
'load_unload/load_unload.cc',
],
'test_files': [
'load_unload/background.js',
'load_unload/ext_icon.png',
'load_unload/manifest.json',
],
},
},
{
'target_name': 'ppapi_tests_extensions_media_galleries',
'type': 'none',
'variables': {
'nexe_target': 'ppapi_tests_extensions_media_galleries',
# Only newlib build is used in tests, no need to build others.
'build_newlib': 1,
'build_glibc': 0,
'build_pnacl_newlib': 0,
'nexe_destination_dir': 'test_data/ppapi/tests/extensions/media_galleries',
'sources': [
'<(DEPTH)/ppapi/tests/test_utils.cc',
'<(DEPTH)/ppapi/tests/test_utils.h',
'media_galleries/test_galleries.cc',
],
'test_files': [
'media_galleries/background.js',
'media_galleries/index.html',
'media_galleries/manifest.json',
'media_galleries/test.js',
],
},
},
{
'target_name': 'ppapi_tests_extensions_multicast_permissions',
'type': 'none',
'variables': {
'nexe_target': 'ppapi_tests_extensions_multicast_permissions',
# Only newlib build is used in tests, no need to build others.
'build_newlib': 1,
'build_glibc': 0,
'build_pnacl_newlib': 0,
'nexe_destination_dir': 'test_data/ppapi/tests/extensions/multicast_permissions',
'sources': [
'multicast_permissions/test_multicast_permissions.cc',
],
'test_files': [
'multicast_permissions/controller.js',
'multicast_permissions/index.html',
'multicast_permissions/main.js',
'multicast_permissions/manifest.json',
],
},
},
{
'target_name': 'ppapi_tests_extensions_no_socket_permissions',
'type': 'none',
'variables': {
'nexe_target': 'ppapi_tests_extensions_no_socket_permissions',
# Only newlib build is used in tests, no need to build others.
'build_newlib': 1,
'build_glibc': 0,
'build_pnacl_newlib': 0,
'nexe_destination_dir': 'test_data/ppapi/tests/extensions/no_socket_permissions',
'sources': [
'no_socket_permissions/test_no_socket_permissions.cc',
],
'test_files': [
'no_socket_permissions/controller.js',
'no_socket_permissions/index.html',
'no_socket_permissions/main.js',
'no_socket_permissions/manifest.json',
],
},
},
{
'target_name': 'ppapi_tests_extensions_packaged_app',
'type': 'none',
'variables': {
'nexe_target': 'ppapi_tests_extensions_packaged_app',
'build_newlib': 1,
'build_glibc': 0,
'nexe_destination_dir': 'test_data/ppapi/tests/extensions/packaged_app',
'sources': [
'packaged_app/test_packaged_app.cc'
],
'test_files': [
'packaged_app/controller.js',
'packaged_app/index.html',
'packaged_app/main.js',
'packaged_app/manifest.json',
'packaged_app/test_file.txt',
'packaged_app/test_file2.txt',
],
'create_nmf_args_portable': [
# Add 129 "files" entries to make sure that open_resource can handle
# more files than IPC::MessageAttachmentSet::kMaxDescriptorsPerMessage
# which is currently 128.
'-xtest_file0:test_file.txt',
'-xtest_file1:test_file2.txt',
'-xtest_file2:test_file.txt',
'-xtest_file3:test_file2.txt',
'-xtest_file4:test_file.txt',
'-xtest_file5:test_file2.txt',
'-xtest_file6:test_file.txt',
'-xtest_file7:test_file2.txt',
'-xtest_file8:test_file.txt',
'-xtest_file9:test_file2.txt',
'-xtest_file10:test_file.txt',
'-xtest_file11:test_file2.txt',
'-xtest_file12:test_file.txt',
'-xtest_file13:test_file2.txt',
'-xtest_file14:test_file.txt',
'-xtest_file15:test_file2.txt',
'-xtest_file16:test_file.txt',
'-xtest_file17:test_file2.txt',
'-xtest_file18:test_file.txt',
'-xtest_file19:test_file2.txt',
'-xtest_file20:test_file.txt',
'-xtest_file21:test_file2.txt',
'-xtest_file22:test_file.txt',
'-xtest_file23:test_file2.txt',
'-xtest_file24:test_file.txt',
'-xtest_file25:test_file2.txt',
'-xtest_file26:test_file.txt',
'-xtest_file27:test_file2.txt',
'-xtest_file28:test_file.txt',
'-xtest_file29:test_file2.txt',
'-xtest_file30:test_file.txt',
'-xtest_file31:test_file2.txt',
'-xtest_file32:test_file.txt',
'-xtest_file33:test_file2.txt',
'-xtest_file34:test_file.txt',
'-xtest_file35:test_file2.txt',
'-xtest_file36:test_file.txt',
'-xtest_file37:test_file2.txt',
'-xtest_file38:test_file.txt',
'-xtest_file39:test_file2.txt',
'-xtest_file40:test_file.txt',
'-xtest_file41:test_file2.txt',
'-xtest_file42:test_file.txt',
'-xtest_file43:test_file2.txt',
'-xtest_file44:test_file.txt',
'-xtest_file45:test_file2.txt',
'-xtest_file46:test_file.txt',
'-xtest_file47:test_file2.txt',
'-xtest_file48:test_file.txt',
'-xtest_file49:test_file2.txt',
'-xtest_file50:test_file.txt',
'-xtest_file51:test_file2.txt',
'-xtest_file52:test_file.txt',
'-xtest_file53:test_file2.txt',
'-xtest_file54:test_file.txt',
'-xtest_file55:test_file2.txt',
'-xtest_file56:test_file.txt',
'-xtest_file57:test_file2.txt',
'-xtest_file58:test_file.txt',
'-xtest_file59:test_file2.txt',
'-xtest_file60:test_file.txt',
'-xtest_file61:test_file2.txt',
'-xtest_file62:test_file.txt',
'-xtest_file63:test_file2.txt',
'-xtest_file64:test_file.txt',
'-xtest_file65:test_file2.txt',
'-xtest_file66:test_file.txt',
'-xtest_file67:test_file2.txt',
'-xtest_file68:test_file.txt',
'-xtest_file69:test_file2.txt',
'-xtest_file70:test_file.txt',
'-xtest_file71:test_file2.txt',
'-xtest_file72:test_file.txt',
'-xtest_file73:test_file2.txt',
'-xtest_file74:test_file.txt',
'-xtest_file75:test_file2.txt',
'-xtest_file76:test_file.txt',
'-xtest_file77:test_file2.txt',
'-xtest_file78:test_file.txt',
'-xtest_file79:test_file2.txt',
'-xtest_file80:test_file.txt',
'-xtest_file81:test_file2.txt',
'-xtest_file82:test_file.txt',
'-xtest_file83:test_file2.txt',
'-xtest_file84:test_file.txt',
'-xtest_file85:test_file2.txt',
'-xtest_file86:test_file.txt',
'-xtest_file87:test_file2.txt',
'-xtest_file88:test_file.txt',
'-xtest_file89:test_file2.txt',
'-xtest_file90:test_file.txt',
'-xtest_file91:test_file2.txt',
'-xtest_file92:test_file.txt',
'-xtest_file93:test_file2.txt',
'-xtest_file94:test_file.txt',
'-xtest_file95:test_file2.txt',
'-xtest_file96:test_file.txt',
'-xtest_file97:test_file2.txt',
'-xtest_file98:test_file.txt',
'-xtest_file99:test_file2.txt',
'-xtest_file100:test_file.txt',
'-xtest_file101:test_file2.txt',
'-xtest_file102:test_file.txt',
'-xtest_file103:test_file2.txt',
'-xtest_file104:test_file.txt',
'-xtest_file105:test_file2.txt',
'-xtest_file106:test_file.txt',
'-xtest_file107:test_file2.txt',
'-xtest_file108:test_file.txt',
'-xtest_file109:test_file2.txt',
'-xtest_file110:test_file.txt',
'-xtest_file111:test_file2.txt',
'-xtest_file112:test_file.txt',
'-xtest_file113:test_file2.txt',
'-xtest_file114:test_file.txt',
'-xtest_file115:test_file2.txt',
'-xtest_file116:test_file.txt',
'-xtest_file117:test_file2.txt',
'-xtest_file118:test_file.txt',
'-xtest_file119:test_file2.txt',
'-xtest_file120:test_file.txt',
'-xtest_file121:test_file2.txt',
'-xtest_file122:test_file.txt',
'-xtest_file123:test_file2.txt',
'-xtest_file124:test_file.txt',
'-xtest_file125:test_file2.txt',
'-xtest_file126:test_file.txt',
'-xtest_file127:test_file2.txt',
'-xtest_file128:test_file.txt',
],
},
'conditions': [
['(target_arch=="ia32" or target_arch=="x64") and OS=="linux"', {
# Enable nonsfi testing only on ia32-linux environment.
# See chrome/test/data/nacl/nacl_test_data.gyp for more info.
'variables': {
'build_pnacl_newlib': 1,
'translate_pexe_with_build': 1,
'enable_x86_32_nonsfi': 1,
},
}],
],
# Shim is a dependency for the nexe because we pre-translate.
'dependencies': [
'<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:aot',
],
},
{
'target_name': 'ppapi_tests_extensions_popup',
'type': 'none',
'variables': {
'nexe_target': 'ppapi_tests_extensions_popup',
# Only newlib build is used in tests, no need to build others.
'build_newlib': 1,
'build_glibc': 0,
'build_pnacl_newlib': 0,
'nexe_destination_dir': 'test_data/ppapi/tests/extensions/popup',
'sources': [
'popup/module.cc',
],
'test_files': [
'popup/background.js',
'popup/popup.html',
'popup/popup.js',
'popup/manifest.json',
],
},
},
{
'target_name': 'ppapi_tests_extensions_socket_permissions',
'type': 'none',
'variables': {
'nexe_target': 'ppapi_tests_extensions_socket_permissions',
# Only newlib build is used in tests, no need to build others.
'build_newlib': 1,
'build_glibc': 0,
'build_pnacl_newlib': 0,
'nexe_destination_dir': 'test_data/ppapi/tests/extensions/socket_permissions',
'sources': [
'socket_permissions/test_socket_permissions.cc',
],
'test_files': [
'socket_permissions/controller.js',
'socket_permissions/index.html',
'socket_permissions/main.js',
'socket_permissions/manifest.json',
],
},
},
],
}

@ -1,18 +0,0 @@
# Copyright (c) 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'pepper_hash_for_uma',
'type': 'executable',
'dependencies': [
'../../base/base.gyp:base'
],
'sources': [
'pepper_hash_for_uma.cc',
],
}
]
}

@ -194,7 +194,7 @@ if (is_nacl) {
deps = [
":liblouis_nacl",
"//native_client_sdk/src/libraries/nacl_io",
"//ppapi:ppapi_cpp_lib",
"//ppapi/cpp",
"//ppapi/native_client:ppapi_lib",
"//third_party/jsoncpp",
]