| OLD | NEW |
| (Empty) |
| 1 # Copyright 2010 Google Inc. | |
| 2 # | |
| 3 # Licensed under the Apache License, Version 2.0 (the "License"); | |
| 4 # you may not use this file except in compliance with the License. | |
| 5 # You may obtain a copy of the License at | |
| 6 # | |
| 7 # http://www.apache.org/licenses/LICENSE-2.0 | |
| 8 # | |
| 9 # Unless required by applicable law or agreed to in writing, software | |
| 10 # distributed under the License is distributed on an "AS IS" BASIS, | |
| 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 12 # See the License for the specific language governing permissions and | |
| 13 # limitations under the License. | |
| 14 # ======================================================================== | |
| 15 | |
| 16 Import('env') | |
| 17 | |
| 18 local_env = env.Clone() | |
| 19 | |
| 20 local_env['CPPPATH'] += [ | |
| 21 '$OBJ_ROOT', # Needed for generated files. | |
| 22 ] | |
| 23 | |
| 24 inputs = [ | |
| 25 'bundle_creator.cc', | |
| 26 'bundle_installer.cc', | |
| 27 'client_metrics.cc', | |
| 28 'client_utils.cc', | |
| 29 'help_url_builder.cc', | |
| 30 'install.cc', | |
| 31 'install_apps.cc', | |
| 32 'install_self.cc', | |
| 33 'shutdown_events.cc', | |
| 34 'ua.cc', | |
| 35 ] | |
| 36 | |
| 37 # Build these into a library. | |
| 38 local_env.ComponentStaticLibrary('client', inputs) | |
| 39 | |
| 40 no_xml_parser_test_env = env.Clone() | |
| 41 no_xml_parser_test_env.OmahaUnittest( | |
| 42 name='install_self_no_xml_parser_unittest', | |
| 43 source=[ | |
| 44 'install_self_unittest_no_xml_parser.cc', | |
| 45 ], | |
| 46 LIBS=[ | |
| 47 '$LIB_DIR/breakpad.lib', | |
| 48 '$LIB_DIR/client.lib', | |
| 49 '$LIB_DIR/common.lib', | |
| 50 '$LIB_DIR/google_update_recovery.lib', | |
| 51 '$LIB_DIR/logging.lib', # Required by statsreport. | |
| 52 '$LIB_DIR/service.lib', | |
| 53 '$LIB_DIR/setup.lib', | |
| 54 '$LIB_DIR/statsreport.lib', # Required by anything using metrics. | |
| 55 '$LIB_DIR/ui.lib', | |
| 56 'crypt32.lib', # Required by base. | |
| 57 'msi.lib', # Required by setup. | |
| 58 'mstask.lib', # Required by common. | |
| 59 'taskschd.lib', | |
| 60 'wininet.lib', | |
| 61 'wintrust.lib', # Required by base. | |
| 62 | |
| 63 # TODO(omaha3): These are required because setup must include | |
| 64 # service_main.h, which includes all the COM headers. | |
| 65 # The test source also includes fake definitions for IIDs from | |
| 66 # omaha3_idl, bits, and iphlpapi.lib. | |
| 67 '$LIB_DIR/core.lib', | |
| 68 '$LIB_DIR/goopdate_lib.lib', | |
| 69 '$LIB_DIR/net.lib', | |
| 70 '$LIB_DIR/security.lib', | |
| 71 ], | |
| 72 all_in_one=False, | |
| 73 COMPONENT_TEST_SIZE='small', | |
| 74 ) | |
| 75 | |
| 76 utils_test_env = env.Clone() | |
| 77 utils_test_env.OmahaUnittest( | |
| 78 name='client_utils_unittest', | |
| 79 source=[ | |
| 80 'client_utils_unittest.cc', | |
| 81 ], | |
| 82 LIBS=[ | |
| 83 '$LIB_DIR/client.lib', | |
| 84 '$LIB_DIR/common.lib', | |
| 85 '$LIB_DIR/logging.lib', # Required by statsreport. | |
| 86 '$LIB_DIR/omaha3_idl.lib', | |
| 87 '$LIB_DIR/statsreport.lib', | |
| 88 '$LIB_DIR/ui.lib', | |
| 89 ], | |
| 90 all_in_one=False, | |
| 91 COMPONENT_TEST_SIZE='small', | |
| 92 is_small_tests_using_resources=True, | |
| 93 ) | |
| 94 | |
| 95 help_url_builder_test_env = env.Clone() | |
| 96 help_url_builder_test_env.OmahaUnittest( | |
| 97 name='help_url_builder_unittest', | |
| 98 source=[ | |
| 99 'help_url_builder_test.cc', | |
| 100 ], | |
| 101 LIBS=[ | |
| 102 '$LIB_DIR/client.lib', | |
| 103 '$LIB_DIR/common.lib', | |
| 104 '$LIB_DIR/omaha3_idl.lib', # Required by common | |
| 105 ], | |
| 106 all_in_one=False, | |
| 107 COMPONENT_TEST_SIZE='small', | |
| 108 is_small_tests_using_resources=True, | |
| 109 ) | |
| OLD | NEW |