2013-07-01 12:51:46 +00:00
|
|
|
#
|
|
|
|
# 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/.
|
|
|
|
|
2014-10-02 10:37:38 +00:00
|
|
|
export:: mozilla_api_key google_api_key google_oauth_api_key bing_api_key
|
2013-07-01 12:51:46 +00:00
|
|
|
|
2014-10-02 10:37:38 +00:00
|
|
|
EXTRA_PP_COMPONENTS_FLAGS = -I mozilla_api_key -I google_api_key -I google_oauth_api_key -I bing_api_key
|
2013-07-01 12:51:46 +00:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2014-02-26 00:06:51 +00:00
|
|
|
mozilla_api_key:
|
|
|
|
@echo '#define MOZ_MOZILLA_API_KEY $(MOZ_MOZILLA_API_KEY)' > $@
|
|
|
|
|
2013-07-01 12:51:46 +00:00
|
|
|
google_api_key:
|
2013-12-02 21:34:21 +00:00
|
|
|
@echo '#define MOZ_GOOGLE_API_KEY $(MOZ_GOOGLE_API_KEY)' > $@
|
2013-07-01 12:51:46 +00:00
|
|
|
|
2014-10-02 10:37:38 +00:00
|
|
|
google_oauth_api_key:
|
|
|
|
@echo '#define MOZ_GOOGLE_OAUTH_API_KEY $(MOZ_GOOGLE_OAUTH_API_KEY)' >> $@
|
|
|
|
@echo '#define MOZ_GOOGLE_OAUTH_API_CLIENTID $(MOZ_GOOGLE_OAUTH_API_CLIENTID)' >> $@
|
|
|
|
|
2014-05-23 16:21:06 +00:00
|
|
|
bing_api_key:
|
|
|
|
@echo '#define MOZ_BING_API_KEY $(MOZ_BING_API_KEY)' > $@
|
|
|
|
@echo '#define MOZ_BING_API_CLIENTID $(MOZ_BING_API_CLIENTID)' >> $@
|
|
|
|
|
2014-10-02 10:37:38 +00:00
|
|
|
GARBAGE += mozilla_api_key google_api_key google_oauth_api_key bing_api_key
|