Fix update_engine scons building.

To build update_engine without an emerge, you need to run setup_dev_packages
to get the needed packages into the chroot, and then "scons" to do the
actual build.

However, setup_dev_packages has a broken dependancy. That dependancy is needed
to generate the test coverage reports, but not otherwise. Also, the SConstruct
file listed a "BASE_VER" for libchrome dependancies that was outdated and
overridden in the ebuild file.

This change removes the broken package depedancy, and updates the BASE_VER
so that it's relatively easy to build the update engine directly without doing
an emerge. That breaks the script to measure how much unittest coverage we
have, but that script is already broken.

Also, Gilad was right about static int's in one of Jay's previous CLs (and I
was wrong). How he was declaring some constants is causing problems for
commanline compiles, but doesn't for ebuild builds. So, this CL fixes that.

BUG=None
TEST=scons compelted.

Change-Id: I134f83528d8ad6fe3e504d98efb3d1030bfa3865
Reviewed-on: https://gerrit.chromium.org/gerrit/25252
Reviewed-by: Jay Srinivasan <jaysri@chromium.org>
Tested-by: Jay Srinivasan <jaysri@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
Commit-Ready: Don Garrett <dgarrett@chromium.org>
4 files changed
tree: 12e45c0a2c7b0c2293450a78b85ac0807ac5bdab
  1. .gitignore
  2. 99-gpio-dutflag.rules
  3. action.h
  4. action_mock.h
  5. action_pipe.h
  6. action_pipe_unittest.cc
  7. action_processor.cc
  8. action_processor.h
  9. action_processor_mock.h
  10. action_processor_unittest.cc
  11. action_unittest.cc
  12. build
  13. bzip.cc
  14. bzip.h
  15. bzip_extent_writer.cc
  16. bzip_extent_writer.h
  17. bzip_extent_writer_unittest.cc
  18. certificate_checker.cc
  19. certificate_checker.h
  20. certificate_checker_mock.h
  21. certificate_checker_unittest.cc
  22. chrome_browser_proxy_resolver.cc
  23. chrome_browser_proxy_resolver.h
  24. chrome_browser_proxy_resolver_unittest.cc
  25. chrome_proxy_resolver.cc
  26. chrome_proxy_resolver.h
  27. chrome_proxy_resolver_unittest.cc
  28. cycle_breaker.cc
  29. cycle_breaker.h
  30. cycle_breaker_unittest.cc
  31. dbus_constants.h
  32. dbus_interface.h
  33. dbus_service.cc
  34. dbus_service.h
  35. delta_diff_generator.cc
  36. delta_diff_generator.h
  37. delta_diff_generator_unittest.cc
  38. delta_performer.cc
  39. delta_performer.h
  40. delta_performer_unittest.cc
  41. download_action.cc
  42. download_action.h
  43. download_action_unittest.cc
  44. extent_mapper.cc
  45. extent_mapper.h
  46. extent_mapper_unittest.cc
  47. extent_ranges.cc
  48. extent_ranges.h
  49. extent_ranges_unittest.cc
  50. extent_writer.cc
  51. extent_writer.h
  52. extent_writer_unittest.cc
  53. file_descriptor.cc
  54. file_descriptor.h
  55. file_writer.cc
  56. file_writer.h
  57. file_writer_mock.h
  58. file_writer_unittest.cc
  59. filesystem_copier_action.cc
  60. filesystem_copier_action.h
  61. filesystem_copier_action_unittest.cc
  62. filesystem_iterator.cc
  63. filesystem_iterator.h
  64. filesystem_iterator_unittest.cc
  65. flimflam_proxy.cc
  66. flimflam_proxy.h
  67. flimflam_proxy_unittest.cc
  68. full_update_generator.cc
  69. full_update_generator.h
  70. full_update_generator_unittest.cc
  71. gen_coverage_html
  72. generate_delta_main.cc
  73. gpio_handler.cc
  74. gpio_handler.h
  75. gpio_handler_unittest.cc
  76. gpio_handler_unittest.h
  77. gpio_mock_udev_interface.cc
  78. gpio_mock_udev_interface.h
  79. graph_types.h
  80. graph_utils.cc
  81. graph_utils.h
  82. graph_utils_unittest.cc
  83. http_common.cc
  84. http_common.h
  85. http_fetcher.cc
  86. http_fetcher.h
  87. http_fetcher_unittest.cc
  88. http_fetcher_unittest.h
  89. inherit-review-settings-ok
  90. install_plan.h
  91. integration_unittest.cc
  92. libcurl_http_fetcher.cc
  93. libcurl_http_fetcher.h
  94. LICENSE
  95. local_coverage_rate
  96. main.cc
  97. marshal.list
  98. metadata.cc
  99. metadata.h
  100. metadata_unittest.cc
  101. mock_dbus_interface.h
  102. mock_file_writer.h
  103. mock_http_fetcher.cc
  104. mock_http_fetcher.h
  105. mock_system_state.h
  106. multi_range_http_fetcher.cc
  107. multi_range_http_fetcher.h
  108. omaha_hash_calculator.cc
  109. omaha_hash_calculator.h
  110. omaha_hash_calculator_unittest.cc
  111. omaha_request_action.cc
  112. omaha_request_action.h
  113. omaha_request_action_unittest.cc
  114. omaha_request_params.cc
  115. omaha_request_params.h
  116. omaha_request_params_unittest.cc
  117. omaha_response_handler_action.cc
  118. omaha_response_handler_action.h
  119. omaha_response_handler_action_unittest.cc
  120. org.chromium.UpdateEngine.service
  121. payload_signer.cc
  122. payload_signer.h
  123. payload_signer_unittest.cc
  124. postinstall_runner_action.cc
  125. postinstall_runner_action.h
  126. postinstall_runner_action_unittest.cc
  127. prefs.cc
  128. prefs.h
  129. prefs_interface.h
  130. prefs_mock.h
  131. prefs_unittest.cc
  132. proxy_resolver.cc
  133. proxy_resolver.h
  134. run_unittests
  135. SConstruct
  136. setup_dev_packages
  137. simple_key_value_store.cc
  138. simple_key_value_store.h
  139. simple_key_value_store_unittest.cc
  140. subprocess.cc
  141. subprocess.h
  142. subprocess_unittest.cc
  143. tarjan.cc
  144. tarjan.h
  145. tarjan_unittest.cc
  146. terminator.cc
  147. terminator.h
  148. terminator_unittest.cc
  149. test_http_server.cc
  150. test_utils.cc
  151. test_utils.h
  152. testrunner.cc
  153. topological_sort.cc
  154. topological_sort.h
  155. topological_sort_unittest.cc
  156. udev_interface.h
  157. unittest_key.pem
  158. unittest_key2.pem
  159. update_attempter.cc
  160. update_attempter.h
  161. update_attempter_mock.h
  162. update_attempter_unittest.cc
  163. update_check_scheduler.cc
  164. update_check_scheduler.h
  165. update_check_scheduler_unittest.cc
  166. update_engine.xml
  167. update_engine_client.cc
  168. update_metadata.proto
  169. UpdateEngine.conf
  170. utils.cc
  171. utils.h
  172. utils_unittest.cc
  173. WATCHLISTS
  174. zip_unittest.cc