| # Copyright 2011 Google Inc. All Rights Reserved. |
| # Use of this source code is governed by an Apache-style license that can be |
| # found in the COPYING file. |
| |
| { |
| 'target_defaults': { |
| 'include_dirs': [ |
| '..', |
| ], |
| }, |
| 'targets': [ |
| { |
| 'target_name': 'rlz_lib', |
| 'type': 'static_library', |
| 'include_dirs': [], |
| 'dependencies': [ |
| '../base/base.gyp:base', |
| ], |
| 'sources': [ |
| 'lib/assert.cc', |
| 'lib/assert.h', |
| 'lib/crc32.h', |
| 'lib/crc32_wrapper.cc', |
| 'lib/crc8.h', |
| 'lib/crc8.cc', |
| 'lib/lib_values.cc', |
| 'lib/lib_values.h', |
| 'lib/string_utils.cc', |
| 'lib/string_utils.h', |
| ], |
| 'conditions': [ |
| ['OS=="win"', { |
| 'sources': [ |
| 'win/lib/financial_ping.cc', |
| 'win/lib/financial_ping.h', |
| 'win/lib/lib_mutex.cc', |
| 'win/lib/lib_mutex.h', |
| 'win/lib/machine_deal.cc', |
| 'win/lib/machine_deal.h', |
| 'win/lib/process_info.cc', |
| 'win/lib/process_info.h', |
| 'win/lib/rlz_lib.cc', |
| 'win/lib/rlz_lib.h', |
| 'win/lib/user_key.cc', |
| 'win/lib/user_key.h', |
| 'win/lib/vista_winnt.h', |
| ], |
| }], |
| ], |
| }, |
| { |
| 'target_name': 'rlz_unittests', |
| 'type': 'executable', |
| 'include_dirs': [], |
| 'dependencies': [ |
| ':rlz_lib', |
| '../base/base.gyp:base', |
| '../testing/gmock.gyp:gmock', |
| '../testing/gtest.gyp:gtest', |
| '../third_party/zlib/zlib.gyp:zlib', |
| ], |
| 'sources': [ |
| 'lib/crc32_unittest.cc', |
| 'lib/crc8_unittest.cc', |
| 'lib/lib_values_unittest.cc', |
| 'lib/string_utils_unittest.cc', |
| 'test/rlz_unittest_main.cc', |
| ], |
| 'conditions': [ |
| ['OS=="win"', { |
| 'sources': [ |
| 'win/lib/financial_ping_test.cc', |
| 'win/lib/machine_deal_test.cc', |
| 'win/lib/rlz_lib_test.cc', |
| 'win/test/rlz_test_helpers.cc', |
| 'win/test/rlz_test_helpers.h', |
| ], |
| }], |
| ], |
| }, |
| ], |
| 'conditions': [ |
| ['OS=="win"', { |
| 'targets': [ |
| { |
| 'target_name': 'rlz', |
| 'type': 'shared_library', |
| 'include_dirs': [], |
| 'sources': [ |
| 'win/dll/dll_main.cc', |
| 'win/dll/exports.cc', |
| ], |
| 'dependencies': [ |
| ':rlz_lib', |
| '../third_party/zlib/zlib.gyp:zlib', |
| ], |
| }, |
| ], |
| }], |
| ], |
| } |