mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 15:15:23 +00:00
27 lines
989 B
Makefile
27 lines
989 B
Makefile
#
|
|
# 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/.
|
|
|
|
export:: mozilla_api_key google_api_key google_oauth_api_key bing_api_key
|
|
|
|
EXTRA_PP_COMPONENTS_FLAGS = -I mozilla_api_key -I google_api_key -I google_oauth_api_key -I bing_api_key
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
mozilla_api_key:
|
|
@echo '#define MOZ_MOZILLA_API_KEY $(MOZ_MOZILLA_API_KEY)' > $@
|
|
|
|
google_api_key:
|
|
@echo '#define MOZ_GOOGLE_API_KEY $(MOZ_GOOGLE_API_KEY)' > $@
|
|
|
|
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)' >> $@
|
|
|
|
bing_api_key:
|
|
@echo '#define MOZ_BING_API_KEY $(MOZ_BING_API_KEY)' > $@
|
|
@echo '#define MOZ_BING_API_CLIENTID $(MOZ_BING_API_CLIENTID)' >> $@
|
|
|
|
GARBAGE += mozilla_api_key google_api_key google_oauth_api_key bing_api_key
|