# 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 'msvs_disabled_warnings': [ 4018, 4101, 4267 ], }, { # else: OS!="win" 'product_name': 'xml2', }], ], }], ['OS == "ios"', { 'toolsets': ['host', 'target'], }], ], }, ], }