Skip to content
Snippets Groups Projects
Commit 267c98a6 authored by Michael Vines's avatar Michael Vines Committed by Gerrit - the friendly Code Review server
Browse files

Add GAIA_DISTRIBUTION_DIR framework

Enables build time overriding of default Gaia settings

Change-Id: If29df1df0ada79927f03f26cb233395482641a52
parent 92c1eeb3
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2012, The Linux Foundation. All rights reserved.
# Copyright (c) 2012,2014 The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
......@@ -41,3 +41,19 @@ $(AAPT):
include $(LOCAL_PATH)/updater/Android.mk \
$(LOCAL_PATH)/jsmin/Android.mk
# Populate GAIA_DISTRIBUTION_DIR prior to the Gaia sub-build
gaia/profile.tar.gz: $(GAIA_DISTRIBUTION_DIR)/.exist
$(GAIA_DISTRIBUTION_DIR)/.exist:
mkdir -p $(@D)
touch $@
define mk_gaia_distribution_file
$(GAIA_DISTRIBUTION_DIR)/.exist: $2
$2: $1
mkdir -p $$(@D)
cp $$< $$@
endef
$(foreach file,$(GAIA_DISTRIBUTION_SRC_FILES),\
$(eval $(call mk_gaia_distribution_file, $(file), $(GAIA_DISTRIBUTION_DIR)/$(notdir $(file)))))
# Copyright (c) 2012,2013 The Linux Foundation. All rights reserved.
# Copyright (c) 2012,2013,2014 The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
......@@ -66,6 +66,12 @@ CLEAR_XPCOM_VARS:=$(dir $(firstword $(MAKEFILE_LIST)))clear_xpcom_vars.mk
BUILD_XPCOM:=$(dir $(firstword $(MAKEFILE_LIST)))xpcom.mk
# GAIA_DISTRIBUTION_DIR enables overrides for Gaia settings
ifndef GAIA_DISTRIBUTION_DIR
GAIA_DISTRIBUTION_DIR:=$(ANDROID_BUILD_TOP)/out/target/product/$(TARGET_PRODUCT)/gaia_distribution
export GAIA_DISTRIBUTION_DIR
endif
#
# Multilocale support.
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment