| { |
| 'targets': [ |
| { |
| 'target_name': 'media_perception_mojo_bindings', |
| 'type': 'static_library', |
| 'sources': [ |
| 'mojom/connector.mojom', |
| 'mojom/constants.mojom', |
| 'mojom/device.mojom', |
| 'mojom/device_factory.mojom', |
| 'mojom/geometry.mojom', |
| 'mojom/image_capture.mojom', |
| 'mojom/mailbox.mojom', |
| 'mojom/mailbox_holder.mojom', |
| 'mojom/producer.mojom', |
| 'mojom/receiver.mojom', |
| 'mojom/scoped_access_permission.mojom', |
| 'mojom/shared_memory.mojom', |
| 'mojom/sync_token.mojom', |
| 'mojom/time.mojom', |
| 'mojom/values.mojom', |
| 'mojom/video_capture_types.mojom', |
| 'mojom/virtual_device.mojom', |
| ], |
| 'includes': ['../common-mk/mojom_bindings_generator.gypi'], |
| }, |
| { |
| 'target_name': 'media_perception_service_lib', |
| 'type': 'static_library', |
| 'variables': { |
| 'exported_deps': [ |
| 'libchrome-<(libbase_ver)', |
| 'libmojo-<(libbase_ver)', |
| ], |
| 'deps': ['<@(exported_deps)'], |
| }, |
| 'dependencies': [ |
| 'media_perception_mojo_bindings', |
| ], |
| 'all_dependent_settings': { |
| 'variables': { |
| 'deps': [ |
| '<@(exported_deps)', |
| ], |
| }, |
| }, |
| 'sources': [ |
| 'cras_client_impl.cc', |
| 'mojo_connector.cc', |
| 'producer_impl.cc', |
| 'receiver_impl.cc', |
| 'shared_memory_provider.cc', |
| 'video_capture_service_client_impl.cc', |
| ], |
| 'direct_dependent_settings': { |
| 'cflags': [ |
| '<!@(<(pkg-config) --cflags libcras)', |
| '<!@(<(pkg-config) --cflags dbus-1)', |
| ], |
| }, |
| 'link_settings': { |
| 'ldflags': [ |
| '<!@(<(pkg-config) --libs-only-L --libs-only-other libcras)', |
| '<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-1)', |
| ], |
| 'libraries': [ |
| '<!@(<(pkg-config) --libs-only-l libcras)', |
| '<!@(<(pkg-config) --libs-only-l dbus-1)', |
| ], |
| }, |
| }, |
| { |
| 'target_name': 'rtanalytics_main', |
| 'type': 'executable', |
| 'dependencies': [ |
| 'media_perception_service_lib', |
| ], |
| 'sources': ['main.cc'], |
| 'link_settings': { |
| 'ldflags': [ |
| '-L /build/guado/tmp/portage/chromeos-base/mri_package-9999/work/', |
| ], |
| 'libraries': [ |
| '-lrtanalytics -ldl', |
| ], |
| }, |
| }, |
| ], |
| } |