Bug 1345762 - Rename OSPreferences_unix.cpp to OSPreferences_android.cpp. r=gandalf

OSPreferences_unix.cpp is used on Android only.  So we should rename it to OSPreferences_android.cpp
Also, we should create android directory into intl/locale, then move OSPreferences_android.cpp and nsAndroidCharset.cpp into it.

MozReview-Commit-ID: 2CUbV1Yc2fu

--HG--
rename : intl/locale/unix/OSPreferences_unix.cpp => intl/locale/android/OSPreferences_android.cpp
rename : intl/locale/unix/nsAndroidCharset.cpp => intl/locale/android/nsAndroidCharset.cpp
extra : rebase_source : f677428cc899c767e784b9f2c793b84e3fd95c11
This commit is contained in:
Makoto Kato 2017-03-09 16:35:27 +09:00
Родитель 3b8399a3a7
Коммит 3cb0726c57
5 изменённых файлов: 19 добавлений и 8 удалений

Просмотреть файл

@ -0,0 +1,16 @@
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
UNIFIED_SOURCES += [
'nsAndroidCharset.cpp',
'OSPreferences_android.cpp'
]
FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'..',
]

Просмотреть файл

@ -16,6 +16,8 @@ else:
DIRS += ['unix']
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
DIRS += ['gtk']
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
DIRS += ['android']
XPIDL_SOURCES += [
'mozILocaleService.idl',

Просмотреть файл

@ -9,14 +9,7 @@ SOURCES += [
'nsPosixLocale.cpp',
]
if 'gtk' not in CONFIG['MOZ_WIDGET_TOOLKIT']:
SOURCES += ['OSPreferences_unix.cpp']
if CONFIG['OS_TARGET'] == 'Android':
SOURCES += [
'nsAndroidCharset.cpp',
]
else:
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
SOURCES += [
'nsUNIXCharset.cpp',
]