blob: 21b0dabfb07253945ee68032bccd7a89100a1e95 [file] [log] [blame]
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This file is meant to be included by a GYP target that needs to copy the
# platform specific ICU data into <(PRODUCT_DIR)/content.
{
'includes': [ 'contents_dir.gypi' ],
'variables': {
'variables': {
'variables': {
'variables': {
# Target machine uses little endian convention
'little_endian%': 1,
# A single .dat file should be used instead of a directory with loose
# data files.
'use_icu_dat_file%': 0,
},
'conditions': [
['target_arch in ["ps3", "wiiu", "x360"]', {
'little_endian%': 0,
}],
['target_arch in ["android"]', {
'use_icu_dat_file%': 1,
}]
],
'little_endian%': '<(little_endian)',
'use_icu_dat_file%': '<(use_icu_dat_file)',
},
'conditions': [
['little_endian==1 and use_icu_dat_file==1', {
'inputs_icu%': '<(static_contents_source_dir)/icu/icudt46l.dat',
}],
['little_endian==1 and use_icu_dat_file==0', {
'inputs_icu%': '<(static_contents_source_dir)/icu/icudt46l/',
}],
['little_endian==0 and use_icu_dat_file==1', {
'inputs_icu%': '<(static_contents_source_dir)/icu/icudt46b.dat',
}],
['little_endian==0 and use_icu_dat_file==0', {
'inputs_icu%': '<(static_contents_source_dir)/icu/icudt46b/',
}],
],
},
'inputs_icu%': [ '<(inputs_icu)' ],
},
'copies': [
{
'destination': '<(static_contents_output_data_dir)/icu',
'files': [ '<(inputs_icu)' ],
},
],
}