update_engine.gyp 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  1. #
  2. # Copyright (C) 2015 The Android Open Source Project
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. # TODO: Rename these files to pass this check.
  17. # gyplint: disable=GypLintSourceFileNames
  18. {
  19. 'variables': {
  20. 'USE_chrome_network_proxy': '1',
  21. 'USE_chrome_kiosk_app': '1',
  22. },
  23. 'target_defaults': {
  24. 'variables': {
  25. 'deps': [
  26. 'libbrillo-<(libbase_ver)',
  27. 'libchrome-<(libbase_ver)',
  28. # system_api depends on protobuf (or protobuf-lite). It must appear
  29. # before protobuf here or the linker flags won't be in the right
  30. # order.
  31. 'system_api',
  32. 'protobuf-lite',
  33. ],
  34. # The -DUSE_* flags are passed from platform2.py. We use sane defaults
  35. # here when these USE flags are not defined. You can set the default value
  36. # for the USE flag in the ebuild.
  37. 'USE_hwid_override%': '0',
  38. },
  39. 'cflags': [
  40. '-g',
  41. '-ffunction-sections',
  42. '-Wall',
  43. '-Wextra',
  44. '-Werror',
  45. '-Wno-unused-parameter',
  46. ],
  47. 'cflags_cc': [
  48. '-fno-strict-aliasing',
  49. '-Wnon-virtual-dtor',
  50. ],
  51. 'ldflags': [
  52. '-Wl,--gc-sections',
  53. ],
  54. 'defines': [
  55. '__CHROMEOS__',
  56. '_FILE_OFFSET_BITS=64',
  57. '_POSIX_C_SOURCE=199309L',
  58. 'USE_BINDER=<(USE_binder)',
  59. 'USE_DBUS=<(USE_dbus)',
  60. 'USE_FEC=0',
  61. 'USE_HWID_OVERRIDE=<(USE_hwid_override)',
  62. 'USE_CHROME_KIOSK_APP=<(USE_chrome_kiosk_app)',
  63. 'USE_CHROME_NETWORK_PROXY=<(USE_chrome_network_proxy)',
  64. 'USE_MTD=<(USE_mtd)',
  65. 'USE_OMAHA=1',
  66. 'USE_SHILL=1',
  67. ],
  68. 'include_dirs': [
  69. # We need this include dir because we include all the local code as
  70. # "update_engine/...".
  71. '<(platform2_root)/../aosp/system',
  72. '<(platform2_root)/../aosp/system/update_engine/client_library/include',
  73. ],
  74. },
  75. 'targets': [
  76. # Protobufs.
  77. {
  78. 'target_name': 'update_metadata-protos',
  79. 'type': 'static_library',
  80. 'variables': {
  81. 'proto_in_dir': '.',
  82. 'proto_out_dir': 'include/update_engine',
  83. },
  84. 'sources': [
  85. 'update_metadata.proto',
  86. ],
  87. 'includes': ['../../../platform2/common-mk/protoc.gypi'],
  88. },
  89. # Chrome D-Bus bindings.
  90. {
  91. 'target_name': 'update_engine-dbus-adaptor',
  92. 'type': 'none',
  93. 'variables': {
  94. 'dbus_adaptors_out_dir': 'include/dbus_bindings',
  95. 'dbus_xml_extension': 'dbus-xml',
  96. },
  97. 'sources': [
  98. 'dbus_bindings/org.chromium.UpdateEngineInterface.dbus-xml',
  99. ],
  100. 'includes': ['../../../platform2/common-mk/generate-dbus-adaptors.gypi'],
  101. },
  102. {
  103. 'target_name': 'update_engine-dbus-kiosk-app-client',
  104. 'type': 'none',
  105. 'actions': [{
  106. 'action_name': 'update_engine-dbus-kiosk-app-client-action',
  107. 'variables': {
  108. 'mock_output_file': 'include/kiosk-app/dbus-proxy-mocks.h',
  109. 'proxy_output_file': 'include/kiosk-app/dbus-proxies.h',
  110. },
  111. 'sources': [
  112. 'dbus_bindings/org.chromium.KioskAppService.dbus-xml',
  113. ],
  114. 'includes': ['../../../platform2/common-mk/generate-dbus-proxies.gypi'],
  115. }],
  116. },
  117. # The payload application component and common dependencies.
  118. {
  119. 'target_name': 'libpayload_consumer',
  120. 'type': 'static_library',
  121. 'dependencies': [
  122. 'update_metadata-protos',
  123. ],
  124. # TODO(deymo): Remove unused dependencies once we stop including files
  125. # from the root directory.
  126. 'variables': {
  127. 'exported_deps': [
  128. 'libcrypto',
  129. 'xz-embedded',
  130. 'libbspatch',
  131. 'libpuffpatch',
  132. ],
  133. 'deps': ['<@(exported_deps)'],
  134. },
  135. 'all_dependent_settings': {
  136. 'variables': {
  137. 'deps': [
  138. '<@(exported_deps)',
  139. ],
  140. },
  141. },
  142. 'link_settings': {
  143. 'variables': {
  144. 'deps': [
  145. '<@(exported_deps)',
  146. ],
  147. },
  148. 'libraries': [
  149. '-lbz2',
  150. '-lrt',
  151. ],
  152. },
  153. 'sources': [
  154. 'common/action_processor.cc',
  155. 'common/boot_control_stub.cc',
  156. 'common/clock.cc',
  157. 'common/constants.cc',
  158. 'common/cpu_limiter.cc',
  159. 'common/error_code_utils.cc',
  160. 'common/hash_calculator.cc',
  161. 'common/http_common.cc',
  162. 'common/http_fetcher.cc',
  163. 'common/hwid_override.cc',
  164. 'common/multi_range_http_fetcher.cc',
  165. 'common/platform_constants_chromeos.cc',
  166. 'common/prefs.cc',
  167. 'common/proxy_resolver.cc',
  168. 'common/subprocess.cc',
  169. 'common/terminator.cc',
  170. 'common/utils.cc',
  171. 'payload_consumer/bzip_extent_writer.cc',
  172. 'payload_consumer/cached_file_descriptor.cc',
  173. 'payload_consumer/delta_performer.cc',
  174. 'payload_consumer/download_action.cc',
  175. 'payload_consumer/extent_reader.cc',
  176. 'payload_consumer/extent_writer.cc',
  177. 'payload_consumer/file_descriptor.cc',
  178. 'payload_consumer/file_descriptor_utils.cc',
  179. 'payload_consumer/file_writer.cc',
  180. 'payload_consumer/filesystem_verifier_action.cc',
  181. 'payload_consumer/install_plan.cc',
  182. 'payload_consumer/mount_history.cc',
  183. 'payload_consumer/payload_constants.cc',
  184. 'payload_consumer/payload_metadata.cc',
  185. 'payload_consumer/payload_verifier.cc',
  186. 'payload_consumer/postinstall_runner_action.cc',
  187. 'payload_consumer/verity_writer_stub.cc',
  188. 'payload_consumer/xz_extent_writer.cc',
  189. ],
  190. 'conditions': [
  191. ['USE_mtd == 1', {
  192. 'sources': [
  193. 'payload_consumer/mtd_file_descriptor.cc',
  194. ],
  195. 'link_settings': {
  196. 'libraries': [
  197. '-lmtdutils',
  198. ],
  199. },
  200. }],
  201. ],
  202. },
  203. # The main daemon static_library with all the code used to check for updates
  204. # with Omaha and expose a DBus daemon.
  205. {
  206. 'target_name': 'libupdate_engine',
  207. 'type': 'static_library',
  208. 'dependencies': [
  209. 'libpayload_consumer',
  210. 'update_metadata-protos',
  211. 'update_engine-dbus-adaptor',
  212. ],
  213. 'variables': {
  214. 'exported_deps': [
  215. 'dbus-1',
  216. 'expat',
  217. 'libcurl',
  218. 'libdebugd-client',
  219. 'libmetrics-<(libbase_ver)',
  220. 'libpower_manager-client',
  221. 'libsession_manager-client',
  222. 'libshill-client',
  223. 'libssl',
  224. 'libupdate_engine-client',
  225. 'vboot_host',
  226. ],
  227. 'conditions':[
  228. ['USE_dlc == 1', {
  229. 'exported_deps' : [
  230. 'libdlcservice-client',
  231. ],
  232. }],
  233. ],
  234. 'deps': ['<@(exported_deps)'],
  235. },
  236. 'all_dependent_settings': {
  237. 'variables': {
  238. 'deps': [
  239. '<@(exported_deps)',
  240. ],
  241. },
  242. },
  243. 'link_settings': {
  244. 'variables': {
  245. 'deps': [
  246. '<@(exported_deps)',
  247. ],
  248. },
  249. 'libraries': [
  250. '-lbz2',
  251. '-lpolicy-<(libbase_ver)',
  252. '-lrootdev',
  253. '-lrt',
  254. ],
  255. },
  256. 'sources': [
  257. 'boot_control_chromeos.cc',
  258. 'certificate_checker.cc',
  259. 'common_service.cc',
  260. 'connection_manager.cc',
  261. 'connection_utils.cc',
  262. 'daemon.cc',
  263. 'dbus_connection.cc',
  264. 'dbus_service.cc',
  265. 'hardware_chromeos.cc',
  266. 'image_properties_chromeos.cc',
  267. 'libcurl_http_fetcher.cc',
  268. 'metrics_reporter_omaha.cc',
  269. 'metrics_utils.cc',
  270. 'omaha_request_action.cc',
  271. 'omaha_request_params.cc',
  272. 'omaha_response_handler_action.cc',
  273. 'omaha_utils.cc',
  274. 'p2p_manager.cc',
  275. 'payload_state.cc',
  276. 'power_manager_chromeos.cc',
  277. 'real_system_state.cc',
  278. 'shill_proxy.cc',
  279. 'update_attempter.cc',
  280. 'update_boot_flags_action.cc',
  281. 'update_manager/boxed_value.cc',
  282. 'update_manager/chromeos_policy.cc',
  283. 'update_manager/default_policy.cc',
  284. 'update_manager/enough_slots_ab_updates_policy_impl.cc',
  285. 'update_manager/enterprise_device_policy_impl.cc',
  286. 'update_manager/evaluation_context.cc',
  287. 'update_manager/interactive_update_policy_impl.cc',
  288. 'update_manager/next_update_check_policy_impl.cc',
  289. 'update_manager/official_build_check_policy_impl.cc',
  290. 'update_manager/out_of_box_experience_policy_impl.cc',
  291. 'update_manager/policy.cc',
  292. 'update_manager/policy_test_utils.cc',
  293. 'update_manager/real_config_provider.cc',
  294. 'update_manager/real_device_policy_provider.cc',
  295. 'update_manager/real_random_provider.cc',
  296. 'update_manager/real_shill_provider.cc',
  297. 'update_manager/real_system_provider.cc',
  298. 'update_manager/real_time_provider.cc',
  299. 'update_manager/real_updater_provider.cc',
  300. 'update_manager/staging_utils.cc',
  301. 'update_manager/state_factory.cc',
  302. 'update_manager/update_manager.cc',
  303. 'update_manager/update_time_restrictions_policy_impl.cc',
  304. 'update_manager/weekly_time.cc',
  305. 'update_status_utils.cc',
  306. ],
  307. 'conditions': [
  308. ['USE_chrome_network_proxy == 1', {
  309. 'sources': [
  310. 'chrome_browser_proxy_resolver.cc',
  311. ],
  312. }],
  313. ['USE_chrome_kiosk_app == 1', {
  314. 'dependencies': [
  315. 'update_engine-dbus-kiosk-app-client',
  316. ],
  317. }],
  318. ['USE_dlc == 1', {
  319. 'sources': [
  320. 'dlcservice_chromeos.cc',
  321. ],
  322. }],
  323. ['USE_dlc == 0', {
  324. 'sources': [
  325. 'common/dlcservice_stub.cc',
  326. ],
  327. }],
  328. ],
  329. },
  330. # update_engine daemon.
  331. {
  332. 'target_name': 'update_engine',
  333. 'type': 'executable',
  334. 'dependencies': [
  335. 'libupdate_engine',
  336. ],
  337. 'sources': [
  338. 'main.cc',
  339. ],
  340. },
  341. # update_engine client library.
  342. {
  343. 'target_name': 'libupdate_engine_client',
  344. 'type': 'static_library',
  345. 'variables': {
  346. 'deps': [
  347. 'dbus-1',
  348. 'libupdate_engine-client',
  349. ],
  350. },
  351. 'sources': [
  352. 'client_library/client.cc',
  353. 'client_library/client_dbus.cc',
  354. 'update_status_utils.cc',
  355. ],
  356. 'include_dirs': [
  357. 'client_library/include',
  358. ],
  359. },
  360. # update_engine console client.
  361. {
  362. 'target_name': 'update_engine_client',
  363. 'type': 'executable',
  364. 'dependencies': [
  365. 'libupdate_engine_client',
  366. ],
  367. 'sources': [
  368. 'common/error_code_utils.cc',
  369. 'omaha_utils.cc',
  370. 'update_engine_client.cc',
  371. ],
  372. },
  373. # server-side code. This is used for delta_generator and unittests but not
  374. # for any client code.
  375. {
  376. 'target_name': 'libpayload_generator',
  377. 'type': 'static_library',
  378. 'dependencies': [
  379. 'libpayload_consumer',
  380. 'update_metadata-protos',
  381. ],
  382. 'variables': {
  383. 'exported_deps': [
  384. 'ext2fs',
  385. 'libbsdiff',
  386. 'libpuffdiff',
  387. 'liblzma',
  388. ],
  389. 'deps': ['<@(exported_deps)'],
  390. },
  391. 'all_dependent_settings': {
  392. 'variables': {
  393. 'deps': [
  394. '<@(exported_deps)',
  395. ],
  396. },
  397. },
  398. 'link_settings': {
  399. 'variables': {
  400. 'deps': [
  401. '<@(exported_deps)',
  402. ],
  403. },
  404. },
  405. 'sources': [
  406. 'common/file_fetcher.cc',
  407. 'payload_generator/ab_generator.cc',
  408. 'payload_generator/annotated_operation.cc',
  409. 'payload_generator/blob_file_writer.cc',
  410. 'payload_generator/block_mapping.cc',
  411. 'payload_generator/boot_img_filesystem.cc',
  412. 'payload_generator/bzip.cc',
  413. 'payload_generator/cycle_breaker.cc',
  414. 'payload_generator/deflate_utils.cc',
  415. 'payload_generator/delta_diff_generator.cc',
  416. 'payload_generator/delta_diff_utils.cc',
  417. 'payload_generator/ext2_filesystem.cc',
  418. 'payload_generator/extent_ranges.cc',
  419. 'payload_generator/extent_utils.cc',
  420. 'payload_generator/full_update_generator.cc',
  421. 'payload_generator/graph_types.cc',
  422. 'payload_generator/graph_utils.cc',
  423. 'payload_generator/inplace_generator.cc',
  424. 'payload_generator/mapfile_filesystem.cc',
  425. 'payload_generator/payload_file.cc',
  426. 'payload_generator/payload_generation_config_chromeos.cc',
  427. 'payload_generator/payload_generation_config.cc',
  428. 'payload_generator/payload_signer.cc',
  429. 'payload_generator/raw_filesystem.cc',
  430. 'payload_generator/squashfs_filesystem.cc',
  431. 'payload_generator/tarjan.cc',
  432. 'payload_generator/topological_sort.cc',
  433. 'payload_generator/xz_chromeos.cc',
  434. ],
  435. },
  436. # server-side delta generator.
  437. {
  438. 'target_name': 'delta_generator',
  439. 'type': 'executable',
  440. 'dependencies': [
  441. 'libpayload_consumer',
  442. 'libpayload_generator',
  443. ],
  444. 'link_settings': {
  445. 'ldflags!': [
  446. '-pie',
  447. ],
  448. },
  449. 'sources': [
  450. 'payload_generator/generate_delta_main.cc',
  451. ],
  452. },
  453. {
  454. 'target_name': 'update_engine_test_libs',
  455. 'type': 'static_library',
  456. 'variables': {
  457. 'deps': [
  458. 'libshill-client-test',
  459. ],
  460. },
  461. 'dependencies': [
  462. 'libupdate_engine',
  463. ],
  464. 'includes': [
  465. '../../../platform2/common-mk/common_test.gypi',
  466. ],
  467. 'sources': [
  468. 'common/fake_prefs.cc',
  469. 'common/mock_http_fetcher.cc',
  470. 'common/test_utils.cc',
  471. 'fake_shill_proxy.cc',
  472. 'fake_system_state.cc',
  473. 'payload_consumer/fake_file_descriptor.cc',
  474. 'payload_generator/fake_filesystem.cc',
  475. 'update_manager/umtest_utils.cc',
  476. ],
  477. },
  478. ],
  479. 'conditions': [
  480. ['USE_test == 1', {
  481. 'targets': [
  482. # Public keys used for unit testing.
  483. {
  484. 'target_name': 'update_engine-testkeys',
  485. 'type': 'none',
  486. 'variables': {
  487. 'openssl_pem_in_dir': '.',
  488. 'openssl_pem_out_dir': 'include/update_engine',
  489. },
  490. 'sources': [
  491. 'unittest_key.pem',
  492. 'unittest_key2.pem',
  493. 'unittest_key_RSA4096.pem',
  494. ],
  495. 'includes': ['../../../platform2/common-mk/openssl_pem.gypi'],
  496. },
  497. # Unpacks sample images used for testing.
  498. {
  499. 'target_name': 'update_engine-test_images',
  500. 'type': 'none',
  501. 'variables': {
  502. 'image_out_dir': '.',
  503. },
  504. 'sources': [
  505. 'sample_images/sample_images.tar.bz2',
  506. ],
  507. 'includes': ['tar_bunzip2.gypi'],
  508. },
  509. # Test HTTP Server.
  510. {
  511. 'target_name': 'test_http_server',
  512. 'type': 'executable',
  513. 'sources': [
  514. 'common/http_common.cc',
  515. 'test_http_server.cc',
  516. ],
  517. },
  518. # Test subprocess helper.
  519. {
  520. 'target_name': 'test_subprocess',
  521. 'type': 'executable',
  522. 'sources': [
  523. 'test_subprocess.cc',
  524. ],
  525. },
  526. # Main unittest file.
  527. {
  528. 'target_name': 'update_engine_unittests',
  529. 'type': 'executable',
  530. 'variables': {
  531. 'deps': [
  532. 'libbrillo-test-<(libbase_ver)',
  533. 'libchrome-test-<(libbase_ver)',
  534. 'libdebugd-client-test',
  535. 'libpower_manager-client-test',
  536. 'libsession_manager-client-test',
  537. 'libshill-client-test',
  538. ],
  539. },
  540. 'dependencies': [
  541. 'libupdate_engine',
  542. 'libpayload_generator',
  543. 'update_engine_test_libs',
  544. ],
  545. 'sources': [
  546. 'boot_control_chromeos_unittest.cc',
  547. 'certificate_checker_unittest.cc',
  548. 'common/action_pipe_unittest.cc',
  549. 'common/action_processor_unittest.cc',
  550. 'common/action_unittest.cc',
  551. 'common/cpu_limiter_unittest.cc',
  552. 'common/hash_calculator_unittest.cc',
  553. 'common/http_fetcher_unittest.cc',
  554. 'common/hwid_override_unittest.cc',
  555. 'common/prefs_unittest.cc',
  556. 'common/proxy_resolver_unittest.cc',
  557. 'common/subprocess_unittest.cc',
  558. 'common/terminator_unittest.cc',
  559. 'common/utils_unittest.cc',
  560. 'common_service_unittest.cc',
  561. 'connection_manager_unittest.cc',
  562. 'hardware_chromeos_unittest.cc',
  563. 'image_properties_chromeos_unittest.cc',
  564. 'metrics_reporter_omaha_unittest.cc',
  565. 'metrics_utils_unittest.cc',
  566. 'omaha_request_action_unittest.cc',
  567. 'omaha_request_params_unittest.cc',
  568. 'omaha_response_handler_action_unittest.cc',
  569. 'omaha_utils_unittest.cc',
  570. 'p2p_manager_unittest.cc',
  571. 'payload_consumer/bzip_extent_writer_unittest.cc',
  572. 'payload_consumer/cached_file_descriptor_unittest.cc',
  573. 'payload_consumer/delta_performer_integration_test.cc',
  574. 'payload_consumer/delta_performer_unittest.cc',
  575. 'payload_consumer/download_action_unittest.cc',
  576. 'payload_consumer/extent_reader_unittest.cc',
  577. 'payload_consumer/extent_writer_unittest.cc',
  578. 'payload_consumer/file_descriptor_utils_unittest.cc',
  579. 'payload_consumer/file_writer_unittest.cc',
  580. 'payload_consumer/filesystem_verifier_action_unittest.cc',
  581. 'payload_consumer/postinstall_runner_action_unittest.cc',
  582. 'payload_consumer/xz_extent_writer_unittest.cc',
  583. 'payload_generator/ab_generator_unittest.cc',
  584. 'payload_generator/blob_file_writer_unittest.cc',
  585. 'payload_generator/block_mapping_unittest.cc',
  586. 'payload_generator/boot_img_filesystem_unittest.cc',
  587. 'payload_generator/cycle_breaker_unittest.cc',
  588. 'payload_generator/deflate_utils_unittest.cc',
  589. 'payload_generator/delta_diff_utils_unittest.cc',
  590. 'payload_generator/ext2_filesystem_unittest.cc',
  591. 'payload_generator/extent_ranges_unittest.cc',
  592. 'payload_generator/extent_utils_unittest.cc',
  593. 'payload_generator/full_update_generator_unittest.cc',
  594. 'payload_generator/graph_utils_unittest.cc',
  595. 'payload_generator/inplace_generator_unittest.cc',
  596. 'payload_generator/mapfile_filesystem_unittest.cc',
  597. 'payload_generator/payload_file_unittest.cc',
  598. 'payload_generator/payload_generation_config_unittest.cc',
  599. 'payload_generator/payload_signer_unittest.cc',
  600. 'payload_generator/squashfs_filesystem_unittest.cc',
  601. 'payload_generator/tarjan_unittest.cc',
  602. 'payload_generator/topological_sort_unittest.cc',
  603. 'payload_generator/zip_unittest.cc',
  604. 'payload_state_unittest.cc',
  605. 'testrunner.cc',
  606. 'update_attempter_unittest.cc',
  607. 'update_boot_flags_action_unittest.cc',
  608. 'update_manager/boxed_value_unittest.cc',
  609. 'update_manager/chromeos_policy_unittest.cc',
  610. 'update_manager/evaluation_context_unittest.cc',
  611. 'update_manager/generic_variables_unittest.cc',
  612. 'update_manager/prng_unittest.cc',
  613. 'update_manager/real_device_policy_provider_unittest.cc',
  614. 'update_manager/real_random_provider_unittest.cc',
  615. 'update_manager/real_shill_provider_unittest.cc',
  616. 'update_manager/real_system_provider_unittest.cc',
  617. 'update_manager/real_time_provider_unittest.cc',
  618. 'update_manager/real_updater_provider_unittest.cc',
  619. 'update_manager/staging_utils_unittest.cc',
  620. 'update_manager/update_manager_unittest.cc',
  621. 'update_manager/update_time_restrictions_policy_impl_unittest.cc',
  622. 'update_manager/variable_unittest.cc',
  623. 'update_manager/weekly_time_unittest.cc',
  624. ],
  625. },
  626. ],
  627. }],
  628. # Fuzzer target.
  629. ['USE_fuzzer == 1', {
  630. 'targets': [
  631. {
  632. 'target_name': 'update_engine_omaha_request_action_fuzzer',
  633. 'type': 'executable',
  634. 'variables': {
  635. 'deps': [
  636. 'libbrillo-test-<(libbase_ver)',
  637. 'libchrome-test-<(libbase_ver)',
  638. ],
  639. },
  640. 'includes': [
  641. '../../../platform2/common-mk/common_fuzzer.gypi',
  642. ],
  643. 'dependencies': [
  644. 'libupdate_engine',
  645. 'update_engine_test_libs',
  646. ],
  647. 'sources': [
  648. 'omaha_request_action_fuzzer.cc',
  649. ],
  650. },
  651. ],
  652. }],
  653. ],
  654. }