| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'variables': { | |
| 7 'chromium_code': 1, | |
| 8 'variables': { | |
| 9 # Set force_rlz_use_chrome_net to 1 to use chrome's network stack instead | |
| 10 # of win inet. | |
| 11 'force_rlz_use_chrome_net%': 0, | |
| 12 }, | |
| 13 'conditions': [ | |
| 14 ['force_rlz_use_chrome_net or OS=="mac"', { | |
| 15 'rlz_use_chrome_net%': 1, | |
| 16 }, { | |
| 17 'rlz_use_chrome_net%': 0, | |
| 18 }], | |
| 19 ], | |
| 20 }, | |
| 21 'target_defaults': { | |
| 22 'include_dirs': [ | |
| 23 '..', | |
| 24 ], | |
| 25 }, | |
| 26 'targets': [ | |
| 27 { | |
| 28 'target_name': 'rlz_lib', | |
| 29 'type': 'static_library', | |
| 30 'include_dirs': [], | |
| 31 'dependencies': [ | |
| 32 '../base/base.gyp:base', | |
| 33 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | |
| 34 ], | |
| 35 'sources': [ | |
| 36 'lib/assert.cc', | |
| 37 'lib/assert.h', | |
| 38 'lib/crc32.h', | |
| 39 'lib/crc32_wrapper.cc', | |
| 40 'lib/crc8.h', | |
| 41 'lib/crc8.cc', | |
| 42 'lib/financial_ping.cc', | |
| 43 'lib/financial_ping.h', | |
| 44 'lib/lib_values.cc', | |
| 45 'lib/machine_id.cc', | |
| 46 'lib/machine_id.h', | |
| 47 'lib/rlz_enums.h', | |
| 48 'lib/rlz_lib.cc', | |
| 49 'lib/rlz_lib.h', | |
| 50 'lib/rlz_lib_clear.cc', | |
| 51 'lib/lib_values.h', | |
| 52 'lib/rlz_value_store.h', | |
| 53 'lib/string_utils.cc', | |
| 54 'lib/string_utils.h', | |
| 55 'mac/lib/machine_id_mac.cc', | |
| 56 'mac/lib/rlz_value_store_mac.mm', | |
| 57 'mac/lib/rlz_value_store_mac.h', | |
| 58 'win/lib/lib_mutex.cc', | |
| 59 'win/lib/lib_mutex.h', | |
| 60 'win/lib/machine_deal.cc', | |
| 61 'win/lib/machine_deal.h', | |
| 62 'win/lib/machine_id_win.cc', | |
| 63 'win/lib/process_info.cc', | |
| 64 'win/lib/process_info.h', | |
| 65 'win/lib/registry_util.cc', | |
| 66 'win/lib/registry_util.h', | |
| 67 'win/lib/rlz_lib.h', | |
| 68 'win/lib/rlz_lib_win.cc', | |
| 69 'win/lib/rlz_value_store_registry.cc', | |
| 70 'win/lib/rlz_value_store_registry.h', | |
| 71 'win/lib/vista_winnt.h', | |
| 72 ], | |
| 73 'conditions': [ | |
| 74 ['rlz_use_chrome_net==1', { | |
| 75 'defines': [ | |
| 76 'RLZ_NETWORK_IMPLEMENTATION_CHROME_NET', | |
| 77 ], | |
| 78 'direct_dependent_settings': { | |
| 79 'defines': [ | |
| 80 'RLZ_NETWORK_IMPLEMENTATION_CHROME_NET', | |
| 81 ], | |
| 82 }, | |
| 83 'dependencies': [ | |
| 84 '../build/temp_gyp/googleurl.gyp:googleurl', | |
| 85 '../net/net.gyp:net', | |
| 86 ], | |
| 87 }, { | |
| 88 'defines': [ | |
| 89 'RLZ_NETWORK_IMPLEMENTATION_WIN_INET', | |
| 90 ], | |
| 91 'direct_dependent_settings': { | |
| 92 'defines': [ | |
| 93 'RLZ_NETWORK_IMPLEMENTATION_WIN_INET', | |
| 94 ], | |
| 95 }, | |
| 96 }], | |
| 97 ], | |
| 98 }, | |
| 99 { | |
| 100 'target_name': 'rlz_unittests', | |
| 101 'type': 'executable', | |
| 102 'include_dirs': [], | |
| 103 'dependencies': [ | |
| 104 ':rlz_lib', | |
| 105 '../base/base.gyp:base', | |
| 106 '../testing/gmock.gyp:gmock', | |
| 107 '../testing/gtest.gyp:gtest', | |
| 108 '../third_party/zlib/zlib.gyp:zlib', | |
| 109 ], | |
| 110 'sources': [ | |
| 111 'lib/crc32_unittest.cc', | |
| 112 'lib/crc8_unittest.cc', | |
| 113 'lib/financial_ping_test.cc', | |
| 114 'lib/lib_values_unittest.cc', | |
| 115 'lib/machine_id_unittest.cc', | |
| 116 'lib/rlz_lib_test.cc', | |
| 117 'lib/string_utils_unittest.cc', | |
| 118 'test/rlz_test_helpers.cc', | |
| 119 'test/rlz_test_helpers.h', | |
| 120 'test/rlz_unittest_main.cc', | |
| 121 'win/lib/machine_deal_test.cc', | |
| 122 ], | |
| 123 'conditions': [ | |
| 124 ['rlz_use_chrome_net==1', { | |
| 125 'dependencies': [ | |
| 126 '../net/net.gyp:net_test_support', | |
| 127 ], | |
| 128 }] | |
| 129 ], | |
| 130 }, | |
| 131 ], | |
| 132 'conditions': [ | |
| 133 ['OS=="win"', { | |
| 134 'targets': [ | |
| 135 { | |
| 136 'target_name': 'rlz', | |
| 137 'type': 'shared_library', | |
| 138 'include_dirs': [], | |
| 139 'sources': [ | |
| 140 'win/dll/dll_main.cc', | |
| 141 'win/dll/exports.cc', | |
| 142 ], | |
| 143 'dependencies': [ | |
| 144 ':rlz_lib', | |
| 145 '../third_party/zlib/zlib.gyp:zlib', | |
| 146 ], | |
| 147 }, | |
| 148 ], | |
| 149 }], | |
| 150 ], | |
| 151 } | |
| OLD | NEW |