From 6ba7355aaae75a21af22663f26543186bd61f4cb Mon Sep 17 00:00:00 2001 From: mukai Date: Thu, 9 Oct 2014 12:05:17 -0700 Subject: Add //chromeos GN target. This CL depends on https://codereview.chromium.org/637643003/ BUG=None R=cmasone@chromium.org, oshima@chromium.org TBR=armansito@chromium.org, sky@chromium.org, mkwst@chromium.org, brettw@chromium.org TEST=chromeos_unittests / ash_shell works Review URL: https://codereview.chromium.org/637093002 Cr-Commit-Position: refs/heads/master@{#298951} --- chromeos/BUILD.gn | 178 ++++++++++ chromeos/chromeos.gyp | 891 +++++++++++++++++++++++++------------------------- chromeos/ime/BUILD.gn | 15 + 3 files changed, 644 insertions(+), 440 deletions(-) create mode 100644 chromeos/ime/BUILD.gn (limited to 'chromeos') diff --git a/chromeos/BUILD.gn b/chromeos/BUILD.gn index c237ca1..d6aeda5 100644 --- a/chromeos/BUILD.gn +++ b/chromeos/BUILD.gn @@ -2,8 +2,167 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +import("//build/config/allocator.gni") +import("//build/config/ui.gni") import("//third_party/protobuf/proto_library.gni") +gypi_values = exec_script( + "//build/gypi_to_gn.py", + [ rebase_path("chromeos.gyp") ], + "scope", + [ "chromeos.gyp" ]) + +component("chromeos") { + configs += [ + "//build/config/linux:dbus", + "//net/third_party/nss/ssl:ssl_config", + ] + deps = [ + "//base", + "//base:prefs", + "//base/third_party/dynamic_annotations", + "//chromeos/ime:gencode", + "//components/policy/proto", + "//components/onc", + "//crypto", + "//dbus", + "//google_apis", + "//net/third_party/nss/ssl:libssl", + "//third_party/icu", + "//third_party/libxml", + "//third_party/protobuf:protobuf_lite", + "//ui/accelerometer", + "//url", + ":cryptohome_proto", + ":power_manager_proto" + ] + sources = gypi_values.chromeos_sources + defines = [ "CHROMEOS_IMPLEMENTATION" ] + if (use_x11) { + configs += [ "//build/config/linux:x11" ] + deps += [ "//ui/gfx/x" ] + sources -= [ "ime/ime_keyboard_ozone.cc" ] + } else { + sources -= [ + "ime/keyboard_controller.cc", + "ime/ime_keyboard_x11.cc", + ] + } +} + +static_library("test_support") { + testonly = true + configs += [ + "//build/config/linux:dbus", + ] + deps = [ + "//testing/gmock", + ":chromeos", + ":cryptohome_proto", + ":power_manager_proto", + ":test_support_without_gmock", + ] + sources = [ + "attestation/mock_attestation_flow.cc", + "attestation/mock_attestation_flow.h", + "chromeos_test_utils.cc", + "chromeos_test_utils.h", + "cryptohome/mock_async_method_caller.cc", + "cryptohome/mock_async_method_caller.h", + "cryptohome/mock_homedir_methods.cc", + "cryptohome/mock_homedir_methods.h", + "dbus/mock_cryptohome_client.cc", + "dbus/mock_cryptohome_client.h", + "dbus/mock_session_manager_client.cc", + "dbus/mock_session_manager_client.h", + "dbus/mock_shill_manager_client.cc", + "dbus/mock_shill_manager_client.h", + "dbus/mock_shill_profile_client.cc", + "dbus/mock_shill_profile_client.h", + "dbus/mock_shill_service_client.cc", + "dbus/mock_shill_service_client.h", + "disks/mock_disk_mount_manager.cc", + "disks/mock_disk_mount_manager.h", + "ime/mock_component_extension_ime_manager_delegate.cc", + "ime/mock_component_extension_ime_manager_delegate.h", + "login/auth/mock_auth_attempt_state_resolver.cc", + "login/auth/mock_auth_attempt_state_resolver.h", + "login/auth/mock_auth_status_consumer.cc", + "login/auth/mock_auth_status_consumer.h", + "login/auth/mock_authenticator.cc", + "login/auth/mock_authenticator.h", + "login/auth/mock_url_fetchers.cc", + "login/auth/mock_url_fetchers.h", + "network/fake_network_device_handler.cc", + "network/fake_network_device_handler.h", + "network/mock_managed_network_configuration_handler.cc", + "network/mock_managed_network_configuration_handler.h", + "network/onc/onc_test_utils.cc", + "network/onc/onc_test_utils.h", + "system/mock_statistics_provider.cc", + "system/mock_statistics_provider.h", + ] +} + +static_library("test_support_without_gmock") { + testonly = true + configs += [ + "//build/config/linux:dbus", + ] + deps = [ + "//crypto", + ":chromeos", + ":cryptohome_proto", + ":power_manager_proto", + ] + sources = [ + "dbus/fake_cros_disks_client.cc", + "dbus/fake_cros_disks_client.h", + "dbus/fake_power_manager_client.cc", + "dbus/fake_power_manager_client.h", + "dbus/fake_session_manager_client.cc", + "dbus/fake_session_manager_client.h", + "dbus/fake_shill_manager_client.cc", + "dbus/fake_shill_manager_client.h", + "dbus/fake_update_engine_client.cc", + "dbus/fake_update_engine_client.h", + "ime/fake_input_method_delegate.cc", + "ime/fake_input_method_delegate.h", + ] +} + +test("chromeos_unittests") { + configs += [ + "//build/config/linux:dbus", + "//net/third_party/nss/ssl:ssl_config", + ] + deps = [ + "//base/test:run_all_unittests", + "//base/test:test_support", + "//components/onc", + "//content/test:test_support", + "//crypto", + "//crypto:test_support", + "//dbus:test_support", + "//google_apis", + "//net", + "//net:test_support", + "//testing/gmock", + "//testing/gtest", + "//url", + ":cryptohome_proto", + ":power_manager_proto", + ":test_support", + ] + sources = gypi_values.chromeos_test_sources + if (use_allocator != "none") { + deps += [ "//base/allocator" ] + } + if (use_x11) { + deps += [ "//ui/gfx/x" ] + } +} + proto_library("power_manager_proto") { sources = [ "//third_party/cros_system_api/dbus/power_manager/input_event.proto", @@ -12,4 +171,23 @@ proto_library("power_manager_proto") { "//third_party/cros_system_api/dbus/power_manager/power_supply_properties.proto", "//third_party/cros_system_api/dbus/power_manager/suspend.proto", ] + + proto_out_dir = "chromeos/dbus/power_manager" +} + +proto_library("cryptohome_proto") { + sources = [ + "//third_party/cros_system_api/dbus/cryptohome/key.proto", + "//third_party/cros_system_api/dbus/cryptohome/rpc.proto", + ] + + proto_out_dir = "chromeos/dbus/cryptohome" +} + +proto_library("cryptohome_signkey_proto") { + sources = [ + "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto", + ] + + proto_out_dir = "chromeos/dbus/cryptohome" } diff --git a/chromeos/chromeos.gyp b/chromeos/chromeos.gyp index a35581d..5ee9fea 100644 --- a/chromeos/chromeos.gyp +++ b/chromeos/chromeos.gyp @@ -5,12 +5,450 @@ { 'variables': { 'chromium_code': 1, + # These files lists are shared with the GN build. + 'chromeos_sources': [ + 'accelerometer/accelerometer_reader.cc', + 'accelerometer/accelerometer_reader.h', + 'app_mode/kiosk_oem_manifest_parser.cc', + 'app_mode/kiosk_oem_manifest_parser.h', + 'audio/audio_device.cc', + 'audio/audio_device.h', + 'audio/audio_devices_pref_handler.h', + 'audio/audio_pref_observer.h', + 'audio/cras_audio_handler.cc', + 'audio/cras_audio_handler.h', + 'audio/audio_devices_pref_handler_stub.cc', + 'audio/audio_devices_pref_handler_stub.h', + 'audio/chromeos_sounds.h', + 'attestation/attestation_constants.cc', + 'attestation/attestation_constants.h', + 'attestation/attestation_flow.cc', + 'attestation/attestation_flow.h', + 'cert_loader.cc', + 'cert_loader.h', + 'chromeos_constants.cc', + 'chromeos_constants.h', + 'chromeos_export.h', + 'chromeos_paths.cc', + 'chromeos_paths.h', + 'chromeos_switches.cc', + 'chromeos_switches.h', + 'cryptohome/async_method_caller.cc', + 'cryptohome/async_method_caller.h', + 'cryptohome/cryptohome_parameters.cc', + 'cryptohome/cryptohome_parameters.h', + 'cryptohome/cryptohome_util.cc', + 'cryptohome/cryptohome_util.h', + 'cryptohome/homedir_methods.cc', + 'cryptohome/homedir_methods.h', + 'cryptohome/system_salt_getter.cc', + 'cryptohome/system_salt_getter.h', + 'dbus/audio_node.cc', + 'dbus/audio_node.h', + 'dbus/blocking_method_caller.cc', + 'dbus/blocking_method_caller.h', + 'dbus/bluetooth_adapter_client.cc', + 'dbus/bluetooth_adapter_client.h', + 'dbus/bluetooth_agent_manager_client.cc', + 'dbus/bluetooth_agent_manager_client.h', + 'dbus/bluetooth_agent_service_provider.cc', + 'dbus/bluetooth_agent_service_provider.h', + 'dbus/bluetooth_device_client.cc', + 'dbus/bluetooth_device_client.h', + 'dbus/bluetooth_gatt_characteristic_client.cc', + 'dbus/bluetooth_gatt_characteristic_client.h', + 'dbus/bluetooth_gatt_characteristic_service_provider.cc', + 'dbus/bluetooth_gatt_characteristic_service_provider.h', + 'dbus/bluetooth_gatt_descriptor_client.cc', + 'dbus/bluetooth_gatt_descriptor_client.h', + 'dbus/bluetooth_gatt_descriptor_service_provider.cc', + 'dbus/bluetooth_gatt_descriptor_service_provider.h', + 'dbus/bluetooth_gatt_manager_client.cc', + 'dbus/bluetooth_gatt_manager_client.h', + 'dbus/bluetooth_gatt_service_client.cc', + 'dbus/bluetooth_gatt_service_client.h', + 'dbus/bluetooth_gatt_service_service_provider.cc', + 'dbus/bluetooth_gatt_service_service_provider.h', + 'dbus/bluetooth_input_client.cc', + 'dbus/bluetooth_input_client.h', + 'dbus/bluetooth_profile_manager_client.cc', + 'dbus/bluetooth_profile_manager_client.h', + 'dbus/bluetooth_profile_service_provider.cc', + 'dbus/bluetooth_profile_service_provider.h', + 'dbus/cras_audio_client.cc', + 'dbus/cras_audio_client.h', + 'dbus/cras_audio_client_stub_impl.cc', + 'dbus/cras_audio_client_stub_impl.h', + 'dbus/cros_disks_client.cc', + 'dbus/cros_disks_client.h', + 'dbus/cryptohome_client.cc', + 'dbus/cryptohome_client.h', + 'dbus/dbus_client_bundle.h', + 'dbus/dbus_client_bundle.cc', + 'dbus/dbus_client_implementation_type.h', + 'dbus/dbus_method_call_status.cc', + 'dbus/dbus_method_call_status.h', + 'dbus/dbus_thread_manager.cc', + 'dbus/dbus_thread_manager.h', + 'dbus/debug_daemon_client.cc', + 'dbus/debug_daemon_client.h', + 'dbus/easy_unlock_client.cc', + 'dbus/easy_unlock_client.h', + 'dbus/fake_bluetooth_adapter_client.cc', + 'dbus/fake_bluetooth_adapter_client.h', + 'dbus/fake_bluetooth_agent_manager_client.cc', + 'dbus/fake_bluetooth_agent_manager_client.h', + 'dbus/fake_bluetooth_agent_service_provider.cc', + 'dbus/fake_bluetooth_agent_service_provider.h', + 'dbus/fake_bluetooth_device_client.cc', + 'dbus/fake_bluetooth_device_client.h', + 'dbus/fake_bluetooth_gatt_characteristic_client.cc', + 'dbus/fake_bluetooth_gatt_characteristic_client.h', + 'dbus/fake_bluetooth_gatt_characteristic_service_provider.cc', + 'dbus/fake_bluetooth_gatt_characteristic_service_provider.h', + 'dbus/fake_bluetooth_gatt_descriptor_client.cc', + 'dbus/fake_bluetooth_gatt_descriptor_client.h', + 'dbus/fake_bluetooth_gatt_descriptor_service_provider.cc', + 'dbus/fake_bluetooth_gatt_descriptor_service_provider.h', + 'dbus/fake_bluetooth_gatt_manager_client.cc', + 'dbus/fake_bluetooth_gatt_manager_client.h', + 'dbus/fake_bluetooth_gatt_service_client.cc', + 'dbus/fake_bluetooth_gatt_service_client.h', + 'dbus/fake_bluetooth_gatt_service_service_provider.cc', + 'dbus/fake_bluetooth_gatt_service_service_provider.h', + 'dbus/fake_bluetooth_input_client.cc', + 'dbus/fake_bluetooth_input_client.h', + 'dbus/fake_bluetooth_profile_manager_client.cc', + 'dbus/fake_bluetooth_profile_manager_client.h', + 'dbus/fake_bluetooth_profile_service_provider.cc', + 'dbus/fake_bluetooth_profile_service_provider.h', + 'dbus/fake_cryptohome_client.cc', + 'dbus/fake_cryptohome_client.h', + 'dbus/fake_debug_daemon_client.cc', + 'dbus/fake_debug_daemon_client.h', + 'dbus/fake_easy_unlock_client.cc', + 'dbus/fake_easy_unlock_client.h', + 'dbus/fake_gsm_sms_client.cc', + 'dbus/fake_gsm_sms_client.h', + 'dbus/fake_image_burner_client.cc', + 'dbus/fake_image_burner_client.h', + 'dbus/fake_introspectable_client.cc', + 'dbus/fake_introspectable_client.h', + 'dbus/fake_lorgnette_manager_client.cc', + 'dbus/fake_lorgnette_manager_client.h', + 'dbus/fake_modem_messaging_client.cc', + 'dbus/fake_modem_messaging_client.h', + 'dbus/fake_nfc_adapter_client.cc', + 'dbus/fake_nfc_adapter_client.h', + 'dbus/fake_nfc_device_client.cc', + 'dbus/fake_nfc_device_client.h', + 'dbus/fake_nfc_manager_client.cc', + 'dbus/fake_nfc_manager_client.h', + 'dbus/fake_nfc_record_client.cc', + 'dbus/fake_nfc_record_client.h', + 'dbus/fake_nfc_tag_client.cc', + 'dbus/fake_nfc_tag_client.h', + 'dbus/fake_permission_broker_client.cc', + 'dbus/fake_permission_broker_client.h', + 'dbus/fake_shill_device_client.cc', + 'dbus/fake_shill_device_client.h', + 'dbus/fake_shill_ipconfig_client.cc', + 'dbus/fake_shill_ipconfig_client.h', + 'dbus/fake_shill_manager_client.cc', + 'dbus/fake_shill_manager_client.h', + 'dbus/fake_shill_profile_client.cc', + 'dbus/fake_shill_profile_client.h', + 'dbus/fake_shill_service_client.cc', + 'dbus/fake_shill_service_client.h', + 'dbus/fake_sms_client.cc', + 'dbus/fake_sms_client.h', + 'dbus/fake_system_clock_client.cc', + 'dbus/fake_system_clock_client.h', + 'dbus/gsm_sms_client.cc', + 'dbus/gsm_sms_client.h', + 'dbus/image_burner_client.cc', + 'dbus/image_burner_client.h', + 'dbus/introspectable_client.cc', + 'dbus/introspectable_client.h', + 'dbus/lorgnette_manager_client.cc', + 'dbus/lorgnette_manager_client.h', + 'dbus/modem_messaging_client.cc', + 'dbus/modem_messaging_client.h', + 'dbus/nfc_adapter_client.cc', + 'dbus/nfc_adapter_client.h', + 'dbus/nfc_client_helpers.cc', + 'dbus/nfc_client_helpers.h', + 'dbus/nfc_device_client.cc', + 'dbus/nfc_device_client.h', + 'dbus/nfc_manager_client.cc', + 'dbus/nfc_manager_client.h', + 'dbus/nfc_property_set.cc', + 'dbus/nfc_property_set.h', + 'dbus/nfc_record_client.cc', + 'dbus/nfc_record_client.h', + 'dbus/nfc_tag_client.cc', + 'dbus/nfc_tag_client.h', + 'dbus/permission_broker_client.cc', + 'dbus/permission_broker_client.h', + 'dbus/pipe_reader.cc', + 'dbus/pipe_reader.h', + 'dbus/power_manager_client.cc', + 'dbus/power_manager_client.h', + 'dbus/power_policy_controller.cc', + 'dbus/power_policy_controller.h', + 'dbus/session_manager_client.cc', + 'dbus/session_manager_client.h', + 'dbus/shill_client_helper.cc', + 'dbus/shill_client_helper.h', + 'dbus/shill_device_client.cc', + 'dbus/shill_device_client.h', + 'dbus/shill_ipconfig_client.cc', + 'dbus/shill_ipconfig_client.h', + 'dbus/shill_manager_client.cc', + 'dbus/shill_manager_client.h', + 'dbus/shill_profile_client.cc', + 'dbus/shill_profile_client.h', + 'dbus/shill_service_client.cc', + 'dbus/shill_service_client.h', + 'dbus/sms_client.cc', + 'dbus/sms_client.h', + 'dbus/system_clock_client.cc', + 'dbus/system_clock_client.h', + 'dbus/update_engine_client.cc', + 'dbus/update_engine_client.h', + 'dbus/volume_state.cc', + 'dbus/volume_state.h', + 'disks/disk_mount_manager.cc', + 'disks/disk_mount_manager.h', + 'ime/component_extension_ime_manager.cc', + 'ime/component_extension_ime_manager.h', + 'ime/composition_text.cc', + 'ime/composition_text.h', + 'ime/extension_ime_util.cc', + 'ime/extension_ime_util.h', + 'ime/fake_ime_keyboard.cc', + 'ime/fake_ime_keyboard.h', + 'ime/ime_keyboard.h', + 'ime/ime_keyboard_ozone.cc', + 'ime/ime_keyboard_x11.cc', + 'ime/input_method_delegate.h', + 'ime/input_method_descriptor.cc', + 'ime/input_method_descriptor.h', + 'ime/input_method_manager.cc', + 'ime/input_method_manager.h', + 'ime/input_method_whitelist.cc', + 'ime/input_method_whitelist.h', + 'login/auth/auth_attempt_state.cc', + 'login/auth/auth_attempt_state.h', + 'login/auth/auth_attempt_state_resolver.cc', + 'login/auth/auth_attempt_state_resolver.h', + 'login/auth/auth_status_consumer.cc', + 'login/auth/auth_status_consumer.h', + 'login/auth/authenticator.cc', + 'login/auth/authenticator.h', + 'login/auth/cryptohome_authenticator.cc', + 'login/auth/cryptohome_authenticator.h', + 'login/auth/extended_authenticator.cc', + 'login/auth/extended_authenticator.h', + 'login/auth/key.cc', + 'login/auth/key.h', + 'login/auth/online_attempt.cc', + 'login/auth/online_attempt.h', + 'login/auth/online_attempt_host.cc', + 'login/auth/online_attempt_host.h', + 'login/auth/test_attempt_state.cc', + 'login/auth/test_attempt_state.h', + 'login/auth/user_context.cc', + 'login/auth/user_context.h', + 'login/login_state.cc', + 'login/login_state.h', + 'login/user_names.cc', + 'login/user_names.h', + 'login_event_recorder.cc', + 'login_event_recorder.h', + 'network/certificate_pattern.cc', + 'network/certificate_pattern.h', + 'network/client_cert_resolver.cc', + 'network/client_cert_resolver.h', + 'network/client_cert_util.cc', + 'network/client_cert_util.h', + 'network/device_state.cc', + 'network/device_state.h', + 'network/dhcp_proxy_script_fetcher_chromeos.cc', + 'network/dhcp_proxy_script_fetcher_chromeos.h', + 'network/geolocation_handler.cc', + 'network/geolocation_handler.h', + 'network/host_resolver_impl_chromeos.cc', + 'network/host_resolver_impl_chromeos.h', + 'network/managed_network_configuration_handler.cc', + 'network/managed_network_configuration_handler.h', + 'network/managed_network_configuration_handler_impl.cc', + 'network/managed_network_configuration_handler_impl.h', + 'network/managed_state.cc', + 'network/managed_state.h', + 'network/network_activation_handler.cc', + 'network/network_activation_handler.h', + 'network/network_cert_migrator.cc', + 'network/network_cert_migrator.h', + 'network/network_change_notifier_chromeos.cc', + 'network/network_change_notifier_chromeos.h', + 'network/network_change_notifier_factory_chromeos.cc', + 'network/network_change_notifier_factory_chromeos.h', + 'network/network_configuration_handler.cc', + 'network/network_configuration_handler.h', + 'network/network_connection_handler.cc', + 'network/network_connection_handler.h', + 'network/network_device_handler.cc', + 'network/network_device_handler.h', + 'network/network_device_handler_impl.cc', + 'network/network_device_handler_impl.h', + 'network/network_event_log.cc', + 'network/network_event_log.h', + 'network/network_handler.cc', + 'network/network_handler.h', + 'network/network_handler_callbacks.cc', + 'network/network_handler_callbacks.h', + 'network/network_ip_config.cc', + 'network/network_ip_config.h', + 'network/network_profile.cc', + 'network/network_profile.h', + 'network/network_profile_handler.cc', + 'network/network_profile_handler.h', + 'network/network_profile_observer.h', + 'network/network_sms_handler.cc', + 'network/network_sms_handler.h', + 'network/network_state.cc', + 'network/network_state.h', + 'network/network_state_handler.cc', + 'network/network_state_handler.h', + 'network/network_state_handler_observer.cc', + 'network/network_state_handler_observer.h', + 'network/network_type_pattern.cc', + 'network/network_type_pattern.h', + 'network/network_ui_data.cc', + 'network/network_ui_data.h', + 'network/network_util.cc', + 'network/network_util.h', + 'network/onc/onc_certificate_importer.h', + 'network/onc/onc_certificate_importer_impl.cc', + 'network/onc/onc_certificate_importer_impl.h', + 'network/onc/onc_mapper.cc', + 'network/onc/onc_mapper.h', + 'network/onc/onc_merger.cc', + 'network/onc/onc_merger.h', + 'network/onc/onc_normalizer.cc', + 'network/onc/onc_normalizer.h', + 'network/onc/onc_signature.cc', + 'network/onc/onc_signature.h', + 'network/onc/onc_translation_tables.cc', + 'network/onc/onc_translation_tables.h', + 'network/onc/onc_translator.h', + 'network/onc/onc_translator_onc_to_shill.cc', + 'network/onc/onc_translator_shill_to_onc.cc', + 'network/onc/onc_utils.cc', + 'network/onc/onc_utils.h', + 'network/onc/onc_validator.cc', + 'network/onc/onc_validator.h', + 'network/policy_applicator.cc', + 'network/policy_applicator.h', + 'network/policy_util.cc', + 'network/policy_util.h', + 'network/portal_detector/network_portal_detector.cc', + 'network/portal_detector/network_portal_detector.h', + 'network/portal_detector/network_portal_detector_strategy.cc', + 'network/portal_detector/network_portal_detector_strategy.h', + 'network/shill_property_handler.cc', + 'network/shill_property_handler.h', + 'network/shill_property_util.cc', + 'network/shill_property_util.h', + 'process_proxy/process_output_watcher.cc', + 'process_proxy/process_output_watcher.h', + 'process_proxy/process_proxy.cc', + 'process_proxy/process_proxy.h', + 'process_proxy/process_proxy_registry.cc', + 'process_proxy/process_proxy_registry.h', + 'settings/cros_settings_names.cc', + 'settings/cros_settings_names.h', + 'settings/cros_settings_provider.cc', + 'settings/cros_settings_provider.h', + 'settings/timezone_settings.cc', + 'settings/timezone_settings.h', + 'system/name_value_pairs_parser.cc', + 'system/name_value_pairs_parser.h', + 'system/statistics_provider.cc', + 'system/statistics_provider.h', + 'tpm_password_fetcher.cc', + 'tpm_password_fetcher.h', + 'tpm_token_loader.cc', + 'tpm_token_loader.h' + ], + 'chromeos_test_sources': [ + 'app_mode/kiosk_oem_manifest_parser_unittest.cc', + 'attestation/attestation_flow_unittest.cc', + 'audio/cras_audio_handler_unittest.cc', + 'cert_loader_unittest.cc', + 'cryptohome/homedir_methods_unittest.cc', + 'cryptohome/system_salt_getter_unittest.cc', + 'dbus/blocking_method_caller_unittest.cc', + 'dbus/cros_disks_client_unittest.cc', + 'dbus/dbus_client_bundle_unittest.cc', + 'dbus/fake_easy_unlock_client_unittest.cc', + 'dbus/gsm_sms_client_unittest.cc', + 'dbus/introspectable_client_unittest.cc', + 'dbus/modem_messaging_client_unittest.cc', + 'dbus/nfc_client_unittest.cc', + 'dbus/power_policy_controller_unittest.cc', + 'dbus/shill_client_unittest_base.cc', + 'dbus/shill_client_unittest_base.h', + 'dbus/shill_device_client_unittest.cc', + 'dbus/shill_ipconfig_client_unittest.cc', + 'dbus/shill_manager_client_unittest.cc', + 'dbus/shill_profile_client_unittest.cc', + 'dbus/shill_service_client_unittest.cc', + 'disks/disk_mount_manager_unittest.cc', + 'ime/component_extension_ime_manager_unittest.cc', + 'ime/composition_text_unittest.cc', + 'ime/extension_ime_util_unittest.cc', + 'ime/ime_keyboard_x11_unittest.cc', + 'ime/input_method_manager.h', + 'ime/input_method_whitelist_unittest.cc', + 'login/auth/key_unittest.cc', + 'login/login_state_unittest.cc', + 'network/client_cert_resolver_unittest.cc', + 'network/geolocation_handler_unittest.cc', + 'network/host_resolver_impl_chromeos_unittest.cc', + 'network/managed_network_configuration_handler_unittest.cc', + 'network/network_cert_migrator_unittest.cc', + 'network/network_change_notifier_chromeos_unittest.cc', + 'network/network_configuration_handler_unittest.cc', + 'network/network_connection_handler_unittest.cc', + 'network/network_device_handler_unittest.cc', + 'network/network_event_log_unittest.cc', + 'network/network_profile_handler_stub.h', + 'network/network_sms_handler_unittest.cc', + 'network/network_state_handler_unittest.cc', + 'network/network_state_unittest.cc', + 'network/network_type_pattern_unittest.cc', + 'network/network_ui_data_unittest.cc', + 'network/network_util_unittest.cc', + 'network/onc/onc_certificate_importer_impl_unittest.cc', + 'network/onc/onc_merger_unittest.cc', + 'network/onc/onc_normalizer_unittest.cc', + 'network/onc/onc_translator_unittest.cc', + 'network/onc/onc_utils_unittest.cc', + 'network/onc/onc_validator_unittest.cc', + 'network/shill_property_handler_unittest.cc', + 'process_proxy/process_output_watcher_unittest.cc', + 'process_proxy/process_proxy_unittest.cc', + 'system/name_value_pairs_parser_unittest.cc', + ], }, 'includes': [ 'chromeos_tools.gypi' ], 'targets': [ { + # GN version: //chromeos 'target_name': 'chromeos', 'type': '<(component)', 'dependencies': [ @@ -37,382 +475,7 @@ 'defines': [ 'CHROMEOS_IMPLEMENTATION', ], - 'sources': [ - 'accelerometer/accelerometer_reader.cc', - 'accelerometer/accelerometer_reader.h', - 'app_mode/kiosk_oem_manifest_parser.cc', - 'app_mode/kiosk_oem_manifest_parser.h', - 'audio/audio_device.cc', - 'audio/audio_device.h', - 'audio/audio_devices_pref_handler.h', - 'audio/audio_pref_observer.h', - 'audio/cras_audio_handler.cc', - 'audio/cras_audio_handler.h', - 'audio/audio_devices_pref_handler_stub.cc', - 'audio/audio_devices_pref_handler_stub.h', - 'audio/chromeos_sounds.h', - 'attestation/attestation_constants.cc', - 'attestation/attestation_constants.h', - 'attestation/attestation_flow.cc', - 'attestation/attestation_flow.h', - 'cert_loader.cc', - 'cert_loader.h', - 'chromeos_constants.cc', - 'chromeos_constants.h', - 'chromeos_export.h', - 'chromeos_paths.cc', - 'chromeos_paths.h', - 'chromeos_switches.cc', - 'chromeos_switches.h', - 'cryptohome/async_method_caller.cc', - 'cryptohome/async_method_caller.h', - 'cryptohome/cryptohome_parameters.cc', - 'cryptohome/cryptohome_parameters.h', - 'cryptohome/cryptohome_util.cc', - 'cryptohome/cryptohome_util.h', - 'cryptohome/homedir_methods.cc', - 'cryptohome/homedir_methods.h', - 'cryptohome/system_salt_getter.cc', - 'cryptohome/system_salt_getter.h', - 'dbus/audio_node.cc', - 'dbus/audio_node.h', - 'dbus/blocking_method_caller.cc', - 'dbus/blocking_method_caller.h', - 'dbus/bluetooth_adapter_client.cc', - 'dbus/bluetooth_adapter_client.h', - 'dbus/bluetooth_agent_manager_client.cc', - 'dbus/bluetooth_agent_manager_client.h', - 'dbus/bluetooth_agent_service_provider.cc', - 'dbus/bluetooth_agent_service_provider.h', - 'dbus/bluetooth_device_client.cc', - 'dbus/bluetooth_device_client.h', - 'dbus/bluetooth_gatt_characteristic_client.cc', - 'dbus/bluetooth_gatt_characteristic_client.h', - 'dbus/bluetooth_gatt_characteristic_service_provider.cc', - 'dbus/bluetooth_gatt_characteristic_service_provider.h', - 'dbus/bluetooth_gatt_descriptor_client.cc', - 'dbus/bluetooth_gatt_descriptor_client.h', - 'dbus/bluetooth_gatt_descriptor_service_provider.cc', - 'dbus/bluetooth_gatt_descriptor_service_provider.h', - 'dbus/bluetooth_gatt_manager_client.cc', - 'dbus/bluetooth_gatt_manager_client.h', - 'dbus/bluetooth_gatt_service_client.cc', - 'dbus/bluetooth_gatt_service_client.h', - 'dbus/bluetooth_gatt_service_service_provider.cc', - 'dbus/bluetooth_gatt_service_service_provider.h', - 'dbus/bluetooth_input_client.cc', - 'dbus/bluetooth_input_client.h', - 'dbus/bluetooth_profile_manager_client.cc', - 'dbus/bluetooth_profile_manager_client.h', - 'dbus/bluetooth_profile_service_provider.cc', - 'dbus/bluetooth_profile_service_provider.h', - 'dbus/cras_audio_client.cc', - 'dbus/cras_audio_client.h', - 'dbus/cras_audio_client_stub_impl.cc', - 'dbus/cras_audio_client_stub_impl.h', - 'dbus/cros_disks_client.cc', - 'dbus/cros_disks_client.h', - 'dbus/cryptohome_client.cc', - 'dbus/cryptohome_client.h', - 'dbus/dbus_client_bundle.h', - 'dbus/dbus_client_bundle.cc', - 'dbus/dbus_client_implementation_type.h', - 'dbus/dbus_method_call_status.cc', - 'dbus/dbus_method_call_status.h', - 'dbus/dbus_thread_manager.cc', - 'dbus/dbus_thread_manager.h', - 'dbus/debug_daemon_client.cc', - 'dbus/debug_daemon_client.h', - 'dbus/easy_unlock_client.cc', - 'dbus/easy_unlock_client.h', - 'dbus/fake_bluetooth_adapter_client.cc', - 'dbus/fake_bluetooth_adapter_client.h', - 'dbus/fake_bluetooth_agent_manager_client.cc', - 'dbus/fake_bluetooth_agent_manager_client.h', - 'dbus/fake_bluetooth_agent_service_provider.cc', - 'dbus/fake_bluetooth_agent_service_provider.h', - 'dbus/fake_bluetooth_device_client.cc', - 'dbus/fake_bluetooth_device_client.h', - 'dbus/fake_bluetooth_gatt_characteristic_client.cc', - 'dbus/fake_bluetooth_gatt_characteristic_client.h', - 'dbus/fake_bluetooth_gatt_characteristic_service_provider.cc', - 'dbus/fake_bluetooth_gatt_characteristic_service_provider.h', - 'dbus/fake_bluetooth_gatt_descriptor_client.cc', - 'dbus/fake_bluetooth_gatt_descriptor_client.h', - 'dbus/fake_bluetooth_gatt_descriptor_service_provider.cc', - 'dbus/fake_bluetooth_gatt_descriptor_service_provider.h', - 'dbus/fake_bluetooth_gatt_manager_client.cc', - 'dbus/fake_bluetooth_gatt_manager_client.h', - 'dbus/fake_bluetooth_gatt_service_client.cc', - 'dbus/fake_bluetooth_gatt_service_client.h', - 'dbus/fake_bluetooth_gatt_service_service_provider.cc', - 'dbus/fake_bluetooth_gatt_service_service_provider.h', - 'dbus/fake_bluetooth_input_client.cc', - 'dbus/fake_bluetooth_input_client.h', - 'dbus/fake_bluetooth_profile_manager_client.cc', - 'dbus/fake_bluetooth_profile_manager_client.h', - 'dbus/fake_bluetooth_profile_service_provider.cc', - 'dbus/fake_bluetooth_profile_service_provider.h', - 'dbus/fake_cryptohome_client.cc', - 'dbus/fake_cryptohome_client.h', - 'dbus/fake_debug_daemon_client.cc', - 'dbus/fake_debug_daemon_client.h', - 'dbus/fake_easy_unlock_client.cc', - 'dbus/fake_easy_unlock_client.h', - 'dbus/fake_gsm_sms_client.cc', - 'dbus/fake_gsm_sms_client.h', - 'dbus/fake_image_burner_client.cc', - 'dbus/fake_image_burner_client.h', - 'dbus/fake_introspectable_client.cc', - 'dbus/fake_introspectable_client.h', - 'dbus/fake_lorgnette_manager_client.cc', - 'dbus/fake_lorgnette_manager_client.h', - 'dbus/fake_modem_messaging_client.cc', - 'dbus/fake_modem_messaging_client.h', - 'dbus/fake_nfc_adapter_client.cc', - 'dbus/fake_nfc_adapter_client.h', - 'dbus/fake_nfc_device_client.cc', - 'dbus/fake_nfc_device_client.h', - 'dbus/fake_nfc_manager_client.cc', - 'dbus/fake_nfc_manager_client.h', - 'dbus/fake_nfc_record_client.cc', - 'dbus/fake_nfc_record_client.h', - 'dbus/fake_nfc_tag_client.cc', - 'dbus/fake_nfc_tag_client.h', - 'dbus/fake_permission_broker_client.cc', - 'dbus/fake_permission_broker_client.h', - 'dbus/fake_shill_device_client.cc', - 'dbus/fake_shill_device_client.h', - 'dbus/fake_shill_ipconfig_client.cc', - 'dbus/fake_shill_ipconfig_client.h', - 'dbus/fake_shill_manager_client.cc', - 'dbus/fake_shill_manager_client.h', - 'dbus/fake_shill_profile_client.cc', - 'dbus/fake_shill_profile_client.h', - 'dbus/fake_shill_service_client.cc', - 'dbus/fake_shill_service_client.h', - 'dbus/fake_sms_client.cc', - 'dbus/fake_sms_client.h', - 'dbus/fake_system_clock_client.cc', - 'dbus/fake_system_clock_client.h', - 'dbus/gsm_sms_client.cc', - 'dbus/gsm_sms_client.h', - 'dbus/image_burner_client.cc', - 'dbus/image_burner_client.h', - 'dbus/introspectable_client.cc', - 'dbus/introspectable_client.h', - 'dbus/lorgnette_manager_client.cc', - 'dbus/lorgnette_manager_client.h', - 'dbus/modem_messaging_client.cc', - 'dbus/modem_messaging_client.h', - 'dbus/nfc_adapter_client.cc', - 'dbus/nfc_adapter_client.h', - 'dbus/nfc_client_helpers.cc', - 'dbus/nfc_client_helpers.h', - 'dbus/nfc_device_client.cc', - 'dbus/nfc_device_client.h', - 'dbus/nfc_manager_client.cc', - 'dbus/nfc_manager_client.h', - 'dbus/nfc_property_set.cc', - 'dbus/nfc_property_set.h', - 'dbus/nfc_record_client.cc', - 'dbus/nfc_record_client.h', - 'dbus/nfc_tag_client.cc', - 'dbus/nfc_tag_client.h', - 'dbus/permission_broker_client.cc', - 'dbus/permission_broker_client.h', - 'dbus/pipe_reader.cc', - 'dbus/pipe_reader.h', - 'dbus/power_manager_client.cc', - 'dbus/power_manager_client.h', - 'dbus/power_policy_controller.cc', - 'dbus/power_policy_controller.h', - 'dbus/session_manager_client.cc', - 'dbus/session_manager_client.h', - 'dbus/shill_client_helper.cc', - 'dbus/shill_client_helper.h', - 'dbus/shill_device_client.cc', - 'dbus/shill_device_client.h', - 'dbus/shill_ipconfig_client.cc', - 'dbus/shill_ipconfig_client.h', - 'dbus/shill_manager_client.cc', - 'dbus/shill_manager_client.h', - 'dbus/shill_profile_client.cc', - 'dbus/shill_profile_client.h', - 'dbus/shill_service_client.cc', - 'dbus/shill_service_client.h', - 'dbus/sms_client.cc', - 'dbus/sms_client.h', - 'dbus/system_clock_client.cc', - 'dbus/system_clock_client.h', - 'dbus/update_engine_client.cc', - 'dbus/update_engine_client.h', - 'dbus/volume_state.cc', - 'dbus/volume_state.h', - 'disks/disk_mount_manager.cc', - 'disks/disk_mount_manager.h', - 'ime/component_extension_ime_manager.cc', - 'ime/component_extension_ime_manager.h', - 'ime/composition_text.cc', - 'ime/composition_text.h', - 'ime/extension_ime_util.cc', - 'ime/extension_ime_util.h', - 'ime/fake_ime_keyboard.cc', - 'ime/fake_ime_keyboard.h', - 'ime/ime_keyboard.h', - 'ime/ime_keyboard_ozone.cc', - 'ime/ime_keyboard_x11.cc', - 'ime/input_method_delegate.h', - 'ime/input_method_descriptor.cc', - 'ime/input_method_descriptor.h', - 'ime/input_method_manager.cc', - 'ime/input_method_manager.h', - 'ime/input_method_whitelist.cc', - 'ime/input_method_whitelist.h', - 'login/auth/auth_attempt_state.cc', - 'login/auth/auth_attempt_state.h', - 'login/auth/auth_attempt_state_resolver.cc', - 'login/auth/auth_attempt_state_resolver.h', - 'login/auth/auth_status_consumer.cc', - 'login/auth/auth_status_consumer.h', - 'login/auth/authenticator.cc', - 'login/auth/authenticator.h', - 'login/auth/cryptohome_authenticator.cc', - 'login/auth/cryptohome_authenticator.h', - 'login/auth/extended_authenticator.cc', - 'login/auth/extended_authenticator.h', - 'login/auth/key.cc', - 'login/auth/key.h', - 'login/auth/online_attempt.cc', - 'login/auth/online_attempt.h', - 'login/auth/online_attempt_host.cc', - 'login/auth/online_attempt_host.h', - 'login/auth/test_attempt_state.cc', - 'login/auth/test_attempt_state.h', - 'login/auth/user_context.cc', - 'login/auth/user_context.h', - 'login/login_state.cc', - 'login/login_state.h', - 'login/user_names.cc', - 'login/user_names.h', - 'login_event_recorder.cc', - 'login_event_recorder.h', - 'network/certificate_pattern.cc', - 'network/certificate_pattern.h', - 'network/client_cert_resolver.cc', - 'network/client_cert_resolver.h', - 'network/client_cert_util.cc', - 'network/client_cert_util.h', - 'network/device_state.cc', - 'network/device_state.h', - 'network/dhcp_proxy_script_fetcher_chromeos.cc', - 'network/dhcp_proxy_script_fetcher_chromeos.h', - 'network/geolocation_handler.cc', - 'network/geolocation_handler.h', - 'network/host_resolver_impl_chromeos.cc', - 'network/host_resolver_impl_chromeos.h', - 'network/managed_network_configuration_handler.cc', - 'network/managed_network_configuration_handler.h', - 'network/managed_network_configuration_handler_impl.cc', - 'network/managed_network_configuration_handler_impl.h', - 'network/managed_state.cc', - 'network/managed_state.h', - 'network/network_activation_handler.cc', - 'network/network_activation_handler.h', - 'network/network_cert_migrator.cc', - 'network/network_cert_migrator.h', - 'network/network_change_notifier_chromeos.cc', - 'network/network_change_notifier_chromeos.h', - 'network/network_change_notifier_factory_chromeos.cc', - 'network/network_change_notifier_factory_chromeos.h', - 'network/network_configuration_handler.cc', - 'network/network_configuration_handler.h', - 'network/network_connection_handler.cc', - 'network/network_connection_handler.h', - 'network/network_device_handler.cc', - 'network/network_device_handler.h', - 'network/network_device_handler_impl.cc', - 'network/network_device_handler_impl.h', - 'network/network_event_log.cc', - 'network/network_event_log.h', - 'network/network_handler.cc', - 'network/network_handler.h', - 'network/network_handler_callbacks.cc', - 'network/network_handler_callbacks.h', - 'network/network_ip_config.cc', - 'network/network_ip_config.h', - 'network/network_profile.cc', - 'network/network_profile.h', - 'network/network_profile_handler.cc', - 'network/network_profile_handler.h', - 'network/network_profile_observer.h', - 'network/network_sms_handler.cc', - 'network/network_sms_handler.h', - 'network/network_state.cc', - 'network/network_state.h', - 'network/network_state_handler.cc', - 'network/network_state_handler.h', - 'network/network_state_handler_observer.cc', - 'network/network_state_handler_observer.h', - 'network/network_type_pattern.cc', - 'network/network_type_pattern.h', - 'network/network_ui_data.cc', - 'network/network_ui_data.h', - 'network/network_util.cc', - 'network/network_util.h', - 'network/onc/onc_certificate_importer.h', - 'network/onc/onc_certificate_importer_impl.cc', - 'network/onc/onc_certificate_importer_impl.h', - 'network/onc/onc_mapper.cc', - 'network/onc/onc_mapper.h', - 'network/onc/onc_merger.cc', - 'network/onc/onc_merger.h', - 'network/onc/onc_normalizer.cc', - 'network/onc/onc_normalizer.h', - 'network/onc/onc_signature.cc', - 'network/onc/onc_signature.h', - 'network/onc/onc_translation_tables.cc', - 'network/onc/onc_translation_tables.h', - 'network/onc/onc_translator.h', - 'network/onc/onc_translator_onc_to_shill.cc', - 'network/onc/onc_translator_shill_to_onc.cc', - 'network/onc/onc_utils.cc', - 'network/onc/onc_utils.h', - 'network/onc/onc_validator.cc', - 'network/onc/onc_validator.h', - 'network/policy_applicator.cc', - 'network/policy_applicator.h', - 'network/policy_util.cc', - 'network/policy_util.h', - 'network/portal_detector/network_portal_detector.cc', - 'network/portal_detector/network_portal_detector.h', - 'network/portal_detector/network_portal_detector_strategy.cc', - 'network/portal_detector/network_portal_detector_strategy.h', - 'network/shill_property_handler.cc', - 'network/shill_property_handler.h', - 'network/shill_property_util.cc', - 'network/shill_property_util.h', - 'process_proxy/process_output_watcher.cc', - 'process_proxy/process_output_watcher.h', - 'process_proxy/process_proxy.cc', - 'process_proxy/process_proxy.h', - 'process_proxy/process_proxy_registry.cc', - 'process_proxy/process_proxy_registry.h', - 'settings/cros_settings_names.cc', - 'settings/cros_settings_names.h', - 'settings/cros_settings_provider.cc', - 'settings/cros_settings_provider.h', - 'settings/timezone_settings.cc', - 'settings/timezone_settings.h', - 'system/name_value_pairs_parser.cc', - 'system/name_value_pairs_parser.h', - 'system/statistics_provider.cc', - 'system/statistics_provider.h', - 'tpm_password_fetcher.cc', - 'tpm_password_fetcher.h', - 'tpm_token_loader.cc', - 'tpm_token_loader.h' - ], + 'sources': [ '<@(chromeos_sources)' ], 'conditions': [ ['use_x11 == 1', { 'dependencies': [ @@ -429,6 +492,7 @@ ], }, { + # GN version: //chromeos:test_support # This target contains mocks that can be used to write unit tests. 'target_name': 'chromeos_test_support', 'type': 'static_library', @@ -440,6 +504,7 @@ 'cryptohome_proto', 'power_manager_proto', ], + # If you edit the file list of this target, please edit BUILD.gn as well. 'sources': [ 'attestation/mock_attestation_flow.cc', 'attestation/mock_attestation_flow.h', @@ -485,6 +550,7 @@ ], }, { + # GN version: //chromeos:test_support_without_gmock 'target_name': 'chromeos_test_support_without_gmock', 'type': 'static_library', 'export_dependent_settings': [ @@ -499,6 +565,7 @@ 'cryptohome_proto', 'power_manager_proto', ], + # If you edit the file list of this target, please edit BUILD.gn as well. 'sources': [ 'dbus/fake_cros_disks_client.cc', 'dbus/fake_cros_disks_client.h', @@ -518,6 +585,7 @@ ], }, { + # GN version: //chromeos:chromeos_unittests 'target_name': 'chromeos_unittests', 'type': 'executable', 'dependencies': [ @@ -540,74 +608,15 @@ 'cryptohome_proto', 'power_manager_proto', ], - 'sources': [ - 'app_mode/kiosk_oem_manifest_parser_unittest.cc', - 'attestation/attestation_flow_unittest.cc', - 'audio/cras_audio_handler_unittest.cc', - 'cert_loader_unittest.cc', - 'cryptohome/homedir_methods_unittest.cc', - 'cryptohome/system_salt_getter_unittest.cc', - 'dbus/blocking_method_caller_unittest.cc', - 'dbus/cros_disks_client_unittest.cc', - 'dbus/dbus_client_bundle_unittest.cc', - 'dbus/fake_easy_unlock_client_unittest.cc', - 'dbus/gsm_sms_client_unittest.cc', - 'dbus/introspectable_client_unittest.cc', - 'dbus/modem_messaging_client_unittest.cc', - 'dbus/nfc_client_unittest.cc', - 'dbus/power_policy_controller_unittest.cc', - 'dbus/shill_client_unittest_base.cc', - 'dbus/shill_client_unittest_base.h', - 'dbus/shill_device_client_unittest.cc', - 'dbus/shill_ipconfig_client_unittest.cc', - 'dbus/shill_manager_client_unittest.cc', - 'dbus/shill_profile_client_unittest.cc', - 'dbus/shill_service_client_unittest.cc', - 'disks/disk_mount_manager_unittest.cc', - 'ime/component_extension_ime_manager_unittest.cc', - 'ime/composition_text_unittest.cc', - 'ime/extension_ime_util_unittest.cc', - 'ime/ime_keyboard_x11_unittest.cc', - 'ime/input_method_manager.h', - 'ime/input_method_whitelist_unittest.cc', - 'login/auth/key_unittest.cc', - 'login/login_state_unittest.cc', - 'network/client_cert_resolver_unittest.cc', - 'network/geolocation_handler_unittest.cc', - 'network/host_resolver_impl_chromeos_unittest.cc', - 'network/managed_network_configuration_handler_unittest.cc', - 'network/network_cert_migrator_unittest.cc', - 'network/network_change_notifier_chromeos_unittest.cc', - 'network/network_configuration_handler_unittest.cc', - 'network/network_connection_handler_unittest.cc', - 'network/network_device_handler_unittest.cc', - 'network/network_event_log_unittest.cc', - 'network/network_profile_handler_stub.h', - 'network/network_sms_handler_unittest.cc', - 'network/network_state_handler_unittest.cc', - 'network/network_state_unittest.cc', - 'network/network_type_pattern_unittest.cc', - 'network/network_ui_data_unittest.cc', - 'network/network_util_unittest.cc', - 'network/onc/onc_certificate_importer_impl_unittest.cc', - 'network/onc/onc_merger_unittest.cc', - 'network/onc/onc_normalizer_unittest.cc', - 'network/onc/onc_translator_unittest.cc', - 'network/onc/onc_utils_unittest.cc', - 'network/onc/onc_validator_unittest.cc', - 'network/shill_property_handler_unittest.cc', - 'process_proxy/process_output_watcher_unittest.cc', - 'process_proxy/process_proxy_unittest.cc', - 'system/name_value_pairs_parser_unittest.cc', - ], + 'sources': [ '<@(chromeos_test_sources)' ], 'include_dirs': [ '..', ], 'conditions': [ [ 'use_allocator!="none"', { - 'dependencies': [ - '../base/allocator/allocator.gyp:allocator', - ], + 'dependencies': [ + '../base/allocator/allocator.gyp:allocator', + ], }, ], ['use_x11 == 1', { @@ -618,6 +627,7 @@ ], }, { + # GN version: //chromeos:power_manager_proto # Protobuf compiler/generator for power-manager related protocol buffers. 'target_name': 'power_manager_proto', 'type': 'static_library', @@ -635,6 +645,7 @@ 'includes': ['../build/protoc.gypi'], }, { + # GN version: //chromeos:cryptohome_proto # Protobuf compiler/generator for cryptohome related protocol buffers. 'target_name': 'cryptohome_proto', 'type': 'static_library', @@ -649,6 +660,7 @@ 'includes': ['../build/protoc.gypi'], }, { + # GN version: //chromeos:cryptohome_signkey_proto # Protobuf compiler/generator for cryptohome key signing protocol buffer. 'target_name': 'cryptohome_signkey_proto', 'type': 'static_library', @@ -661,6 +673,5 @@ }, 'includes': ['../build/protoc.gypi'], }, - ], } diff --git a/chromeos/ime/BUILD.gn b/chromeos/ime/BUILD.gn new file mode 100644 index 0000000..46918ad --- /dev/null +++ b/chromeos/ime/BUILD.gn @@ -0,0 +1,15 @@ +# 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. + +action("gencode") { + script = "gen_input_methods.py" + sources = [ "//chromeos/ime/input_methods.txt" ] + outputs = [ + "$target_gen_dir/input_methods.h" + ] + args = [ + rebase_path("//chromeos/ime/input_methods.txt"), + rebase_path("$target_gen_dir/input_methods.h"), + ] +} -- cgit v1.1