# 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. { 'variables': { 'conditions': [ # Define an "os_include" variable that points at the OS-specific generated # headers. These were generated by running the configure script offline. ['os_posix == 1 and OS != "mac" and OS != "ios"', { 'os_include': 'linux' }], ['OS=="mac"', {'os_include': 'mac'}], ['OS=="win"', {'os_include': 'win32'}], ], 'use_system_libxml%': 0, }, 'targets': [ { 'target_name': 'libxml', 'conditions': [ ['use_system_libxml', { 'conditions': [ ['os_posix == 1 and OS != "mac" and OS != "ios"', { 'type': 'static_library', 'sources': [ 'chromium/libxml_utils.h', 'chromium/libxml_utils.cc', ], 'cflags': [ ' int # TODO(brucedawson): http://crbug.com/554200 fix C4311 warnings # C4311 is a VS 2015 64-bit warning for pointer truncation 'msvs_disabled_warnings': [ 4018, 4267, 4311, ], }, { # else: OS!="win" 'product_name': 'xml2', }], ], }], ['OS == "ios"', { 'toolsets': ['host', 'target'], }], ], }, ], }