gecko-dev/toolkit/components/urlformatter/Makefile.in

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