| { |
| 'target_defaults': { |
| 'variables': { |
| 'deps': [ |
| 'libchrome-<(libbase_ver)' |
| ], |
| }, |
| 'include_dirs': [ |
| '../libchromeos', |
| ], |
| }, |
| 'targets': [ |
| { |
| 'target_name': 'libchromeos-<(libbase_ver)', |
| 'type': 'none', |
| 'dependencies': [ |
| 'libchromeos-core-<(libbase_ver)', |
| 'libchromeos-cryptohome-<(libbase_ver)', |
| 'libchromeos-http-<(libbase_ver)', |
| 'libchromeos-minijail-<(libbase_ver)', |
| 'libchromeos-streams-<(libbase_ver)', |
| 'libpolicy-<(libbase_ver)', |
| ], |
| 'direct_dependent_settings': { |
| 'include_dirs': [ |
| '../libchromeos', |
| ], |
| }, |
| 'includes': ['../common-mk/deps.gypi'], |
| }, |
| { |
| 'target_name': 'libchromeos-core-<(libbase_ver)', |
| 'type': 'shared_library', |
| 'variables': { |
| 'exported_deps': [ |
| 'dbus-1', |
| ], |
| 'deps': ['<@(exported_deps)'], |
| }, |
| 'all_dependent_settings': { |
| 'variables': { |
| 'deps': [ |
| '<@(exported_deps)', |
| ], |
| }, |
| }, |
| 'libraries': ['-lmodp_b64'], |
| 'sources': [ |
| 'chromeos/any.cc', |
| 'chromeos/asynchronous_signal_handler.cc', |
| 'chromeos/backoff_entry.cc', |
| 'chromeos/daemons/dbus_daemon.cc', |
| 'chromeos/daemons/daemon.cc', |
| 'chromeos/data_encoding.cc', |
| 'chromeos/dbus/async_event_sequencer.cc', |
| 'chromeos/dbus/data_serialization.cc', |
| 'chromeos/dbus/dbus_method_invoker.cc', |
| 'chromeos/dbus/dbus_method_response.cc', |
| 'chromeos/dbus/dbus_object.cc', |
| 'chromeos/dbus/dbus_service_watcher.cc', |
| 'chromeos/dbus/dbus_signal.cc', |
| 'chromeos/dbus/exported_object_manager.cc', |
| 'chromeos/dbus/exported_property_set.cc', |
| 'chromeos/dbus/utils.cc', |
| 'chromeos/errors/error.cc', |
| 'chromeos/errors/error_codes.cc', |
| 'chromeos/file_utils.cc', |
| 'chromeos/flag_helper.cc', |
| 'chromeos/key_value_store.cc', |
| 'chromeos/message_loops/base_message_loop.cc', |
| 'chromeos/message_loops/message_loop.cc', |
| 'chromeos/message_loops/message_loop_utils.cc', |
| 'chromeos/mime_utils.cc', |
| 'chromeos/osrelease_reader.cc', |
| 'chromeos/process.cc', |
| 'chromeos/process_reaper.cc', |
| 'chromeos/process_information.cc', |
| 'chromeos/secure_blob.cc', |
| 'chromeos/strings/string_utils.cc', |
| 'chromeos/syslog_logging.cc', |
| 'chromeos/type_name_undecorate.cc', |
| 'chromeos/url_utils.cc', |
| 'chromeos/userdb_utils.cc', |
| ], |
| }, |
| { |
| 'target_name': 'libchromeos-http-<(libbase_ver)', |
| 'type': 'shared_library', |
| 'dependencies': [ |
| 'libchromeos-core-<(libbase_ver)', |
| 'libchromeos-streams-<(libbase_ver)', |
| ], |
| 'variables': { |
| 'exported_deps': [ |
| 'libcurl', |
| ], |
| 'deps': ['<@(exported_deps)'], |
| }, |
| 'all_dependent_settings': { |
| 'variables': { |
| 'deps': [ |
| '<@(exported_deps)', |
| ], |
| }, |
| }, |
| 'sources': [ |
| 'chromeos/http/curl_api.cc', |
| 'chromeos/http/http_connection_curl.cc', |
| 'chromeos/http/http_form_data.cc', |
| 'chromeos/http/http_request.cc', |
| 'chromeos/http/http_transport.cc', |
| 'chromeos/http/http_transport_curl.cc', |
| 'chromeos/http/http_utils.cc', |
| ], |
| }, |
| { |
| 'target_name': 'libchromeos-streams-<(libbase_ver)', |
| 'type': 'shared_library', |
| 'dependencies': [ |
| 'libchromeos-core-<(libbase_ver)', |
| ], |
| 'variables': { |
| 'exported_deps': [ |
| 'openssl', |
| ], |
| 'deps': ['<@(exported_deps)'], |
| }, |
| 'all_dependent_settings': { |
| 'variables': { |
| 'deps': [ |
| '<@(exported_deps)', |
| ], |
| }, |
| }, |
| 'sources': [ |
| 'chromeos/streams/file_stream.cc', |
| 'chromeos/streams/input_stream_set.cc', |
| 'chromeos/streams/memory_containers.cc', |
| 'chromeos/streams/memory_stream.cc', |
| 'chromeos/streams/openssl_stream_bio.cc', |
| 'chromeos/streams/stream.cc', |
| 'chromeos/streams/stream_errors.cc', |
| 'chromeos/streams/stream_utils.cc', |
| 'chromeos/streams/tls_stream.cc', |
| ], |
| }, |
| { |
| 'target_name': 'libchromeos-test-<(libbase_ver)', |
| 'type': 'static_library', |
| 'standalone_static_library': 1, |
| 'dependencies': [ |
| 'libchromeos-http-<(libbase_ver)', |
| ], |
| 'sources': [ |
| 'chromeos/http/http_connection_fake.cc', |
| 'chromeos/http/http_transport_fake.cc', |
| 'chromeos/message_loops/fake_message_loop.cc', |
| 'chromeos/streams/fake_stream.cc', |
| ], |
| 'includes': ['../common-mk/deps.gypi'], |
| }, |
| { |
| 'target_name': 'libchromeos-cryptohome-<(libbase_ver)', |
| 'type': 'shared_library', |
| 'variables': { |
| 'exported_deps': [ |
| 'openssl', |
| ], |
| 'deps': ['<@(exported_deps)'], |
| }, |
| 'all_dependent_settings': { |
| 'variables': { |
| 'deps': [ |
| '<@(exported_deps)', |
| ], |
| }, |
| }, |
| 'sources': [ |
| 'chromeos/cryptohome.cc', |
| ], |
| }, |
| { |
| 'target_name': 'libchromeos-minijail-<(libbase_ver)', |
| 'type': 'shared_library', |
| 'variables': { |
| 'exported_deps': [ |
| 'libminijail', |
| ], |
| 'deps': ['<@(exported_deps)'], |
| }, |
| 'all_dependent_settings': { |
| 'variables': { |
| 'deps': [ |
| '<@(exported_deps)', |
| ], |
| }, |
| }, |
| 'cflags': [ |
| '-fvisibility=default', |
| ], |
| 'sources': [ |
| 'chromeos/minijail/minijail.cc', |
| ], |
| }, |
| { |
| 'target_name': 'libpolicy-<(libbase_ver)', |
| 'type': 'shared_library', |
| 'dependencies': [ |
| 'libpolicy-includes', |
| '../common-mk/external_dependencies.gyp:policy-protos', |
| ], |
| 'variables': { |
| 'exported_deps': [ |
| 'openssl', |
| 'protobuf-lite', |
| ], |
| 'deps': ['<@(exported_deps)'], |
| }, |
| 'all_dependent_settings': { |
| 'variables': { |
| 'deps': [ |
| '<@(exported_deps)', |
| ], |
| }, |
| }, |
| 'ldflags': [ |
| '-Wl,--version-script,<(platform2_root)/libchromeos/libpolicy.ver', |
| ], |
| 'sources': [ |
| 'policy/device_policy.cc', |
| 'policy/device_policy_impl.cc', |
| 'policy/libpolicy.cc', |
| ], |
| }, |
| { |
| 'target_name': 'libchromeos-glib-<(libbase_ver)', |
| 'type': 'shared_library', |
| 'dependencies': [ |
| 'libchromeos-<(libbase_ver)', |
| ], |
| 'variables': { |
| 'exported_deps': [ |
| 'dbus-1', |
| 'dbus-glib-1', |
| 'glib-2.0', |
| 'gobject-2.0', |
| ], |
| 'deps': ['<@(exported_deps)'], |
| }, |
| 'cflags': [ |
| # glib uses the deprecated "register" attribute in some header files. |
| '-Wno-deprecated-register', |
| ], |
| 'all_dependent_settings': { |
| 'variables': { |
| 'deps': [ |
| '<@(exported_deps)', |
| ], |
| }, |
| }, |
| 'sources': [ |
| 'chromeos/glib/abstract_dbus_service.cc', |
| 'chromeos/glib/dbus.cc', |
| 'chromeos/message_loops/glib_message_loop.cc', |
| ], |
| 'includes': ['../common-mk/deps.gypi'], |
| }, |
| ], |
| 'conditions': [ |
| ['USE_test == 1', { |
| 'targets': [ |
| { |
| 'target_name': 'libchromeos-<(libbase_ver)_unittests', |
| 'type': 'executable', |
| 'dependencies': [ |
| 'libchromeos-<(libbase_ver)', |
| 'libchromeos-test-<(libbase_ver)', |
| 'libchromeos-glib-<(libbase_ver)', |
| ], |
| 'variables': { |
| 'deps': [ |
| 'libchrome-test-<(libbase_ver)', |
| ], |
| 'proto_in_dir': 'chromeos/dbus', |
| 'proto_out_dir': 'include/unittests', |
| }, |
| 'includes': [ |
| '../common-mk/common_test.gypi', |
| '../common-mk/protoc.gypi', |
| ], |
| 'cflags': [ |
| '-Wno-format-zero-length', |
| ], |
| 'conditions': [ |
| ['debug == 1', { |
| 'cflags': [ |
| '-fprofile-arcs', |
| '-ftest-coverage', |
| '-fno-inline', |
| ], |
| 'libraries': [ |
| '-lgcov', |
| ], |
| }], |
| ], |
| 'sources': [ |
| 'chromeos/any_unittest.cc', |
| 'chromeos/any_internal_impl_unittest.cc', |
| 'chromeos/asynchronous_signal_handler_unittest.cc', |
| 'chromeos/backoff_entry_unittest.cc', |
| 'chromeos/data_encoding_unittest.cc', |
| 'chromeos/dbus/async_event_sequencer_unittest.cc', |
| 'chromeos/dbus/data_serialization_unittest.cc', |
| 'chromeos/dbus/dbus_method_invoker_unittest.cc', |
| 'chromeos/dbus/dbus_object_unittest.cc', |
| 'chromeos/dbus/dbus_param_reader_unittest.cc', |
| 'chromeos/dbus/dbus_param_writer_unittest.cc', |
| 'chromeos/dbus/dbus_signal_handler_unittest.cc', |
| 'chromeos/dbus/exported_object_manager_unittest.cc', |
| 'chromeos/dbus/exported_property_set_unittest.cc', |
| 'chromeos/errors/error_codes_unittest.cc', |
| 'chromeos/errors/error_unittest.cc', |
| 'chromeos/file_utils_unittest.cc', |
| 'chromeos/flag_helper_unittest.cc', |
| 'chromeos/glib/object_unittest.cc', |
| 'chromeos/http/http_connection_curl_unittest.cc', |
| 'chromeos/http/http_form_data_unittest.cc', |
| 'chromeos/http/http_request_unittest.cc', |
| 'chromeos/http/http_transport_curl_unittest.cc', |
| 'chromeos/http/http_utils_unittest.cc', |
| 'chromeos/key_value_store_unittest.cc', |
| 'chromeos/map_utils_unittest.cc', |
| 'chromeos/message_loops/fake_message_loop_unittest.cc', |
| 'chromeos/message_loops/glib_message_loop_unittest.cc', |
| 'chromeos/message_loops/message_loop_unittest.cc', |
| 'chromeos/mime_utils_unittest.cc', |
| 'chromeos/osrelease_reader_unittest.cc', |
| 'chromeos/process_reaper_unittest.cc', |
| 'chromeos/process_unittest.cc', |
| 'chromeos/secure_blob_unittest.cc', |
| 'chromeos/streams/fake_stream_unittest.cc', |
| 'chromeos/streams/file_stream_unittest.cc', |
| 'chromeos/streams/input_stream_set_unittest.cc', |
| 'chromeos/streams/memory_containers_unittest.cc', |
| 'chromeos/streams/memory_stream_unittest.cc', |
| 'chromeos/streams/openssl_stream_bio_unittests.cc', |
| 'chromeos/streams/stream_unittest.cc', |
| 'chromeos/streams/stream_utils_unittest.cc', |
| 'chromeos/strings/string_utils_unittest.cc', |
| 'chromeos/url_utils_unittest.cc', |
| 'chromeos/variant_dictionary_unittest.cc', |
| 'testrunner.cc', |
| '<(proto_in_dir)/test.proto', |
| ] |
| }, |
| { |
| 'target_name': 'libpolicy-<(libbase_ver)_unittests', |
| 'type': 'executable', |
| 'dependencies': ['libpolicy-<(libbase_ver)'], |
| 'includes': ['../common-mk/common_test.gypi'], |
| 'sources': [ |
| 'policy/tests/libpolicy_unittest.cc', |
| ] |
| }, |
| ], |
| }], |
| ], |
| } |