# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'target_defaults': { 'variables': { 'chromium_code': 1, 'enable_wexit_time_destructors': 1, }, 'include_dirs': [ '<(DEPTH)', # To allow including "version.h" '<(SHARED_INTERMEDIATE_DIR)', ], 'defines' : [ 'COMPILE_CONTENT_STATICALLY', 'SECURITY_WIN32', 'STRICT', '_ATL_APARTMENT_THREADED', '_ATL_CSTRING_EXPLICIT_CONSTRUCTORS', '_ATL_NO_COM_SUPPORT', '_ATL_NO_AUTOMATIC_NAMESPACE', '_ATL_NO_EXCEPTIONS', ], 'conditions': [ ['OS=="win"', { # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 'msvs_disabled_warnings': [ 4267, ], }], ], }, 'targets': [ { 'target_name': 'service_resources', 'type': 'none', 'variables': { 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/cloud_print', }, 'actions': [ { 'action_name': 'service_resources', 'variables': { 'grit_grd_file': 'win/service_resources.grd', }, 'includes': [ '../../build/grit_action.gypi' ], }, ], 'includes': [ '../../build/grit_target.gypi' ], }, { 'target_name': 'cloud_print_service_lib', 'type': 'static_library', 'dependencies': [ '<(DEPTH)/base/base.gyp:base', '<(DEPTH)/base/base.gyp:base_static', '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', '<(DEPTH)/components/components.gyp:cloud_devices_common', '<(DEPTH)/google_apis/google_apis.gyp:google_apis', '<(DEPTH)/ipc/ipc.gyp:ipc', '<(DEPTH)/net/net.gyp:net', '<(DEPTH)/url/url.gyp:url_lib', 'service_resources', ], 'conditions': [ ['OS=="win"', { 'dependencies': [ '<(DEPTH)/chrome/chrome.gyp:chrome_version_header', '<(DEPTH)/chrome/chrome.gyp:launcher_support', '<(DEPTH)/chrome/common_constants.gyp:common_constants', ], }], ['OS=="win" and clang==1', { # service_controller.h uses DECLARE_REGISTRY_APPID_RESOURCEID, which # in msvs2013 returns string literals via a non-const pointer. So # disable this warning for now. # TODO(thakis): Remove this once we're on 2014, # https://connect.microsoft.com/VisualStudio/feedback/details/806376/atl-hindrances-to-adopting-new-strictstrings-conformance-option-in-vs2013 'msvs_settings': { 'VCCLCompilerTool': { 'AdditionalOptions': ['-Wno-writable-strings'], }, }, 'direct_dependent_settings': { 'msvs_settings': { 'VCCLCompilerTool': { 'AdditionalOptions': ['-Wno-writable-strings'], }, }, }, }], ['enable_basic_printing==1 or enable_print_preview==1', { 'dependencies': [ '<(DEPTH)/printing/printing.gyp:printing', ], }], ], 'sources': [ '<(DEPTH)/content/public/common/content_switches.h', '<(DEPTH)/content/public/common/content_switches.cc', '<(DEPTH)/cloud_print/common/win/cloud_print_utils.cc', '<(DEPTH)/cloud_print/common/win/cloud_print_utils.h', 'service_constants.cc', 'service_constants.h', 'service_state.cc', 'service_state.h', 'service_switches.cc', 'service_switches.h', 'win/chrome_launcher.cc', 'win/chrome_launcher.h', 'win/local_security_policy.cc', 'win/local_security_policy.h', 'win/service_controller.cc', 'win/service_controller.h', 'win/service_listener.cc', 'win/service_listener.h', 'win/service_utils.cc', 'win/service_utils.h', 'win/setup_listener.cc', 'win/setup_listener.h', ], }, ], }