Clean up the common base core.mk of the sdk and the aosp_* products.

Any modules common to sdk and aosp_* builds should go to core.mk.

Bug: 11773036
Change-Id: I342133c94eb24be3e69a553be0069e2269624d3e
This commit is contained in:
Ying Wang
2013-11-20 15:18:02 -08:00
parent 4356b55635
commit 2cebe0baed
5 changed files with 52 additions and 69 deletions

View File

@@ -22,15 +22,31 @@
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
BasicDreams \ BasicDreams \
Browser \ Browser \
Calculator \
Calendar \
CalendarProvider \
CertInstaller \
Contacts \ Contacts \
DeskClock \
DocumentsUI \ DocumentsUI \
DownloadProviderUi \ DownloadProviderUi \
Email \
Exchange2 \
ExternalStorageProvider \ ExternalStorageProvider \
FusedLocation \
InputDevices \
KeyChain \ KeyChain \
Keyguard \
LatinIME \
Launcher2 \
PicoTts \ PicoTts \
PacProcessor \ PacProcessor \
PrintSpooler \
ProxyHandler \ ProxyHandler \
QuickSearchBox \
Settings \
SharedStorageBackup \ SharedStorageBackup \
TeleService \
VpnDialogs VpnDialogs
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_base.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/core_base.mk)

View File

@@ -81,11 +81,10 @@ PRODUCT_PROPERTY_OVERRIDES += \
MINIMAL_FONT_FOOTPRINT := true MINIMAL_FONT_FOOTPRINT := true
$(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk)
$(call inherit-product-if-exists, frameworks/base/data/fonts/fonts.mk) $(call inherit-product-if-exists, frameworks/base/data/fonts/fonts.mk)
# Overrides # Overrides
PRODUCT_BRAND := tiny PRODUCT_BRAND := tiny
PRODUCT_DEVICE := tiny PRODUCT_DEVICE := tiny
PRODUCT_NAME := core_tiny PRODUCT_NAME := core_tiny
$(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk)

View File

@@ -18,30 +18,14 @@
# It includes the base Android platform. # It includes the base Android platform.
PRODUCT_PACKAGES := \ PRODUCT_PACKAGES := \
DeskClock \
Bluetooth \ Bluetooth \
Calculator \
Calendar \
Camera2 \ Camera2 \
CertInstaller \
Email \
Exchange2 \
FusedLocation \
Gallery2 \ Gallery2 \
InputDevices \
Keyguard \
LatinIME \
Launcher2 \
Music \ Music \
MusicFX \ MusicFX \
OneTimeInitializer \ OneTimeInitializer \
PrintSpooler \
Provision \ Provision \
QuickSearchBox \
Settings \
SystemUI \ SystemUI \
TeleService \
CalendarProvider \
bluetooth-health \ bluetooth-health \
hostapd \ hostapd \
wpa_supplicant.conf \ wpa_supplicant.conf \

View File

@@ -17,51 +17,35 @@
PRODUCT_PROPERTY_OVERRIDES := PRODUCT_PROPERTY_OVERRIDES :=
PRODUCT_PACKAGES := \ PRODUCT_PACKAGES := \
Calculator \ ApiDemos \
DeskClock \ ConnectivityTest \
Email \ CubeLiveWallpapers \
Exchange2 \ CustomLocale \
FusedLocation \
Gallery \
Keyguard \
Music \
Mms \
OpenWnn \
PrintSpooler \
libWnnEngDic \
libWnnJpnDic \
libwnndict \
TeleService \
PinyinIME \
Protips \
SoftKeyboard \
SystemUI \
Launcher2 \
Development \ Development \
DevelopmentSettings \ DevelopmentSettings \
Fallback \ Fallback \
Settings \ Gallery \
SdkSetup \
CustomLocale \
sqlite3 \
InputDevices \
LatinIME \
CertInstaller \
LiveWallpapersPicker \
ApiDemos \
GestureBuilder \ GestureBuilder \
CubeLiveWallpapers \
QuickSearchBox \
WidgetPreview \
librs_jni \
ConnectivityTest \
GpsLocationTest \ GpsLocationTest \
CalendarProvider \ LegacyCamera \
Calendar \ librs_jni \
libwnndict \
libWnnEngDic \
libWnnJpnDic \
LiveWallpapersPicker \
Mms \
Music \
OpenWnn \
PinyinIME \
Protips \
rild \
SdkSetup \
SmokeTest \ SmokeTest \
SmokeTestApp \ SmokeTestApp \
rild \ SoftKeyboard \
LegacyCamera sqlite3 \
SystemUI \
WidgetPreview
# Define the host tools and libs that are parts of the SDK. # Define the host tools and libs that are parts of the SDK.
-include sdk/build/product_sdk.mk -include sdk/build/product_sdk.mk
@@ -95,14 +79,17 @@ $(call inherit-product-if-exists, frameworks/base/data/keyboards/keyboards.mk)
$(call inherit-product-if-exists, frameworks/webview/chromium/chromium.mk) $(call inherit-product-if-exists, frameworks/webview/chromium/chromium.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk)
# Overrides # include available languages for TTS in the system image
PRODUCT_BRAND := generic -include external/svox/pico/lang/PicoLangDeDeInSystem.mk
PRODUCT_NAME := sdk -include external/svox/pico/lang/PicoLangEnGBInSystem.mk
PRODUCT_DEVICE := generic -include external/svox/pico/lang/PicoLangEnUsInSystem.mk
-include external/svox/pico/lang/PicoLangEsEsInSystem.mk
-include external/svox/pico/lang/PicoLangFrFrInSystem.mk
-include external/svox/pico/lang/PicoLangItItInSystem.mk
# locale + densities. en_US is both first and in alphabetical order to # locale + densities. en_US is both first and in alphabetical order to
# ensure this is the default locale. # ensure this is the default locale.
PRODUCT_LOCALES = \ PRODUCT_LOCALES := \
en_US \ en_US \
ldpi \ ldpi \
hdpi \ hdpi \
@@ -166,10 +153,7 @@ PRODUCT_LOCALES = \
zh_CN \ zh_CN \
zh_TW zh_TW
# include available languages for TTS in the system image # Overrides
-include external/svox/pico/lang/PicoLangDeDeInSystem.mk PRODUCT_BRAND := generic
-include external/svox/pico/lang/PicoLangEnGBInSystem.mk PRODUCT_NAME := sdk
-include external/svox/pico/lang/PicoLangEnUsInSystem.mk PRODUCT_DEVICE := generic
-include external/svox/pico/lang/PicoLangEsEsInSystem.mk
-include external/svox/pico/lang/PicoLangFrFrInSystem.mk
-include external/svox/pico/lang/PicoLangItItInSystem.mk

View File

@@ -19,7 +19,7 @@
# build quite specifically for the emulator, and might not be # build quite specifically for the emulator, and might not be
# entirely appropriate to inherit from for on-device configurations. # entirely appropriate to inherit from for on-device configurations.
include $(SRC_TARGET_DIR)/product/sdk.mk $(call inherit-product, $(SRC_TARGET_DIR)/product/sdk.mk)
# Overrides # Overrides
PRODUCT_BRAND := generic_x86 PRODUCT_BRAND := generic_x86